/* ============================================================
   ARO Website - Modern Colorful Typography
   ============================================================ */

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #12121a;
    --color-text: #e8e8ed;
    --color-text-muted: #8888a0;
    --color-primary: #7c3aed;
    --color-secondary: #06b6d4;
    --color-accent: #f472b6;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-alt: linear-gradient(135deg, #f472b6 0%, #f59e0b 100%);
    --gradient-third: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.3);

    /* Light mode overrides */
    --nav-bg: rgba(10, 10, 15, 0.8);
    --nav-border: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bg-overlay: rgba(255, 255, 255, 0.1);
    --mobile-menu-bg: rgba(10, 10, 15, 0.98);
    --code-header-bg: rgba(0, 0, 0, 0.3);
    --code-header-border: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   Light Mode
   ============================================================ */

@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #f8f9fc;
        --color-bg-alt: #eef1f6;
        --color-text: #1a1a2e;
        --color-text-muted: #5c5c7a;
        --color-primary: #6d28d9;
        --color-secondary: #0891b2;
        --color-accent: #db2777;
        --color-success: #059669;
        --color-warning: #d97706;

        --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #0891b2 100%);
        --gradient-alt: linear-gradient(135deg, #db2777 0%, #d97706 100%);
        --gradient-third: linear-gradient(135deg, #059669 0%, #0891b2 100%);

        --shadow-glow: 0 0 60px rgba(109, 40, 217, 0.15);

        --nav-bg: rgba(248, 249, 252, 0.9);
        --nav-border: rgba(0, 0, 0, 0.08);
        --card-border: rgba(0, 0, 0, 0.08);
        --card-bg-overlay: rgba(0, 0, 0, 0.05);
        --mobile-menu-bg: rgba(248, 249, 252, 0.98);
        --code-header-bg: rgba(0, 0, 0, 0.05);
        --code-header-border: rgba(0, 0, 0, 0.08);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-aro {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-github {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-third {
    background: var(--gradient-third);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-subtitle em {
    color: var(--color-secondary);
    font-style: normal;
}

.hero-subtitle strong {
    color: var(--color-text);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    font-size: 1rem;
    color: var(--color-text);
}

.tagline-icon {
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Code Window */
.hero-code {
    max-width: 600px;
    margin: 0 auto;
}

.code-window {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--card-border);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--code-header-bg);
    border-bottom: 1px solid var(--code-header-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.code-content {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content .comment { color: #6b7280; }
.code-content .feature-name { color: #f472b6; }
.code-content .action { color: #7c3aed; font-weight: 600; }
.code-content .result { color: #06b6d4; }
.code-content .string { color: #10b981; }

/* ============================================================
   Features Section
   ============================================================ */

.features-section {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title span {
    display: inline;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-card code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-secondary);
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-sm);
}

/* ============================================================
   AI Section
   ============================================================ */

.ai-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .ai-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.ai-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.ai-text .lead {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

.ai-text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.ai-text strong {
    color: var(--color-accent);
}

.ai-text em {
    color: var(--color-secondary);
    font-style: normal;
}

.ai-text code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.ai-quote {
    margin-top: 32px;
    padding-left: 24px;
    border-left: 3px solid var(--color-primary);
}

.ai-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
}

/* Comparison Visual */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-old,
.comparison-new {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.comparison h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--color-text-muted);
}

.flow-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flow-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

.flow-item.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
    border: 1px dashed var(--color-warning);
}

.flow-item.highlight {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.flow-arrow {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.flow-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-success);
    font-weight: 500;
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
    padding: 120px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        var(--color-bg-alt);
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 80px 0 40px;
    background: var(--color-bg);
    border-top: 1px solid var(--nav-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

.footer-brand .logo-aro {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-tagline {
    margin-top: 8px;
    color: var(--color-text);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--nav-border);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Mobile Menu
   ============================================================ */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) {
    margin-bottom: 6px;
}

.nav-toggle span:nth-child(3) {
    margin-top: 6px;
}

/* Burger to X animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 100px 24px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 16px 32px;
    transition: color 0.2s;
    text-align: center;
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

.mobile-menu .nav-github {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   Light Mode Component Overrides
   ============================================================ */

@media (prefers-color-scheme: light) {
    .hero-bg {
        background:
            radial-gradient(ellipse at 20% 20%, rgba(109, 40, 217, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, rgba(219, 39, 119, 0.08) 0%, transparent 60%);
    }

    .hero-badge {
        background: rgba(109, 40, 217, 0.1);
        border: 1px solid rgba(109, 40, 217, 0.2);
    }

    .btn-secondary {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }

    .btn-secondary:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .btn-outline {
        border: 2px solid rgba(0, 0, 0, 0.2);
    }

    .nav-github {
        background: rgba(0, 0, 0, 0.05);
    }

    .flow-item {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu .nav-github {
        background: rgba(0, 0, 0, 0.05);
    }

    .cta-section {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(109, 40, 217, 0.1) 0%, transparent 50%),
            var(--color-bg-alt);
    }

    .code-content .comment { color: #6b7280; }
    .code-content .feature-name { color: #be185d; }
    .code-content .action { color: #6d28d9; font-weight: 600; }
    .code-content .result { color: #0891b2; }
    .code-content .string { color: #059669; }

    .ai-text code {
        background: rgba(109, 40, 217, 0.1);
    }

    .feature-card code {
        background: rgba(8, 145, 178, 0.1);
    }
}

/* ============================================================
   Examples Section
   ============================================================ */

.examples-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.example-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .example-showcase {
        grid-template-columns: 1fr;
    }
}

.example-showcase .code-window {
    max-width: 100%;
}

.example-description {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    border: 1px solid var(--card-border);
}

.example-description h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.example-description p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.example-description code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.example-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.example-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.example-link:hover {
    color: var(--color-secondary);
}

@media (prefers-color-scheme: light) {
    .example-description code {
        background: rgba(8, 145, 178, 0.1);
    }

    .feature-tag {
        background: rgba(109, 40, 217, 0.1);
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 40px;
    }
}
