/* 
   QAO Growth Premium Theme
   Inspired by Stripe, Vercel, Linear, Webflow.
   Extreme minimalism, high contrast, typography-first, precise micro-interactions.
*/

:root {
    /* Color Palette - Ultra Minimalist */
    --bg-main: #FFFFFF;
    --bg-offset: #FAFAFA;       /* Very subtle gray */
    --bg-contrast: #000000;     /* Pure black for high impact sections */
    
    --text-primary: #111827;    /* Almost black */
    --text-secondary: #6B7280;  /* Slate gray */
    --text-inverse: #FFFFFF;
    
    --accent-primary: #000000;  /* Vercel style solid black buttons */
    --accent-hover: #333333;
    
    --border-subtle: #E5E7EB;   /* Extremely light gray for dividers */
    --border-dark: #333333;
    
    --success: #10B981;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Spacing */
    --space-section: 140px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-offset: #111111;
    --bg-contrast: #FFFFFF;
    
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-inverse: #000000;
    
    --accent-primary: #FFFFFF;
    --accent-hover: #E5E7EB;
    
    --border-subtle: #333333;
    --border-dark: #E5E7EB;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Smooth anti-aliasing like Vercel */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em; /* Tight letter spacing is key for modern look */
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-inverse { color: var(--text-inverse); }
.text-bold { font-weight: 600; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

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

.bg-offset {
    background-color: var(--bg-offset);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.bg-black {
    background-color: var(--bg-contrast);
    color: var(--text-inverse);
}
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4 {
    color: var(--text-inverse);
}
.bg-black .text-secondary {
    color: #A1A1AA;
}

/* Typography Scale */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.6;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
}
.section-desc.centered {
    margin-left: auto;
    margin-right: auto;
}

/* Badges (Stripe-like) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #F3F4F6;
    color: var(--text-primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid var(--border-subtle);
}
.bg-black .badge {
    background: #111;
    color: #FFF;
    border-color: #333;
}

/* Buttons (Vercel Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
    font-family: var(--font-sans);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

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

.btn-outline {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background-color: var(--bg-offset);
}

.bg-black .btn-primary {
    background-color: #ffffff;
    color: #000000;
}
.bg-black .btn-primary:hover {
    background-color: #F3F4F6;
}
.bg-black .btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: var(--border-dark);
}
.bg-black .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Navbar (Minimalist) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.2s ease, border-bottom 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 4px;
    display: inline-block;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

/* Metrics row (Stripe style) */
.metrics-row {
    display: flex;
    gap: 60px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 40px;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Method Cards (Linear/Reforge style) */
.card-minimal {
    padding: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-main);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.card-minimal:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-offset);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.card-minimal h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-minimal p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cases Matrix */
.case-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.case-row {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    align-items: center;
    padding: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    gap: 32px;
}

.case-client h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.case-problem {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.case-result-large {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}
.case-result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Huge typography section (Vercel positioning) */
.positioning {
    padding: 160px 0;
    text-align: center;
}

.positioning .huge-title {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.06em;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text-secondary); /* Greyed out initial text */
    line-height: 1.05;
}

.positioning .huge-title span {
    color: var(--text-primary); /* Bold black emphasis */
}

/* Services List (Reforge clean lines) */
.service-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.service-line:first-child {
    border-top: 1px solid var(--border-subtle);
}

.service-line h3 {
    font-size: 2rem;
    font-weight: 600;
}

.service-line p {
    color: var(--text-secondary);
    max-width: 400px;
    text-align: right;
}

/* Basic Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Form Styles */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-offset);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-main);
    box-shadow: 0 0 0 1px var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .case-row { grid-template-columns: 1fr; gap: 20px; }
    .service-line { flex-direction: column; align-items: flex-start; gap: 16px; }
    .service-line p { text-align: left; }
}

@media (max-width: 768px) {
    :root { --space-section: 80px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .grid-3 { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .metrics-row { flex-direction: column; gap: 32px; }
    .positioning { padding: 80px 0; }
}
