/* ================================================================
   LEGACY LIGHT PAGES (ai, security, Daily Brief)
   Tokens retuned 2026-10-28 to the foundry light palette and type
   (see css/site.css for the full system and contrast notes).
   Originally: STELLAR — Jones Web Designs
   Light · Warm gradient atmospheres · Soft rounded cards
   General Sans display · JetBrains Mono code
   Inspired by the "Stellar AI Developer Platform" aesthetic
   ================================================================ */

:root {
    /* ---- Canvas ---- */
    --bg:        #F2F4F5;   /* cool paper (was warm #F4F2EF) */
    --bg-2:      #FFFFFF;   /* white surface */
    --bg-3:      #E6EAEC;   /* subtle alt */
    --bg-tint:   #F7F9FA;   /* near-white panel */

    /* ---- Ink & text (palette-derived) ---- */
    --ink:       #101C27;   /* near-black headings */
    --ink-2:     #22313E;
    --text:      #3B4A57;   /* warm gray body */
    --text-2:    #5A6B78;   /* AA-contrast small label gray */
    --text-dim:  #A9B8C3;   /* light gray (decorative only) */

    /* ---- Lines ---- */
    --line:      rgba(16, 28, 39, 0.10);
    --line-soft: rgba(16, 28, 39, 0.06);
    --line-strong: rgba(16, 28, 39, 0.16);

    /* ---- Accents (Stellar petal palette) ---- */
    --blush:     #BFDDDC;   /* soft blue glow (was pink #E0A1A2) */
    --rose:      #E0A1A2;   /* kept for 'bad grade' indicators only */
    --lavender:  #C8B6D1;
    --purple:    #80749C;
    --peach:     #F4D6C2;
    --cream:     #E8EEF0;   /* cool panel tint (was warm cream) */
    --sky:       #D6E7E7;   /* light blue for decorative tints */
    --accent:    #1B6A69;   /* primary accent: deep logo blue, passes WCAG AA on paper, cream and white */
    --accent-light: #65C8C7; /* accent for dark backgrounds */
    --danger:    #B42318;   /* severity / warnings only */
    --accent-2:  #80749C;
    --brand-blue: #8E5530;  /* the blue in the JWD logo */

    /* ---- Dark band ---- */
    --dark:      #101C27;
    --dark-2:    #17232F;
    --on-dark:   #F2F4F5;
    --on-dark-dim: rgba(244, 242, 239, 0.55);

    /* ---- Legacy aliases (referenced by older inline styles / scripts) ---- */
    --black: #101C27;
    --white: #ffffff;
    --primary-blue: #1B6A69;
    --secondary-blue: #80749C;
    --light-blue: #1B6A69;
    --dark-blue: #80749C;
    --accent-blue: #1B6A69;
    --text-gray: #3B4A57;

    /* ---- Code editor tokens ---- */
    --tok-comment: #A8A2A8;
    --tok-key:     #B5485C;
    --tok-str:     #5E8A6B;
    --tok-fn:      #7C5BC2;
    --tok-var:     #2E6FB0;
    --tok-punc:    #6B6670;
    --tok-num:     #1B6A69;

    /* ---- Layout ---- */
    --container: 1200px;
    --container-wide: 1320px;
    --inset: 24px;
    --section-pad: 120px;
    --section-pad-sm: 84px;

    /* ---- Radii ---- */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 36px;
    --r-pill: 999px;

    /* ---- Shadows (soft, light theme) ---- */
    --sh-xs: 0 1px 2px rgba(7, 7, 8, 0.05);
    --sh-sm: 0 2px 6px rgba(7, 7, 8, 0.05), 0 1px 2px rgba(7, 7, 8, 0.04);
    --sh-md: 0 8px 12px -8px rgba(7, 7, 8, 0.20), 0 2px 6px -3px rgba(7, 7, 8, 0.08);
    --sh-lg: 0 12px 12px -8px rgba(7, 7, 8, 0.26), 0 4px 10px -6px rgba(7, 7, 8, 0.12);
    --sh-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 12px -8px rgba(7, 7, 8, 0.16);

    /* ---- Type ---- */
    --font-display: 'Archivo', 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* ---- Motion ---- */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.18s var(--ease);
    --t-base: 0.32s var(--ease);
    --t-slow: 0.6s var(--ease-out);
}

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

/* Browsers that support it crossfade between pages on the same site
   instead of cutting to white. Others just navigate normally. */
@view-transition { navigation: auto; }
/* Keep the floating nav still while the rest of the page crossfades. */
.navbar { view-transition-name: site-nav; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
    position: relative;
}

/* subtle page grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ================================================================
   LAYOUT PRIMITIVES
   ================================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--inset);
}

section { position: relative; }

.section-header {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    margin: 22px 0 0;
    letter-spacing: -0.035em;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--text);
    margin-top: 18px;
    max-width: 560px;
    line-height: 1.65;
}

/* ---- Pill badge / eyebrow ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-2);
    box-shadow: var(--sh-xs);
    letter-spacing: -0.01em;
}
.badge .badge-mark {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
}
.badge .badge-mark svg { width: 11px; height: 11px; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 0.975rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
    cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(7,7,8,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(7,7,8,0.65); }

.btn-secondary {
    background: var(--bg-2);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: var(--sh-xs);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--sh-sm); }

.btn-light {
    background: var(--ink);
    color: #fff;
}
.btn-light:hover { transform: translateY(-2px); background: #000; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); }

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

/* ================================================================
   AMBIENT GRADIENT ATMOSPHERE
   ================================================================ */
.atmos {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.atmos::after {
    /* fade into page bg at the bottom */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; left: -8vw; top: -14vw; background: radial-gradient(circle at 40% 40%, var(--blush), transparent 68%); animation: drift1 22s ease-in-out infinite; }
.blob-2 { width: 42vw; height: 42vw; right: -6vw; top: -10vw; background: radial-gradient(circle at 50% 50%, var(--lavender), transparent 66%); animation: drift2 26s ease-in-out infinite; }
.blob-3 { width: 40vw; height: 40vw; left: 28vw; top: 6vw; background: radial-gradient(circle at 50% 50%, var(--sky), transparent 64%); opacity: 0.85; animation: drift3 30s ease-in-out infinite; }
.blob-4 { width: 26vw; height: 26vw; left: 4vw; top: 24vw; background: radial-gradient(circle at 50% 50%, rgba(128,116,156,0.5), transparent 66%); animation: drift1 28s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(4vw, 3vw) scale(1.08);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-3vw, 4vw) scale(1.1);} }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-2vw, -3vw) scale(1.06);} }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: top var(--t-base);
}
.navbar .container { max-width: var(--container-wide); }
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 12px 10px 20px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-xs);
    position: relative;
    isolation: isolate;
    transition: box-shadow var(--t-base);
}
/* Glass lives on a pseudo so backdrop-filter doesn't make .nav-wrapper the
   containing block for the position:fixed mobile menu (which would shrink it
   to the pill instead of covering the viewport). */
.nav-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    z-index: -1;
    transition: background var(--t-base);
}
.navbar.scrolled .nav-wrapper {
    box-shadow: var(--sh-md);
}
.navbar.scrolled .nav-wrapper::before {
    background: rgba(255, 255, 255, 0.9);
}

.logo a { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 38px; width: auto; display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu > li { display: flex; }
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--r-pill);
    transition: color var(--t-fast), background var(--t-fast);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
@media (min-width: 861px) and (max-width: 1180px) {
    .nav-menu { gap: 0; }
    .nav-link { padding: 9px 10px; font-size: 0.9rem; }
    .nav-cta { padding: 11px 16px; margin-left: 4px; }
}
.nav-link:hover { color: var(--ink); background: rgba(7,7,8,0.05); }
.nav-link.active { color: var(--ink); }

.nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: 11px 20px;
    margin-left: 6px;
    box-shadow: 0 8px 20px -12px rgba(7,7,8,0.7);
}
.nav-cta:hover { background: #000; color: #fff !important; transform: translateY(-1px); }

/* mobile profile (hidden on desktop) */
.mobile-menu-bg, .nav-menu > li.mobile-menu-profile { display: none; }

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--bg-2);
    cursor: pointer;
    z-index: 1002;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    padding: 168px 0 80px;
    overflow: hidden;
}
.hero-background, .hero-overlay, .hero-code-bg { display: none; }

.hero .container { position: relative; z-index: 2; max-width: var(--container-wide); }

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6.6vw, 5.1rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--ink);
    margin: 26px 0 0;
}
.hero-subtitle {
    display: block;
    font-size: 0;  /* replaced by badge above; keep accessible text hidden visually if used */
}
.hero-title .highlight {
    position: relative;
    color: var(--brand-blue);
    font-style: italic;
    font-weight: 500;
}

.hero-description {
    font-size: 1.16rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 620px;
    margin: 26px 0 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    flex-wrap: wrap;
    justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-2);
    font-weight: 500;
}

.scroll-indicator { display: none; }

/* ================================================================
   PRODUCT MOCKUP — browser + code editor + preview
   ================================================================ */
.mockup {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 70px auto 0;
    border-radius: var(--r-lg);
    background: var(--bg-2);
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: var(--bg-tint);
    border-bottom: 1px solid var(--line-soft);
}
.mockup-dots { display: flex; gap: 7px; }
.mockup-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mockup-dots span:nth-child(1) { background: #E0807B; }
.mockup-dots span:nth-child(2) { background: #E5C07B; }
.mockup-dots span:nth-child(3) { background: #9BBF8A; }
.mockup-url {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-2);
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-pill);
    padding: 6px 16px;
}
.mockup-actions { display: flex; gap: 10px; color: var(--text-dim); }
.mockup-actions svg { width: 15px; height: 15px; }

.mockup-body {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 340px;
}

/* editor side */
.editor {
    border-right: 1px solid var(--line-soft);
    background: var(--bg-tint);
    display: flex;
    flex-direction: column;
}
.editor-tabs {
    display: flex;
    gap: 2px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.editor-tab {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-2);
    padding: 11px 13px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.editor-tab.active {
    color: var(--ink);
    background: var(--bg-2);
    border-bottom-color: var(--accent);
}
.code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.85;
    padding: 18px 18px 22px;
    color: var(--ink-2);
    overflow: hidden;
    counter-reset: ln;
    flex: 1;
}
.code .ln {
    display: block;
    white-space: pre;
}
.code .ln::before {
    counter-increment: ln;
    content: counter(ln);
    display: inline-block;
    width: 2.2em;
    margin-right: 1.4em;
    text-align: right;
    color: var(--text-dim);
    user-select: none;
}
.t-com { color: var(--tok-comment); font-style: italic; }
.t-key { color: var(--tok-key); }
.t-str { color: var(--tok-str); }
.t-fn  { color: var(--tok-fn); }
.t-var { color: var(--tok-var); }
.t-pun { color: var(--tok-punc); }
.t-num { color: var(--tok-num); }

/* preview side */
.preview {
    background:
        radial-gradient(120% 90% at 80% 0%, rgba(224,161,162,0.30), transparent 60%),
        radial-gradient(110% 90% at 0% 100%, rgba(200,182,209,0.34), transparent 60%),
        var(--bg-2);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-card {
    width: 100%;
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    padding: 22px;
}
.preview-card .pv-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
}
.preview-card .pv-badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(27, 106, 105,0.18); }
.preview-card .pv-title { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.05; font-size: 1.18rem; margin: 12px 0 4px; letter-spacing: -0.03em; }
.preview-card p.pv-sub { font-size: 0.82rem; color: var(--text-2); margin-bottom: 16px; }
.pv-field { margin-bottom: 11px; }
.pv-field label { display:block; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.pv-field .pv-input { height: 34px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--bg-tint); display:flex; align-items:center; padding: 0 12px; font-size: 0.78rem; color: var(--text-2); }
.pv-field .pv-input.filled { color: var(--ink); border-color: var(--line-strong); }
.pv-submit { margin-top: 6px; height: 38px; border-radius: var(--r-xs); background: var(--ink); color: #fff; display:flex; align-items:center; justify-content:center; gap:8px; font-size: 0.82rem; font-weight: 500; }
.pv-submit svg { width: 14px; height: 14px; }

/* ================================================================
   TRUST / LOGO STRIP (dark band)
   ================================================================ */
.trust {
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--r-xl);
    margin: 0 var(--inset);
    padding: 40px 0 44px;
    position: relative;
    overflow: hidden;
}
.trust-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--inset); }
.trust-label {
    text-align: center;
    font-size: 0.82rem;
    color: var(--on-dark-dim);
    letter-spacing: 0.04em;
    margin-bottom: 26px;
}
.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 48px;
}
.trust-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    color: rgba(244,242,239,0.72);
    transition: color var(--t-fast), opacity var(--t-fast);
    opacity: 0.85;
}
.trust-logo:hover { color: #fff; opacity: 1; }

/* ================================================================
   SERVICES
   ================================================================ */
.services { padding: var(--section-pad) 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 30px;
    box-shadow: var(--sh-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 100% at 100% 0%, rgba(224,161,162,0.0), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-base);
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--line-strong);
}
.service-card:hover::after { opacity: 1; background: radial-gradient(120% 100% at 100% 0%, rgba(224,161,162,0.20), transparent 60%); }

/* Icon sits inline beside the heading rather than in a tile above it. */
.service-card {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 14px;
    align-content: start;
}
.service-icon {
    grid-column: 1;
    align-self: center;
    display: flex;
    color: var(--accent);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { grid-column: 2; align-self: center; font-size: 1.22rem; margin: 0; letter-spacing: -0.025em; }
.service-card > p,
.service-card > .service-link { grid-column: 1 / -1; }
.service-card > p { margin-top: 14px; font-size: 0.96rem; color: var(--text); line-height: 1.6; }

/* ================================================================
   STATS / "WHY" — gradient cards (Stellar 10x/95%/24-7)
   ================================================================ */
.why {
    padding: var(--section-pad-sm) 0 var(--section-pad);
    position: relative;
    overflow: hidden;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.why-card {
    position: relative;
    border-radius: var(--r-lg);
    padding: 26px 28px 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--sh-md);
    background:
        radial-gradient(130% 100% at 80% 0%, rgba(244,214,194,0.85), transparent 62%),
        radial-gradient(120% 100% at 0% 100%, rgba(200,182,209,0.7), transparent 60%),
        #fff;
}
.why-card:nth-child(2) {
    background:
        radial-gradient(130% 100% at 80% 0%, rgba(224,161,162,0.7), transparent 62%),
        radial-gradient(120% 100% at 0% 100%, rgba(247,231,216,0.9), transparent 60%),
        #fff;
}
.why-card:nth-child(3) {
    background:
        radial-gradient(130% 100% at 80% 0%, rgba(200,182,209,0.8), transparent 62%),
        radial-gradient(120% 100% at 0% 100%, rgba(128,116,156,0.35), transparent 60%),
        #fff;
}
.why-card .why-inner {
    background: rgba(255,255,255,0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--r-md);
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.why-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.why-tag::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.why-card:nth-child(2) .why-tag::before { background: var(--purple); }
.why-card:nth-child(3) .why-tag::before { background: var(--blush); }
.why-card p.why-desc {
    font-size: 0.96rem;
    color: var(--ink-2);
    margin-top: 14px;
    line-height: 1.55;
}
.why-stat {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
}
.why-stat .num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.05em;
    line-height: 0.9;
}
.why-stat .cap {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-2);
    text-align: right;
    max-width: 120px;
    line-height: 1.4;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about { padding: var(--section-pad) 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-content .section-title { text-align: left; margin: 16px 0 0; }
.about-text {
    font-size: 1.04rem;
    color: var(--text);
    margin-top: 18px;
    line-height: 1.7;
}
.about-features {
    margin: 28px 0 32px;
    display: grid;
    gap: 13px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--ink-2);
    font-weight: 500;
}
.feature svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    padding: 3px;
}

/* about visual — terminal card */
.about-image { display: flex; justify-content: center; }
.image-wrapper { width: 100%; }
.image-placeholder {
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(224,161,162,0.4), transparent 60%),
        radial-gradient(120% 90% at 0% 100%, rgba(200,182,209,0.45), transparent 60%),
        var(--bg-2);
    border: 1px solid var(--line);
    box-shadow: var(--sh-md);
    padding: 22px;
}
.terminal {
    background: var(--dark);
    border-radius: var(--r-md);
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.9;
    box-shadow: var(--sh-md);
    margin-bottom: 22px;
}
.terminal .prompt { color: #9BBF8A; }
.terminal .cmd { color: #fff; }
.terminal .row { display: flex; justify-content: space-between; color: rgba(244,242,239,0.7); }
.terminal .row .v { color: var(--accent-light); }
.terminal .ok { color: #9BBF8A; }
.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.tech-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-2);
    text-align: center;
}
.tech-item svg { width: 20px; height: 20px; color: var(--accent); }

/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio { padding: var(--section-pad-sm) 0 var(--section-pad); }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.portfolio-card {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    box-shadow: var(--sh-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--line-strong);
}
.portfolio-image {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--bg-3);
}
.portfolio-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-overlay {
    padding: 20px 22px 22px;
    position: relative;
}
.portfolio-icon {
    position: absolute;
    top: -22px;
    right: 18px;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--sh-md);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--t-base), transform var(--t-base);
}
.portfolio-card:hover .portfolio-icon { opacity: 1; transform: translateY(0); }
.portfolio-icon svg { width: 17px; height: 17px; }
.portfolio-info h3 { font-size: 1.16rem; letter-spacing: -0.025em; margin-bottom: 6px; }
.portfolio-info p { font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    background: var(--bg-3);
    color: var(--ink-2);
    border: 1px solid var(--line-soft);
}
.portfolio-card--static { cursor: default; }
.portfolio-card--static:hover { transform: none; }

/* ================================================================
   ADD-ONS (Stellar "Powerful Extensions")
   ================================================================ */
.addons { padding: var(--section-pad-sm) 0 var(--section-pad); }
.addons-header .addons-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
    transition: gap var(--t-fast);
}
.addons-header .addons-shop-link:hover { gap: 11px; }

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.addon-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 22px 20px;
    box-shadow: var(--sh-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.addon-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.addon-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.addon-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(128,116,156,0.12);
    border-radius: var(--r-pill);
    padding: 4px 10px;
}
.addon-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}
.addon-card h3 { font-size: 1.08rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.addon-card p { font-size: 0.88rem; color: var(--text); line-height: 1.55; flex: 1; }
.addon-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    transition: gap var(--t-fast), color var(--t-fast);
}
.addon-card:hover .addon-cta { gap: 10px; color: var(--accent); }

.addon-card--featured {
    background:
        radial-gradient(130% 110% at 100% 0%, rgba(224,161,162,0.4), transparent 58%),
        radial-gradient(120% 110% at 0% 100%, rgba(200,182,209,0.45), transparent 58%),
        var(--bg-2);
    border-color: rgba(27, 106, 105,0.3);
}

.addons-footer {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.addons-footer p { font-size: 0.92rem; color: var(--text-2); }

/* ================================================================
   CTA PANEL
   ================================================================ */
.cta { padding: 0 0 var(--section-pad); }
.cta .container { max-width: var(--container-wide); }
.cta-content {
    position: relative;
    border-radius: var(--r-xl);
    padding: 84px 40px 88px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(80% 120% at 15% 0%, rgba(224,161,162,0.9), transparent 55%),
        radial-gradient(80% 120% at 85% 100%, rgba(200,182,209,0.95), transparent 55%),
        radial-gradient(70% 90% at 50% 50%, rgba(247,231,216,0.7), transparent 70%),
        #F3E6DC;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--sh-md);
}
.eyebrow-on-glass { color: var(--accent); }
.cta-content h2 {
    font-size: clamp(2.1rem, 4.8vw, 3.4rem);
    margin: 16px 0 0;
    letter-spacing: -0.04em;
    max-width: 760px;
}
.cta-content p {
    font-size: 1.1rem;
    color: var(--ink-2);
    margin: 18px 0 32px;
    max-width: 520px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--dark);
    color: var(--on-dark);
    padding: 70px 0 36px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.footer-brand p { color: var(--on-dark-dim); font-size: 0.95rem; line-height: 1.6; max-width: 360px; }
.footer-brand a { color: var(--accent-light); }
.footer-brand a:hover { color: #fff; }
.footer-links h4, .footer-contact h4, .footer-heading { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-links ul { display: grid; gap: 11px; }
.footer-links a { color: var(--on-dark-dim); font-size: 0.95rem; transition: color var(--t-fast); }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: var(--on-dark-dim); font-size: 0.95rem; margin-bottom: 14px; }
.footer-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    background: #fff;
    color: var(--ink);
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.92rem;
    transition: transform var(--t-fast);
}
.footer-cta:hover { transform: translateY(-2px); }
.footer-bottom { padding-top: 26px; text-align: center; }
.footer-bottom p { color: var(--on-dark-dim); font-size: 0.86rem; }

/* ================================================================
   GDPR BANNER
   ================================================================ */
.gdpr-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 160%);
    width: min(680px, calc(100% - 36px));
    z-index: 1100;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 22px 24px;
    transition: transform var(--t-slow), opacity var(--t-slow);
    opacity: 0;
}
.gdpr-banner.show { transform: translate(-50%, 0); opacity: 1; }
.gdpr-content { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.gdpr-text { flex: 1; min-width: 240px; }
.gdpr-text h3 { font-size: 1.02rem; margin-bottom: 5px; }
.gdpr-text p { font-size: 0.85rem; color: var(--text); line-height: 1.55; }
.gdpr-link { color: var(--accent); text-decoration: underline; }
.gdpr-buttons { display: flex; gap: 10px; }
.btn-gdpr {
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    transition: all var(--t-fast);
}
.btn-gdpr-accept { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-gdpr-accept:hover { background: #000; }
.btn-gdpr-reject { background: transparent; color: var(--ink-2); }
.btn-gdpr-reject:hover { background: rgba(7,7,8,0.05); }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-hero {
    position: relative;
    padding: 176px 0 90px;
    overflow: hidden;
    text-align: center;
}
.contact-hero .container { position: relative; z-index: 2; }
.contact-hero-content { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact-hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    letter-spacing: -0.045em;
    margin: 22px 0 0;
}
.contact-hero-content p { font-size: 1.16rem; color: var(--text); margin-top: 18px; }

.testimonials-section { padding: 30px 0 70px; }
.testimonials-slider { max-width: 760px; margin: 0 auto; position: relative; }
.testimonial-track { position: relative; min-height: 230px; }
.testimonial-card {
    position: absolute;
    inset: 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 44px;
    box-shadow: var(--sh-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity var(--t-slow), transform var(--t-slow), visibility var(--t-slow);
}
.testimonial-card.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testimonial-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: linear-gradient(150deg, var(--sky), var(--lavender));
    color: var(--ink);
    margin-bottom: 20px;
}
.testimonial-icon svg { width: 22px; height: 22px; }
.testimonial-text { font-size: 1.12rem; color: var(--ink-2); line-height: 1.65; max-width: 560px; font-weight: 500; letter-spacing: -0.015em; }
.testimonial-author { margin-top: 22px; }
.testimonial-author strong { display: block; color: var(--ink); font-size: 1rem; }
.testimonial-author span { font-size: 0.86rem; color: var(--text-2); }
.testimonial-dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.testimonial-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    cursor: pointer;
    transition: all var(--t-fast);
}
.testimonial-dot.active { background: var(--accent); width: 26px; border-radius: var(--r-pill); }

.contact-section { padding: 30px 0 var(--section-pad); }
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; }
.contact-intro { font-size: 1.04rem; color: var(--text); margin: 18px 0 30px; line-height: 1.7; }
.contact-details { display: grid; gap: 20px; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 15px; align-items: flex-start; }
.detail-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--accent);
    box-shadow: var(--sh-xs);
}
.detail-icon svg { width: 20px; height: 20px; }
.contact-detail h3 { font-size: 1.25rem; margin-bottom: 2px; }
.contact-detail p { font-size: 0.92rem; color: var(--text); }
.contact-quote {
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}
.contact-quote p { font-style: italic; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.contact-quote span { display: block; margin-top: 10px; font-size: 0.86rem; color: var(--text-2); font-weight: 500; }

.contact-form-wrapper {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 40px;
    box-shadow: var(--sh-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}
.required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--bg-tint);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 13px 15px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
    box-shadow: 0 0 0 4px rgba(27, 106, 105,0.12);
}
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235E5962' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }

.cf-turnstile { margin: 4px 0 20px; }

.btn-submit {
    width: 100%;
    position: relative;
    padding: 16px 26px;
}
.btn-submit .btn-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    display: none;
}
.form-message.success { display: block; background: rgba(94,138,107,0.12); color: #3F6B4F; border: 1px solid rgba(94,138,107,0.3); }
.form-message.error { display: block; background: rgba(181,72,92,0.1); color: #9C3447; border: 1px solid rgba(181,72,92,0.28); }

/* ================================================================
   SCROLL-TO-TOP (styled inline in JS, here as fallback)
   ================================================================ */
.scroll-top-btn { font-family: var(--font-display) !important; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate-on-scroll.animated { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    :root { --section-pad: 90px; --section-pad-sm: 64px; }
    .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .addons-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 40px; }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        background: rgba(244,242,239,0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform var(--t-base);
        z-index: 1001;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu > li { width: 100%; max-width: 360px; }
    .nav-link { width: 100%; justify-content: center; font-size: 1.1rem; padding: 14px; }
    .nav-cta { margin-left: 0; margin-top: 6px; }
    .nav-toggle { display: flex; }
    .nav-menu > li.mobile-menu-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 18px;
    }
    .mobile-logo {
        width: 56px; height: 56px;
        display: grid; place-items: center;
        border-radius: var(--r-md);
        background: var(--ink);
        color: #fff;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: -0.04em;
    }
    .mobile-menu-profile h3 { font-size: 1.2rem; }
    .mobile-menu-profile p { font-size: 0.9rem; color: var(--text-2); }
    .mobile-badges { display: flex; gap: 8px; margin-top: 6px; }
    .mobile-badge { font-size: 0.75rem; padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }

    .about-grid { grid-template-columns: 1fr; }
    .about-content .section-title, .about-text { text-align: left; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr; gap: 36px; }
    .mockup-body { grid-template-columns: 1fr; }
    .editor { border-right: none; border-bottom: 1px solid var(--line-soft); }
    .preview { min-height: 260px; }
}

@media (max-width: 620px) {
    :root { --inset: 18px; --section-pad: 72px; --section-pad-sm: 52px; }
    body { font-size: 16px; }
    .hero { padding: 132px 0 56px; }
    .services-grid, .why-grid, .addons-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 2rem; }
    .contact-form-wrapper { padding: 26px 20px; }
    .cta-content { padding: 60px 24px 64px; }
    .trust { margin: 0 var(--inset); border-radius: var(--r-lg); }
    .gdpr-content { flex-direction: column; align-items: stretch; }
    .gdpr-buttons { flex-direction: column; }
    .btn-gdpr { width: 100%; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* ================================================================
   REFINEMENTS — a11y, contrast, logos, add-on icons, polish
   ================================================================ */

/* Contrast: darker accent label text (WCAG AA on light surfaces) */
.eyebrow, .eyebrow-on-glass { color: var(--accent); }
.addon-tag { color: #6A5E86; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-2); }

/* Visible keyboard focus rings */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.portfolio-card:focus-visible, .addon-card:focus-visible,
.testimonial-dot:focus-visible, .nav-toggle:focus-visible,
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}
/* light ring for dark-filled controls */
.btn-primary:focus-visible, .btn-light:focus-visible, .nav-cta:focus-visible,
.footer-cta:focus-visible, .trust-logo:focus-visible, .footer-links a:focus-visible {
    outline-color: #fff;
}

/* Hamburger is now a <button>: reset native chrome */
.nav-toggle { padding: 0; -webkit-appearance: none; appearance: none; }

/* Hero mockup: let single-column grid shrink on phones (no clipped code) */
.mockup-body > * { min-width: 0; }
.mockup-fav { height: 13px; width: auto; display: inline-block; vertical-align: -2px; margin-right: 7px; }

/* Logos */
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.mobile-logo-img { width: 210px; max-width: 66%; height: auto; }

/* Add-on icon tiles — restores the Stellar icon-led extension rhythm */
.addon-card__top { align-items: center; }
.addon-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    color: var(--ink);
    background: linear-gradient(150deg, var(--sky), var(--lavender));
    flex-shrink: 0;
}
.addon-icon svg { width: 21px; height: 21px; }
.addon-tint-a .addon-icon { background: linear-gradient(150deg, var(--sky), var(--lavender)); }
.addon-tint-b .addon-icon { background: linear-gradient(150deg, var(--lavender), var(--sky)); }
.addon-tint-c .addon-icon { background: linear-gradient(150deg, var(--lavender), #B7A6CE); }
.addon-tint-d .addon-icon { background: linear-gradient(150deg, var(--cream), var(--lavender)); }
.addon-tint-e .addon-icon { background: linear-gradient(150deg, #CFE3DF, var(--lavender)); }
.addon-card--featured .addon-icon { background: var(--ink); color: #fff; }
.addon-card .addon-tag { align-self: flex-start; margin-bottom: 12px; }

/* Testimonial dots are <button>s: reset + enlarge the tap target to ~24px */
.testimonial-dot { border: none; padding: 0; -webkit-appearance: none; appearance: none; position: relative; }
.testimonial-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }

@media (max-width: 620px) {
    .logo-img { height: 32px; }
    .footer-logo { height: 38px; }
}

/* Mobile nav overlay: scroll + top-align so links never clip on short/landscape screens */
@media (max-width: 860px) {
    .nav-menu { justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- Security service card (links through to security.html) ---- */
.service-card--feature {
    position: relative;
    border-color: rgba(27, 106, 105, 0.32);
    background: linear-gradient(180deg, #EAF1FD, var(--bg-2) 62%);
}
.service-card--feature:hover { border-color: var(--accent); }
.service-card--feature { padding-top: 58px; }
.service-card--feature .service-tag {
    position: absolute;
    top: 22px;
    left: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
}
.service-card--feature .service-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
}
.service-card--feature:hover .service-link { text-decoration: underline; text-underline-offset: 3px; }

/* Two feature cards (AI + Security) share the top row on desktop, so the
   six regular cards below still fill complete rows of three. */
@media (min-width: 1025px) {
    .services-grid--features { grid-template-columns: repeat(6, 1fr); }
    .services-grid--features > .service-card { grid-column: span 2; }
    .services-grid--features > .service-card--feature { grid-column: span 3; }
}

/* ================================================================
   iOS APPS
   ================================================================ */
.apps { padding: var(--section-pad-sm) 0; }
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.app-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 22px 20px;
    box-shadow: var(--sh-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.app-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-icon {
    margin-bottom: 20px;
    width: 104px; height: 104px;
    border-radius: 22.5%;
    border: 1px solid var(--line-soft);
    box-shadow: 0 10px 24px -14px rgba(7,7,8,0.45);
    flex-shrink: 0;
}
@media (max-width: 620px) {
    .app-icon { width: 88px; height: 88px; margin-bottom: 18px; }
}
.app-card .addon-tag { align-self: flex-start; margin-bottom: 12px; white-space: nowrap; }
.app-card h3 { font-size: 1.08rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.app-card p { font-size: 0.88rem; color: var(--text); line-height: 1.55; flex: 1; }
.app-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    transition: gap var(--t-fast), color var(--t-fast);
}
.app-card:hover .app-cta { gap: 10px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .app-card, .app-card:hover { transform: none; } }

/* ================================================================
   HERO SHOWCASE — real live sites in a browser frame
   ================================================================ */
.showcase .mockup-url {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.mockup-lock { width: 12px; height: 12px; color: var(--text-2); flex-shrink: 0; }
.showcase-host { transition: opacity 0.25s var(--ease); }
.showcase-host.is-swapping { opacity: 0; }
.showcase-visit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 5px 4px;
    white-space: nowrap;
}
.showcase-visit svg { width: 13px; height: 13px; }
.showcase-visit:hover { color: var(--accent); }

.showcase-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-3);
    overflow: hidden;
}
.showcase-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s var(--ease), visibility 0s;
}
.showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.showcase-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
    background: var(--bg-tint);
}
.showcase-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 18px 16px;
    background: none;
    border: 0;
    border-left: 1px solid var(--line-soft);
    text-align: left;
    color: var(--text-2);
    transition: background var(--t-fast), color var(--t-fast);
}
.showcase-tab:first-child { border-left: 0; }
.showcase-tab:hover { background: var(--bg-2); }
.showcase-tab.is-active { background: var(--bg-2); color: var(--ink); }
.showcase-tab-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.015em; }
.showcase-tab-kind { font-size: 0.78rem; color: var(--text-2); }
.showcase-tab-progress {
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}
.showcase-tab.is-active .showcase-tab-progress { transform: scaleX(1); }
.showcase.is-playing .showcase-tab.is-active .showcase-tab-progress {
    animation: showcase-progress var(--showcase-ms, 5500ms) linear forwards;
}
@keyframes showcase-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 760px) {
    .showcase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-tab:nth-child(3) { border-left: 0; }
    .showcase-tab:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .showcase-tab { padding: 12px 14px 13px; }
    .showcase-tab-kind { display: none; }
    .showcase-visit { font-size: 0; gap: 0; }
    .showcase-visit svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .showcase-slide, .showcase-slide.is-active, .showcase-host { transition: none; }
    .showcase.is-playing .showcase-tab.is-active .showcase-tab-progress { animation: none; }
}

/* ================================================================
   FOOTER v2 — brand · services · company · newsletter
   ================================================================ */
.footer-content--v2 { grid-template-columns: 1.35fr 0.8fr 0.8fr 1.45fr; gap: 44px; }
.footer-content--v2 .footer-brand .footer-cta { margin-top: 22px; }
.footer-newsletter > p { color: var(--on-dark-dim); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }
.footer-bottom a { color: var(--on-dark-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1024px) {
    .footer-content--v2 { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 560px) {
    .footer-content--v2 { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .footer-content--v2 .footer-brand,
    .footer-content--v2 .footer-newsletter { grid-column: 1 / -1; }
}
