/* ===================================================================
   IntellaType — Design System
   Visual language modelled after springhome.lovable.app
   Font: Space Grotesk (display + body) + Lora (editorial accents)
   Palette: ink / cream / sun / sky — same token vocabulary
   =================================================================== */

/* ─── 1. Design Tokens ─────────────────────────────────────────── */
:root {
    /* Core palette — matches springhome token names exactly */
    --ink:        oklch(20% .018 255);       /* dark navy-charcoal — sampled from app sidebar */
    --cream:      oklch(98.5% .012 95);      /* warm off-white */
    --sun:        oklch(80% .15 85);         /* honey gold — sampled from app accent button */
    --sun-deep:   oklch(70% .14 75);         /* deep amber — sampled from logo wordmark */
    --sky:        oklch(91% .05 230);        /* soft blue */
    --sky-deep:   oklch(78% .09 230);        /* deeper blue */

    /* Semantic aliases */
    --background: var(--cream);
    --foreground: var(--ink);
    --primary:    var(--ink);

    /* Typography */
    --font-sans:    'Space Grotesk', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-serif:   'Lora', Georgia, serif;

    /* Spacing scale (4px base) */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Shadows — springhome's signature hard offset */
    --shadow-card:   6px  6px  0 0 var(--ink);
    --shadow-btn:    0    6px  0 0 var(--ink);
    --shadow-btn-lg: 0    8px  0 0 var(--ink);

    /* Border radius */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-pill: 9999px;

    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out:    cubic-bezier(0.16, 1, 0.32, 1);
    --duration:    0.22s;
}

/* ─── 2. Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ─── 3. Typography Scale ───────────────────────────────────────── */
.text-display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

h1, .h1 { font-size: clamp(2.8rem, 7.5vw, 6rem);  font-weight: 700; letter-spacing: -0.04em; line-height: 1.0; }
h2, .h2 { font-size: clamp(2rem,   4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3, .h3 { font-size: clamp(1.25rem, 2vw,  1.75rem); font-weight: 600; letter-spacing: -0.02em; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; }
p       { line-height: 1.7; }

.text-serif { font-family: var(--font-serif); }
.text-small { font-size: 0.8125rem; }
.text-xs    { font-size: 0.6875rem; }

/* ─── 4. Layout Utilities ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--sp-5);
}

@media (min-width: 1024px) {
    .container { padding-inline: var(--sp-8); }
}

.section {
    padding-block: var(--sp-20);
}

@media (min-width: 1024px) {
    .section { padding-block: var(--sp-24); }
}

/* ─── 5. Components: Chips ──────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chip-sun {
    background: var(--sun);
    color: var(--ink);
}

.chip-sky {
    background: var(--sky);
    color: var(--ink);
}

.chip-outline {
    border: 2px solid rgba(255,255,255,0.25);
    color: var(--cream);
}

/* ─── 6. Components: Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--sp-6);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform var(--duration) var(--ease-spring),
        box-shadow var(--duration) var(--ease-out),
        background-color var(--duration) ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Arrow circle badge on buttons */
.btn .btn-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
    transition: transform var(--duration) var(--ease-spring);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Primary — ink background, cream text */
.btn-primary {
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--shadow-btn);
}

.btn-primary .btn-arrow {
    background: var(--cream);
    color: var(--ink);
}

.btn-primary:hover {
    box-shadow: var(--shadow-btn-lg);
    transform: translateY(-1px);
}

/* Sun — yellow, ink text */
.btn-sun {
    background: var(--sun);
    color: var(--ink);
    box-shadow: var(--shadow-btn);
}

.btn-sun .btn-arrow {
    background: var(--ink);
    color: var(--cream);
}

.btn-sun:hover {
    box-shadow: var(--shadow-btn-lg);
    transform: translateY(-1px);
}

/* Outline on dark — cream border */
.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(255,255,255,0.5);
    padding: calc(var(--sp-4) - 2px) var(--sp-3) calc(var(--sp-4) - 2px) var(--sp-6);
}

.btn-outline-light .btn-arrow {
    background: var(--cream);
    color: var(--ink);
}

.btn-outline-light:hover {
    border-color: var(--cream);
    background: var(--cream);
    color: var(--ink);
}

.btn-outline-light:hover .btn-arrow {
    background: var(--ink);
    color: var(--cream);
}

/* Small inline link button */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color var(--duration) ease, opacity var(--duration) ease;
}

.btn-link:hover {
    border-color: currentColor;
}

/* ─── 7. Navigation ─────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: oklch(98.5% .012 95 / 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid oklch(18% .02 250 / 0.10);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: 0 2px 16px oklch(18% .02 250 / 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--sp-5);
    padding-block: var(--sp-4);
    gap: var(--sp-4);
}

@media (min-width: 1024px) {
    .nav-inner { padding-inline: var(--sp-8); }
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    transition: opacity var(--duration) ease;
}

.nav-logo:hover { opacity: 0.75; }

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.logo-mark--light {
    background: var(--sun);
    color: var(--ink);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.nav-logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 264px;
}

.footer-logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 240px;
}

@media (max-width: 480px) {
    .nav-logo-img { height: 41px; }
}

/* Nav links */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--sp-1);
}

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

.nav-link {
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    color: oklch(18% .02 250 / 0.75);
    transition: background-color var(--duration) ease, color var(--duration) ease;
}

.nav-link:hover {
    background: oklch(92% .14 95 / 0.5);
    color: var(--ink);
}

.nav-link.active {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 3px 3px 0 0 var(--ink);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* Simple pill button in nav (no arrow) */
.nav-actions .btn-primary {
    padding: var(--sp-2) var(--sp-5);
    font-size: 0.9375rem;
    box-shadow: 0 4px 0 0 var(--ink);
}

.nav-actions .btn-primary:hover {
    box-shadow: 0 6px 0 0 var(--ink);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-2);
    border-radius: var(--radius-sm);
    transition: background var(--duration) ease;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease-spring), opacity var(--duration) ease;
}

.nav-hamburger:hover { background: oklch(18% .02 250 / 0.06); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
    .nav-hamburger { display: none; }
}

/* Mobile nav */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: 0 var(--sp-5);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s var(--ease-out), padding 0.3s ease;
    border-top: 1px solid oklch(18% .02 250 / 0.08);
}

.mobile-nav.open {
    max-height: 400px;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
}

@media (min-width: 768px) {
    .mobile-nav { display: none; }
}

.mobile-link {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    color: oklch(18% .02 250 / 0.8);
    transition: background var(--duration) ease;
}

.mobile-link:hover { background: oklch(92% .14 95 / 0.6); }

.mobile-cta {
    margin-top: var(--sp-2);
    text-align: center;
    justify-content: center;
}

/* ─── 8. Hero Section ───────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-24);
    overflow: hidden;
}

/* Radial gradient overlay — matches springhome */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 15% 25%, oklch(0.92 0.14 95 / 0.55), transparent 45%),
        radial-gradient(circle at 85% 75%, oklch(0.78 0.09 230 / 0.45), transparent 50%);
}

/* Decorative wavy SVG strokes */
.hero-wave-left,
.hero-wave-right {
    position: absolute;
    pointer-events: none;
    display: none;
}

@media (min-width: 768px) {
    .hero-wave-left  { display: block; left: -16px; top: 80px;  height: 480px; width: 80px; color: oklch(98.5% .012 95 / 0.12); }
    .hero-wave-right { display: block; right: -8px; bottom: 32px; height: 400px; width: 72px; color: oklch(92% .14 95 / 0.35); }
}

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

.hero-grid {
    display: grid;
    gap: var(--sp-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: var(--sp-16);
    }
}

/* Hero text column */
.hero-text .chip {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.6s var(--ease-out) 0.1s forwards;
}

.hero-text h1 {
    font-family: var(--font-display);
    color: var(--cream);
    margin-top: var(--sp-5);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s var(--ease-out) 0.25s forwards;
}

.hero-text h1 .underline-accent {
    position: relative;
    display: inline-block;
}

.hero-text h1 .underline-accent svg {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    color: var(--sun);
}

.hero-subtitle {
    margin-top: var(--sp-6);
    max-width: 480px;
    font-size: 1.125rem;
    color: oklch(98.5% .012 95 / 0.70);
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.38s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6) var(--sp-8);
    margin-top: var(--sp-10);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) 0.65s forwards;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.hero-badge-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hero-badge-text .label {
    font-weight: 700;
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.1;
}

.hero-badge-text .sublabel {
    font-size: 0.75rem;
    color: oklch(98.5% .012 95 / 0.60);
}

/* Hero image column */
.hero-visual {
    position: relative;
    opacity: 0;
    transform: scale(0.92);
    animation: scaleIn 0.8s var(--ease-out) 0.3s forwards;
}

/* Sun-colored offset shadow box behind image */
.hero-visual-shadow {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translate(20px, 20px);
    border-radius: var(--radius-xl);
    background: var(--sun);
}

.hero-visual-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    border: 3px solid var(--cream);
    background: var(--sky);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.hero-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating annotation cards — rotated with hard shadow */
.hero-float-card {
    position: absolute;
    z-index: 2;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--radius-md);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-card);
}

.hero-float-card--tl {
    top: 10%;
    left: -5%;
    transform: rotate(-6deg);
}

.hero-float-card--br {
    bottom: -6%;
    right: 4%;
    background: var(--sun);
    transform: rotate(5deg);
}

.hero-float-card .float-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: oklch(18% .02 250 / 0.55);
}

.hero-float-card .float-value {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 2px;
}

.hero-float-card .float-sub {
    font-size: 0.6875rem;
    color: oklch(18% .02 250 / 0.55);
    margin-top: 2px;
}

/* Live ping dot */
.ping-dot {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.ping-dot span:first-child {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--sun-deep);
    opacity: 0.75;
    animation: ping 1.4s cubic-bezier(0,0,0.2,1) infinite;
}

.ping-dot span:last-child {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sun-deep);
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* ─── 9. Section: Stats Bar ─────────────────────────────────────── */
.stats-bar {
    background: var(--sun);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-block: var(--sp-6);
}

.stats-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-8) var(--sp-16);
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: oklch(18% .02 250 / 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--sp-1);
}

/* ─── 10. Section: Features ─────────────────────────────────────── */
.video-section {
    background: var(--cream);
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-16);
}

.video-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    background:
        radial-gradient(circle at 30% 30%, oklch(92% .14 95 / 0.18), transparent 55%),
        radial-gradient(circle at 75% 75%, oklch(78% .09 230 / 0.18), transparent 55%),
        var(--ink);
    color: oklch(98.5% .012 95 / 0.85);
    font-family: var(--font-display);
}

.video-play {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    border: 3px solid var(--ink);
    font-size: 2rem;
    padding-left: 6px;
    box-shadow: 6px 6px 0 0 oklch(98.5% .012 95 / 0.18);
}

.video-placeholder-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: oklch(98.5% .012 95 / 0.7);
}

.features-section {
    background: var(--cream);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: oklch(18% .02 250 / 0.55);
    margin-bottom: var(--sp-4);
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    opacity: 0.4;
}

.section-header {
    max-width: 640px;
}

.section-header h2 {
    margin-bottom: var(--sp-4);
}

.section-header p {
    font-size: 1.125rem;
    color: oklch(18% .02 250 / 0.65);
}

.features-grid {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-12);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Feature card — springhome hard-shadow style */
.feature-card {
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--duration) var(--ease-spring),
        box-shadow var(--duration) var(--ease-out);
    will-change: transform;
}

.feature-card:hover {
    transform: translate(-2px, -4px);
    box-shadow: 8px 10px 0 0 var(--ink);
}

.feature-card--sun {
    background: var(--sun);
}

.feature-card--sky {
    background: var(--sky);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--cream);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-bottom: var(--sp-4);
}

.feature-card--sun .feature-icon,
.feature-card--sky .feature-icon {
    background: oklch(18% .02 250 / 0.12);
    color: var(--ink);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.9375rem;
    color: oklch(18% .02 250 / 0.65);
    line-height: 1.65;
}

/* ─── 11. Section: How It Works ─────────────────────────────────── */
.workflow-section {
    background: var(--ink);
    color: var(--cream);
}

.workflow-section .section-label {
    color: oklch(98.5% .012 95 / 0.55);
}

.workflow-section .section-label::before {
    background: var(--cream);
}

.workflow-section .section-header p {
    color: oklch(98.5% .012 95 / 0.65);
}

.workflow-steps {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-12);
}

@media (min-width: 768px) {
    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .workflow-steps { grid-template-columns: repeat(3, 1fr); }
}

.workflow-step {
    position: relative;
    padding: var(--sp-6);
    border: 1px solid oklch(98.5% .012 95 / 0.12);
    border-radius: var(--radius-lg);
    background: oklch(98.5% .012 95 / 0.04);
    transition: background var(--duration) ease, border-color var(--duration) ease;
}

.workflow-step:hover {
    background: oklch(98.5% .012 95 / 0.07);
    border-color: oklch(98.5% .012 95 / 0.20);
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(98.5% .012 95 / 0.35);
    margin-bottom: var(--sp-4);
}

.workflow-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: var(--sp-2);
}

.workflow-step p {
    font-size: 0.9375rem;
    color: oklch(98.5% .012 95 / 0.65);
    line-height: 1.65;
}

/* ─── 12. Section: AI Tools ─────────────────────────────────────── */
.ai-section {
    background: var(--sky);
}

.ai-grid {
    display: grid;
    gap: var(--sp-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .ai-grid { grid-template-columns: 1fr 1fr; }
}

.ai-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

.ai-feature-item {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    background: oklch(18% .02 250 / 0.05);
    transition: background var(--duration) ease;
}

.ai-feature-item:hover {
    background: oklch(18% .02 250 / 0.09);
}

.ai-feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--cream);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--sp-1);
}

.ai-feature-item p {
    font-size: 0.9rem;
    color: oklch(18% .02 250 / 0.65);
    line-height: 1.6;
}

/* AI visual panel */
.ai-visual {
    position: relative;
}

.ai-panel-mockup {
    background: var(--ink);
    border-radius: var(--radius-xl);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.ai-panel-header {
    background: oklch(98.5% .012 95 / 0.06);
    padding: var(--sp-3) var(--sp-5);
    border-bottom: 1px solid oklch(98.5% .012 95 / 0.10);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.ai-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ai-panel-dot:nth-child(1) { background: #ff5f57; }
.ai-panel-dot:nth-child(2) { background: #febc2e; }
.ai-panel-dot:nth-child(3) { background: #28c840; }

.ai-panel-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: oklch(98.5% .012 95 / 0.55);
    margin-left: var(--sp-2);
}

.ai-panel-body {
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.ai-bubble {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-end;
}

.ai-bubble-text {
    background: oklch(98.5% .012 95 / 0.10);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.875rem;
    color: oklch(98.5% .012 95 / 0.80);
    line-height: 1.6;
    max-width: 85%;
}

.ai-bubble--user {
    flex-direction: row-reverse;
}

.ai-bubble--user .ai-bubble-text {
    background: var(--sun);
    color: var(--ink);
    border-radius: var(--radius-md);
    border-bottom-right-radius: 4px;
}

.ai-bubble-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: oklch(98.5% .012 95 / 0.15);
    color: oklch(98.5% .012 95 / 0.7);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ai-bubble--user .ai-bubble-avatar {
    background: var(--sun-deep);
    color: var(--ink);
}

/* ─── 13. Section: Download / CTA ───────────────────────────────── */
.download-section {
    background: var(--sun);
    border-top: 2px solid var(--ink);
}

.download-inner {
    display: grid;
    gap: var(--sp-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .download-inner { grid-template-columns: 1fr 1fr; }
}

.download-text h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--ink);
    margin-bottom: var(--sp-4);
}

.download-text p {
    font-size: 1.125rem;
    color: oklch(18% .02 250 / 0.65);
    max-width: 480px;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
}

.download-note {
    margin-top: var(--sp-4);
    font-size: 0.875rem;
    color: oklch(18% .02 250 / 0.55);
}

.platform-cards {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.platform-card {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: 4px 4px 0 0 var(--ink);
    transition: transform var(--duration) var(--ease-spring), box-shadow var(--duration) ease;
}

.platform-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 6px 7px 0 0 var(--ink);
}

.platform-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.platform-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.platform-card p {
    font-size: 0.8125rem;
    color: oklch(18% .02 250 / 0.55);
}

/* ─── 14. Section: Contact ──────────────────────────────────────── */
.contact-section {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    gap: var(--sp-12);
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-text h2 {
    margin-bottom: var(--sp-4);
}

.contact-text p {
    font-size: 1.0625rem;
    color: oklch(18% .02 250 / 0.65);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
}

/* Form */
.contact-form {
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: oklch(18% .02 250 / 0.80);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid oklch(18% .02 250 / 0.18);
    border-radius: var(--radius-md);
    background: white;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    outline: none;
    transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: oklch(18% .02 250 / 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
    box-shadow: 3px 3px 0 0 var(--ink);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-message {
    display: none;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--sp-4);
}

.form-message--success {
    background: var(--sky);
    color: var(--ink);
    border: 2px solid oklch(18% .02 250 / 0.18);
}

.form-message--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 2px solid #fca5a5;
}

.form-submit {
    width: 100%;
    justify-content: center;
}

/* ─── 15. Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding-top: var(--sp-16);
}

.footer-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--sp-5);
    display: grid;
    gap: var(--sp-12);
    padding-bottom: var(--sp-12);
    border-bottom: 1px solid oklch(98.5% .012 95 / 0.12);
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr;
        padding-inline: var(--sp-8);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.footer-logo .logo-text {
    color: var(--cream);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: oklch(98.5% .012 95 / 0.55);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: var(--sp-12);
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: oklch(98.5% .012 95 / 0.45);
    margin-bottom: var(--sp-1);
}

.footer-link {
    font-size: 0.9375rem;
    color: oklch(98.5% .012 95 / 0.65);
    transition: color var(--duration) ease;
}

.footer-link:hover { color: var(--cream); }

.footer-bottom {
    max-width: 1280px;
    margin-inline: auto;
    padding: var(--sp-5) var(--sp-5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-2);
    font-size: 0.8125rem;
    color: oklch(98.5% .012 95 / 0.40);
}

@media (min-width: 768px) {
    .footer-bottom { padding-inline: var(--sp-8); }
}

/* ─── 16. Scroll Reveal Animations ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }
.reveal-delay-6 { transition-delay: 0.60s; }

/* ─── 17. Keyframes ─────────────────────────────────────────────── */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes spring-roll {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(-20deg) scale(1.1); }
    75%       { transform: rotate(20deg) scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--float-rotate, 0deg)); }
    50%       { transform: translateY(-8px) rotate(var(--float-rotate, 0deg)); }
}

/* ─── 18. Utilities ─────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border-width: 0;
}

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

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}
