/* 
   Atlas Web Agency - Core Stylesheet
   Theme: Premium Dark Mode B2B Web Agency (Indigo, Violet, Cyan Glows)
   Typography: Outfit & Plus Jakarta Sans
*/

/* Self-hosted variable fonts (latin subset, WOFF2).
   Replaces a Google Fonts @import, which was render-blocking in the worst way:
   @import is invisible to the browser's preload scanner, so the font request
   could not even begin until this 42 KB stylesheet had downloaded and parsed —
   four serial round-trips before any text could render. It also sent every
   visitor's IP to a third party on page load.

   Two variable files cover every weight the site uses, 58 KB total, versus the
   16 weight/style combinations the old URL requested for roughly five that are
   actually used.

   Note: this is the normal-style subset only. The one italic on the site,
   .price-card-positioning, falls back to synthetic oblique — not worth a third
   file for a 0.85rem caption. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/QGYvz_MVcBeNP4NJtEtq.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-card: rgba(13, 17, 28, 0.7);
    --bg-card-hover: rgba(20, 26, 42, 0.85);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-bright: rgba(255, 255, 255, 0.12);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-bright: #8b5cf6; /* Purple */
    
    --accent: #06b6d4; /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.15);
    --accent-bright: #22d3ee;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    
    /* Layout & Spacing */
    --nav-height: 64px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* The blanket `outline: none` above kills the only visible indication of where
   keyboard focus is. :focus-visible restores it for keyboard users WITHOUT
   putting a ring around every mouse click — the browser applies it only when
   it judges a focus ring is warranted. Cyan #22d3ee measures ~11:1 on the dark
   background. Specificity (0,1,0) beats the element selector above, so this
   wins wherever it applies. */
:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

/* Screen-reader-only text: present in the accessibility tree, invisible on
   screen. The standard clip-rect recipe — display:none or visibility:hidden
   would remove it from assistive tech too, which is the opposite of the goal. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link: parked off-screen (not display:none, which would remove it from
   the tab order and defeat its purpose), surfacing as a fixed pill only when
   focused. z-index 2000 clears the navbar (1000) and the intro logo (1200). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass-bright);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
    transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Reusable Grid & Layout classes */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

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

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

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px; /* pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-bright);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #030712;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    height: var(--nav-height);
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 10, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 0 32px;
    height: 64px;
    max-width: 1200px;
}

header.scrolled {
    top: 10px;
}

header.scrolled .container {
    background: rgba(7, 9, 14, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.45rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ffffff 60%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease,
                box-shadow 0.35s ease;
}

.logo:hover .logo-dot {
    transform: translateX(4px);
    background-color: var(--accent-bright);
    box-shadow: 0 0 10px var(--accent-bright);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul a {
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

nav ul a:hover, nav ul a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 60px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Static fallback: shown until the shader boots, and kept when WebGL is unavailable */
    background: radial-gradient(circle at 75% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 45%);
}

/* Animated liquid-orb background (painted by hero-bg.js). Anchored to the top
   of the document so it scrolls away with the hero; its bottom edge blends
   into the exact page background inside the shader, so there is no seam. */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    /* z-index is a discrete property, so the drop back behind the copy cannot
       be tweened — it is delayed instead, landing 0.45s into the rise. That is
       long enough for the copy to visibly travel up THROUGH the orb before the
       orb settles behind it. */
    transition: opacity 1.2s ease, z-index 0s linear 0.45s;
}

.hero-bg.is-active {
    opacity: 1;
}

/* During the intro the animation owns the foreground, painting OVER the page
   as it rises. `.hero` is z-index auto, so 4 clears it; the navbar (1000) and
   the intro logo (1200) still sit above. */
body.intro-pending .hero-bg {
    z-index: 4;
}

/* While the shader runs it paints the page background itself â€” drop the hero's
   static fallback glow so it doesn't double up. */
body.bg-active .hero {
    background: none;
}

/* ---- Intro sequence (driven by hero-bg.js) ----
   1. AIG logo center stage over the merged orb
   2. Orb springs open into the trio while the logo travels to top center
   3. Logo slides left into its navbar spot; navbar + content reveal together */
#intro-logo {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}

#intro-logo.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#intro-logo.moving {
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

body.intro-pending #navbar { opacity: 0; }
body.intro-pending #navbar .logo { opacity: 0; }

/* The page renders normally and at FULL opacity from first paint — it is
   simply parked below the fold, then rides up as the logo travels to the
   navbar. `.hero` is `overflow: hidden`, so the parked copy is clipped rather
   than spilling into the scroll height.

   Why translate instead of fade: Chrome excludes `opacity: 0` elements from
   Largest Contentful Paint, so the old fade held LCP at the full ~5.6s intro.
   Transform costs no layout either, so this cannot cause layout shift.

   The distance is exact rather than guessed: the copy is centred in a 100vh
   hero, so its top sits at ~(50vh - half its height). Pushing it down by
   50vh + 50% of its own height lands that top edge precisely on the fold —
   correct at any viewport size or content height. */
body.intro-pending .hero > .container {
    transform: translateY(calc(50vh + 50%));
    will-change: transform;
}

body.intro-reveal #navbar { transition: opacity 0.55s ease; }
/* The navbar logo waits for the intro logo to land on it. The reveal now fires
   a full INTRO_RISE (1s) BEFORE the logo starts sliding left, so this delay is
   that 1s plus the ~0.55s the slide needs to visually arrive. Shorten it and
   two logos show at once. */
body.intro-reveal #navbar .logo { transition: opacity 0.25s ease 1.55s; }
/* Matches the logo's own travel curve and duration exactly (#intro-logo.moving),
   so the copy and the logo read as one synchronised gesture. */
body.intro-reveal .hero > .container {
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

/* If motion is reduced the JS skips the intro entirely, but this guards the
   frames before hero-bg.js boots — the copy must never start off-screen. */
@media (prefers-reduced-motion: reduce) {
    body.intro-pending .hero > .container { transform: none; }
}

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

.hero-content {
    max-width: 600px;
}

/* ---- Hero alignment variants ----
   LEFT is the default: `.hero-content` is a 600px block at the start of the
   container and `.hero-actions` uses the flex default (flex-start), so the
   left layout needs no rules at all — it is what the stylesheet already
   described before two inline styles overrode it.

   To compare against the centred version, add `hero-centered` to
   <section class="hero"> — in the markup, or live in DevTools:

       document.querySelector('.hero').classList.toggle('hero-centered')
*/
.hero.hero-centered .hero-content {
    margin: 0 auto;
    text-align: center;
}

.hero.hero-centered .hero-actions {
    justify-content: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

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

/* Orphaned hero-mockup CSS removed 2026-07-29: .hero-trust/.trust-stars/
   .trust-text (star-rating badge), .hero-visual/.hero-glow-bg, and the whole
   .browser-mockup/.browser-content/.mock-* tree lost their markup when the
   hero visual was cut in 62efa37 — ~150 lines of dead window-chrome and
   rating vocabulary were still shipping in this file.

   The builder window's frame below is deliberately styled as OUR app window,
   not a web browser: no traffic-light colours, no address-bar affordance.
   Imitation browser chrome is a phishing-classifier signal this domain cannot
   afford while its reputation is being rebuilt. */
.window-bar {
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
}

.window-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.window-dot.dot-a { background: var(--primary); }
.window-dot.dot-b { background: var(--primary-bright); }
.window-dot.dot-c { background: var(--accent); }

.window-title {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    height: 18px;
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-grow: 1;
    margin-left: 20px;
}

/* Service Detail Sections (F1 Structure Flow) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-check {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-text h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ====================================================
   SCROLL-DRIVEN DYNAMIC SITE BUILDING GRAPHIC (F1 FLOW)
   ==================================================== */
.services-scroll-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    position: relative;
    align-items: start;
}

.services-text-track {
    display: flex;
    flex-direction: column;
}

/* Each service section in the track gets height/padding to allow smooth scrolling */
.services-text-track .section {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.services-text-track .section:last-child {
    border-bottom: none;
}

.services-sticky-preview {
    position: sticky;
    top: 100px;
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Interactive Site Builder Window */
.builder-window {
    width: 100%;
    max-width: 440px;
    height: 480px;
    background: #0d111c;
    border: 1px solid var(--border-glass-bright);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 100px rgba(99, 102, 241, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

/* Window states styling based on parent attribute (data-active-state) */
.builder-content-area {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.builder-stage {
    position: absolute;
    inset: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.builder-stage.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* STAGE 1: WIREFRAME / DESIGN */
.stage-design-grid {
    display: grid;
    grid-template-rows: 20px 80px 1fr;
    gap: 16px;
    height: 100%;
}

.wireframe-nav {
    border: 1px dashed var(--primary);
    border-radius: 4px;
    opacity: 0.5;
    position: relative;
}
.wireframe-nav::after {
    content: 'Navigation Wire';
    position: absolute;
    font-size: 0.5rem;
    color: var(--primary);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-heading);
}

.wireframe-hero {
    border: 1px dashed var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(99, 102, 241, 0.02);
}

.wireframe-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.wireframe-main {
    border: 1px dashed var(--primary);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.6;
}

.wireframe-line {
    height: 4px;
    background: var(--primary);
    opacity: 0.2;
    border-radius: 2px;
}

.wireframe-sidebar {
    border: 1px dashed var(--accent);
    border-radius: 4px;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.7rem;
}

/* Stage 1 comes alive: the blueprint draws itself each time the stage
   activates â€” nav sketches first, hero reveals left-to-right, text lines
   draw in, the sidebar drops in last, then a soft design-scan sweeps on a
   loop. Single-keyframe animations end at each element's natural state. */
.wireframe-nav,
.wireframe-line {
    transform-origin: left center;
}

.stage-design.active .wireframe-nav {
    animation: wfSketch 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}
.stage-design.active .wireframe-nav::after {
    animation: wfFade 0.4s ease 0.6s backwards;
}
.stage-design.active .wireframe-hero {
    animation: wfReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}
.stage-design.active .wireframe-main {
    animation: wfFade 0.5s ease 1.05s backwards;
}
.stage-design.active .wireframe-line {
    animation: wfSketch 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.stage-design.active .wireframe-line:nth-child(1) { animation-delay: 1.2s; }
.stage-design.active .wireframe-line:nth-child(2) { animation-delay: 1.35s; }
.stage-design.active .wireframe-line:nth-child(3) { animation-delay: 1.5s; }
.stage-design.active .wireframe-sidebar {
    animation: wfDrop 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.65s backwards;
}

.stage-design-grid {
    position: relative;
    overflow: hidden;
}
.stage-design-grid::after {
    content: '';
    position: absolute;
    top: -10%;
    bottom: -10%;
    width: 60px;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.06), rgba(34, 211, 238, 0.13), transparent);
    transform: translateX(-80px);
    pointer-events: none;
}
.stage-design.active .stage-design-grid::after {
    animation: wfScan 5s ease-in-out 2.4s infinite;
}

@keyframes wfSketch {
    from { transform: scaleX(0); opacity: 0; }
}
@keyframes wfFade {
    from { opacity: 0; }
}
@keyframes wfReveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@keyframes wfDrop {
    from { transform: translateY(10px); opacity: 0; }
}
@keyframes wfScan {
    0%   { transform: translateX(-80px); }
    55%  { transform: translateX(480px); }
    100% { transform: translateX(480px); }
}

@media (prefers-reduced-motion: reduce) {
    .stage-design.active .wireframe-nav,
    .stage-design.active .wireframe-nav::after,
    .stage-design.active .wireframe-hero,
    .stage-design.active .wireframe-main,
    .stage-design.active .wireframe-line,
    .stage-design.active .wireframe-sidebar {
        animation: none;
    }
    .stage-design-grid::after {
        display: none;
    }
}

/* STAGE 2: ENGINEERING / CODE COMPILING */
.stage-code-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.code-console {
    background: #05070a;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 16px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #38bdf8;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.console-line {
    margin-bottom: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    animation: consoleLineIn 3s infinite linear;
}

.console-line:nth-child(2) { animation-delay: 0.4s; }
.console-line:nth-child(3) { animation-delay: 0.8s; }
.console-line:nth-child(4) { animation-delay: 1.2s; }
.console-line:nth-child(5) { animation-delay: 1.6s; }

@keyframes consoleLineIn {
    0%, 100% { opacity: 0; transform: translateY(5px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

.speed-metric-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: 8px;
}

.gauge-wrap {
    position: relative;
    width: 64px;
    height: 64px;
}

.gauge-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.gauge-circle-fill {
    fill: none;
    stroke: var(--success);
    stroke-width: 4;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 188.4; /* Will animate in JS */
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--success);
}

.speed-label-text .speed-label-title {
    /* Was an h4 — demoted to a span because a widget label is not a document
       heading. A span no longer inherits the h1–h6 base styles, so the heading
       typography is restated here to keep the rendering identical. */
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: 1rem;
    color: var(--text-primary);
}

.speed-label-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* STAGE 3: SEO RANKING CARD */
.stage-seo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: 100%;
}

.search-results-bar {
    background: #05070a;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* .google-dots removed 2026-07-29: it rendered the Google wordmark in
   Google's brand colours — trademark misuse and a phishing-classifier
   trigger. The bar now shows a neutral magnifier + label. */
.search-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    height: 180px;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 12px;
    transition: var(--transition-smooth);
}

.search-result-card.target-site {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
    position: absolute;
    left: 0; right: 0;
    bottom: 0; /* JS will animate this to top:0 */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), top 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo-title-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-bright);
    margin-bottom: 2px;
}

.seo-meta-snippet {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* STAGE 4: CLOUD NETWORKS */
.stage-cloud-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-globe-svg {
    width: 220px;
    height: 220px;
    opacity: 0.4;
    color: var(--primary);
    animation: rotateGlobe 30s linear infinite;
}

@keyframes rotateGlobe {
    100% { transform: rotate(360deg); }
}

.network-pulse-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.network-pulse-node::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: nodePulse 1.5s infinite ease-out;
}

@keyframes nodePulse {
    100% { transform: scale(2.2); opacity: 0; }
}

.cloud-security-badge {
    position: absolute;
    background: rgba(5, 7, 10, 0.95);
    border: 1px solid var(--success);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.15);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    opacity: 0;
}

.cloud-security-badge.active {
    opacity: 1;
    transform: scale(1);
}

.cloud-security-badge span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pricing Plans Section */
.pricing-grid {
    margin-top: 40px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

.price-card:hover {
    transform: translateY(-6px);
}

/* Featured Price Card - Gold Highlighted */
.price-card-featured {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.price-card-badge {
    position: absolute;
    top: 20px;
    right: 32px;
    background: var(--accent);
    color: #0b0b0b;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 12px;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.price-card-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.price-card-name {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.price-card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    margin-right: 2px;
}

.price-period {
    font-size: 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 8px;
}

.price-card-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.price-card-positioning {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 12px;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 10px;
    line-height: 1.4;
}

.price-card-featured .price-card-positioning {
    border-left-color: var(--accent);
}

.price-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.price-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.price-check-svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.price-card-featured .price-check-svg {
    color: var(--accent);
}

.price-cta {
    width: 100%;
}

/* Portfolio Showroom */
.portfolio-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
}

.portfolio-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.1) 0%, rgba(7, 9, 14, 0.95) 100%);
    z-index: 2;
}

.portfolio-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.portfolio-item:hover .portfolio-img-bg {
    transform: scale(1.1);
}

.portfolio-item:hover {
    border-color: var(--primary);
}

.portfolio-item-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.portfolio-item-tag {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.portfolio-item-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.portfolio-item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.portfolio-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.portfolio-item-link svg {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item-link svg {
    transform: translateX(4px);
    color: var(--primary);
}

/* Signature Process Timeline */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border-glass);
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 64px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 82px;
    height: 82px;
    background: var(--bg-dark);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 0 0 10px var(--bg-dark);
    transition: var(--transition-smooth);
}

.process-step:hover .process-number {
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 10px var(--bg-dark), 0 0 15px var(--primary-glow);
}

.process-content {
    padding-top: 16px;
}

.process-step-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.process-step-desc {
    color: var(--text-secondary);
    max-width: 700px;
}


/* Contact Section & Form */
.contact-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 60px;
    align-items: center;
}

.contact-info-panel h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.contact-info-panel p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.detail-text h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-text p {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

/* Form Container */
.form-card {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--border-radius-md);
}

.form-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.form-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.form-step {
    display: none;
    animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-title {
    font-size: 1.8rem;
    margin-bottom: 28px;
}

.form-step-subtitle {
    margin-top: -20px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input-text:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Radio Choice styling */
.form-choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.choice-box {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
    position: relative;
}

/* The real radio/checkbox, stretched invisibly over the whole card.
   It used to carry `display: none`, which took all 23 choices out of the tab
   order AND the accessibility tree — the survey could not be completed with a
   keyboard at all, and validateStep() hard-stops without a selection.

   Kept in the layout (transparent, not hidden) it is focusable again, the
   whole card is natively clickable with no JS, and radio groups regain their
   built-in arrow-key navigation for free. `appearance: none` suppresses the
   native control so nothing shows through. */
.choice-box .choice-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.choice-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-glass-bright);
}

/* `.active` is kept in sync by app.js; `:has(:checked)` makes the selected
   state correct even before script runs and for any input state change the
   handler misses. */
.choice-box.active,
.choice-box:has(.choice-input:checked) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* The focus ring has to sit on the card, since the input itself is invisible. */
.choice-box:has(.choice-input:focus-visible) {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.choice-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.choice-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Consent Checkbox */
.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.consent-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Form Action Buttons */
.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

/* Custom Success State Alert */
.submit-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    animation: fadeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-check-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-glass);
    background: #040509;
    padding: 80px 0 40px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.82fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

/* .footer-socials / .social-link rules removed 2026-07-29 along with their
   markup — the icons all pointed at "#" and the GitHub org is never linked. */

.footer-nav-col h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-col ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-terms {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-terms a:hover {
    color: var(--text-secondary);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(13, 17, 28, 0.95);
    border: 1px solid var(--border-glass-bright);
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(50px);
    opacity: 0;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .services-scroll-container {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .services-sticky-preview {
        position: sticky;
        top: 70px;
        height: 380px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
        background: var(--bg-dark);
        padding: 10px 0;
        border-bottom: 1px solid var(--border-glass);
        margin-bottom: 20px;
    }
    .builder-window {
        max-width: 440px;
        height: 100%;
        transform: scale(0.8);
    }
    @media (max-width: 480px) {
        .services-sticky-preview {
            height: 300px;
        }
        .builder-window {
            transform: scale(0.6);
            transform-origin: center center;
        }
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .form-choices-grid {
        grid-template-columns: 1fr;
    }
    .footer-layout {
        grid-template-columns: 1fr;
    }
    nav {
        display: none;
    }
}
