/* SilverOak Apps — Design System */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand: Silver + Oak */
    --silver-50: #f8fafc;
    --silver-100: #f1f5f9;
    --silver-200: #e2e8f0;
    --silver-300: #cbd5e1;
    --silver-400: #94a3b8;
    --silver-500: #64748b;
    --silver-600: #475569;
    --silver-700: #334155;
    --silver-800: #1e293b;
    --silver-900: #0f172a;

    --oak-50: #fffbeb;
    --oak-100: #fef3c7;
    --oak-200: #fde68a;
    --oak-300: #fcd34d;
    --oak-400: #fbbf24;
    --oak-500: #f59e0b;
    --oak-600: #d97706;
    --oak-700: #b45309;
    --oak-800: #92400e;
    --oak-900: #78350f;

    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;

    /* Semantic */
    --text-primary: var(--silver-900);
    --text-secondary: var(--silver-600);
    --text-muted: var(--silver-400);
    --bg-primary: #ffffff;
    --bg-subtle: var(--silver-50);
    --accent: var(--oak-600);
    --accent-light: var(--oak-50);
    --accent-hover: var(--oak-700);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--accent-hover);
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 18px;
    max-width: 640px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

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

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--silver-200);
    transition: box-shadow var(--duration) var(--ease);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    height: 44px;
    padding: 0 var(--space-xl);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--silver-300);
}

.btn-ghost:hover {
    border-color: var(--silver-400);
    background: var(--silver-50);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: calc(64px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    background: linear-gradient(135deg, var(--silver-900) 0%, var(--silver-800) 50%, #1a2332 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--oak-300);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-lg);
    letter-spacing: -1.5px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--oak-400), var(--oak-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--silver-300);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-graphic {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    position: relative;
}

.hero-graphic-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-graphic-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.hero-graphic-ring:nth-child(2) { width: 300px; height: 300px; animation-delay: 0.5s; }
.hero-graphic-ring:nth-child(3) { width: 400px; height: 400px; animation-delay: 1s; }

.hero-graphic-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--oak-500), var(--oak-400));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.3);
}

.hero-graphic-center svg {
    width: 36px;
    height: 36px;
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   PRODUCTS
   ============================================ */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--silver-300);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.product-icon svg {
    width: 24px;
    height: 24px;
}

.product-icon-aam {
    background: linear-gradient(135deg, #243B53, #486581);
    color: white;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.product-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.tag-live {
    background: var(--green-100);
    color: var(--green-600);
}

.product-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-card-featured {
    max-width: 720px;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-card-header .product-icon {
    margin-bottom: 0;
}

.product-problem {
    margin-bottom: var(--space-lg);
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--green-500);
    margin-top: 3px;
}

.product-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.tech-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--silver-50);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--silver-200);
}

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

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--silver-200);
        box-shadow: var(--shadow-md);
        padding: var(--space-md) 0;
    }

    .nav-wrapper.nav-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: var(--space-md) var(--space-lg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        max-width: 280px;
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
