/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: 197 100% 45%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 197 100% 55%;
    --background: 0 0% 100%;
    --foreground: 210 15% 10%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --gradient-hero: linear-gradient(135deg, hsl(197 100% 45%) 0%, hsl(220 100% 50%) 100%);
    --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 40% 98%) 100%);
    --shadow-medical: 0 10px 30px -10px hsl(197 100% 45% / 0.2);
    --shadow-glow: 0 0 40px hsl(197 100% 55% / 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    --background: 222 84% 5%;
    --foreground: 210 40% 98%;
    --muted: 217 32% 17%;
    --muted-foreground: 215 20% 65%;
    --gradient-subtle: linear-gradient(180deg, hsl(222 84% 5%) 0%, hsl(217 32% 17%) 100%);
    --shadow-medical: 0 10px 30px -10px hsl(197 100% 45% / 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(214 32% 91%);
    z-index: 50;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: hsl(var(--primary));
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(214 32% 91%);
    background: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dark .theme-toggle {
    border-color: hsl(217 32% 17%);
}

.theme-toggle:hover {
    background: hsl(var(--muted));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.875rem;
    background: transparent;
}

.btn-primary {
    background: var(--gradient-hero);
    background-image: var(--gradient-hero);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-medical);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(214 32% 91%);
}

.btn-outline:hover {
    background: hsl(var(--muted));
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    space-y: 2rem;
}

.badge {
    display: inline-block;
    background: hsl(var(--muted));
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.hero-title .primary {
    color: hsl(var(--primary));
}

.hero-desc {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Code Demo */
.code-demo {
    background: hsl(var(--background));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medical);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid hsl(214 32% 91%);
}

.code-dots {
    display: flex;
    gap: 0.25rem;
}

.code-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.code-dot.red {
    background: #ef4444;
}

.code-dot.yellow {
    background: #eab308;
}

.code-dot.green {
    background: #22c55e;
}

.code-title {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.code-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: hsl(var(--muted));
    border-radius: 0.5rem;
    margin: 1rem;
}

.code-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-tab.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.code-tab.inactive {
    background: transparent;
    color: hsl(var(--muted-foreground));
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
    border-radius: 0.5rem;
}

.code-block pre {
    margin: 0;
    white-space: pre;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.code-block code {
    font-family: inherit;
}

/* Syntax highlighting styles */
.code-block .comment { color: #64748b; }
.code-block .keyword { color: #f97316; font-weight: 600; }
.code-block .string { color: #22c55e; }
.code-block .function { color: #3b82f6; }
.code-block .variable { color: #a855f7; }

.code-line {
    min-height: 1.5rem;
}

.comment {
    color: #94a3b8;
}

.keyword {
    color: #f97316;
}

.string {
    color: #22c55e;
}

.variable {
    color: #a855f7;
}

.function {
    color: #3b82f6;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
}

.copy-btn:hover {
    color: white;
}

.copy-btn.copied::after {
    content: "Copied!";
    position: absolute;
    top: -0.75rem;
    right: 0;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    transform: translateY(-100%);
}

.code-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

/* Platform Section */
.platform {
    padding: 4rem 0;
    background: hsl(var(--muted) / 0.3);
}

.platform-content {
    text-align: center;
}

.platform-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.platform-desc {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 64rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.platform-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.check-icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary));
}

/* Models Section */
.models {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.models-header {
    text-align: left;
    margin-bottom: 4rem;
}

.models-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.models-desc {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.model-card {
    background: hsl(var(--background));
    border: 1px solid hsl(214 32% 91%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-medical);
    transition: var(--transition-smooth);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.model-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.model-card p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.model-card ul {
    list-style: disc;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.model-card li {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.model-card a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.model-card a:hover {
    text-decoration: underline;
}

/* Demos Grid */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.demo-card {
    background: linear-gradient(135deg, hsl(var(--background) / 0.7), hsl(var(--background) / 0.3));
    border: 1px solid hsl(214 32% 91%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-medical);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.demo-card:hover {
    transform: translateY(-2px);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.demo-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid hsl(214 32% 91%);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-desc {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-list {
    list-style: disc;
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-list li {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.about-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-card {
    background: hsl(var(--background));
    backdrop-filter: blur(10px);
    border: 1px solid hsl(214 32% 91%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-medical);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid hsl(214 32% 91%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-text a {
    color: inherit;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats {
        justify-content: center;
    }

    .platform-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .models-title {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
