/* =========================================================
   JettSEO — Stylesheet
   Light, editorial layout inspired by gigradar.io.
   Brand: #2563eb → #9333ea purple gradient over warm cream/off-white.
   ========================================================= */

:root {
    /* Brand */
    --c-blue:        #2563eb;
    --c-cyan:        #9333ea;  /* alias kept for legacy refs */
    --c-grad:        linear-gradient(to right, #2563eb 0%, #2563eb 40%, #9333ea 100%);
    --c-btn-grad:    linear-gradient(45deg, #2563eb 0%, #9333ea 100%);
    --c-grad-from:   #2563eb;
    --c-grad-to:     #9333ea;
    --c-grad-from-rgb: 37, 99, 235;
    --c-grad-to-rgb:   147, 51, 234;

    /* Surfaces */
    --c-bg:          #FFFFFF;
    --c-bg-soft:     #FAFAFA;   /* neutral very-light gray (was warm cream) */
    --c-bg-card:     #FFFFFF;
    --c-bg-dark:     #0A0E27;   /* deep navy */

    /* Text */
    --c-text:        #0A0E27;
    --c-text-soft:   #4A4F66;
    --c-text-muted:  #8A8F9F;
    --c-text-light:  #E8EAF0;

    /* Borders / shadows */
    --c-border:      #E5E5DD;
    --c-border-soft: #EFEEE8;
    --shadow-sm:     0 1px 2px rgba(10,14,39,.04), 0 2px 6px rgba(10,14,39,.04);
    --shadow-md:     0 6px 18px rgba(10,14,39,.07), 0 2px 6px rgba(10,14,39,.04);
    --shadow-lg:     0 24px 48px rgba(10,14,39,.10), 0 4px 12px rgba(10,14,39,.06);
    --shadow-blue:   0 12px 28px rgba(147,51,234,.18);
    /* Unified card shadow signature — matches the .fg-rebuild-pillar cards
       ("Senior SEO talent / AI-powered systems / Proprietary technology / 50,000-site network").
       All other cards on the site reference these tokens so the hover feels identical. */
    --shadow-card:       0 10px 30px rgba(147,51,234,.08), 0 1px 0 hsl(0 0% 100% / 0.9) inset;
    --shadow-card-hover: 0 18px 45px rgba(147,51,234,.18), 0 1px 0 hsl(0 0% 100% / 0.9) inset;
    --card-border-hover: rgba(147,51,234,.30);

    /* Type scale */
    --f-sans:        'Inter', system-ui, -apple-system, sans-serif;
    --f-display:     'Inter', system-ui, -apple-system, sans-serif;

    /* Font-size scale — single set of allowed sizes site-wide.
       H1=64, H2=48, H3=20, body=16, small=12. Buttons=16.
       Use clamp() for fluid headings so they scale on mobile. */
    --fs-h1:         clamp(36px, 5.5vw, 64px);
    --fs-h2:         clamp(28px, 4vw, 48px);
    --fs-h3:         20px;
    --fs-h4:         18px;
    --fs-body:       16px;
    --fs-small:      14px;
    --fs-eyebrow:    12px;
    --fs-btn:        16px;

    /* Layout */
    --container:     1200px;
    --container-narrow: 920px;
    --radius:        12px;
    --radius-lg:     16px;
    --radius-pill:   999px;
    --radius-btn:    8px;
    --radius-card:   16px;

    /* Motion — shared easing & durations across the whole site.
       Infinite ambient @keyframes (pulse, float, scroll, wobble, drift)
       keep their own durations; this is for hover/state transitions. */
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --motion-fast:   200ms;
    --motion-base:   300ms;
    --motion-slow:   600ms;

    /* Spacing */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue); text-decoration: none; transition: color var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease); }
a:hover { color: #003ED1; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }

.skip-link {
    position: absolute; top: -100px; left: 16px; z-index: 100;
    background: var(--c-blue); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ==== Typography ==== */
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--c-text); text-wrap: balance; }
p, .lead { text-wrap: pretty; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-h4); color: var(--c-text-soft); line-height: 1.55; }
.eyebrow {
    display: inline-block; font-family: var(--f-sans); font-weight: 600; font-size: var(--fs-eyebrow);
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-grad-to);
    padding: 8px 16px; background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.text-grad { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==== Buttons ==== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font-family: var(--f-sans); font-weight: 600; font-size: var(--fs-btn);
    padding: 14px 22px; border-radius: var(--radius-btn);
    transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease), background var(--motion-base) var(--ease), color var(--motion-base) var(--ease);
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(0); transition-duration: 80ms; }
.btn-sm  { padding: 10px 16px; font-size: var(--fs-eyebrow); }
.btn-lg  { padding: 18px 32px; font-size: var(--fs-body); }
/* All CTA buttons share one look: blue gradient fill, no frame. */
.btn-primary,
.btn-ghost,
.btn-light,
.btn-grad { background: var(--c-btn-grad); color: #fff; border: none; box-shadow: var(--shadow-blue); }
.btn-primary:hover,
.btn-ghost:hover,
.btn-light:hover,
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(147, 51, 234,.28); color: #fff; }

/* ==== Header ==== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--c-border); background: rgba(255,255,255,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); color: var(--c-text); letter-spacing: -0.02em; }
.brand:hover { color: var(--c-text); opacity: .85; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 36px; width: auto; }
.site-footer .brand-logo { height: 32px; }
.brand-jett { font-style: italic; }
.brand-seo  { font-weight: 500; opacity: .82; }
.brand-light { color: #fff; }
.brand-light .brand-jett, .brand-light .brand-seo { color: #fff; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--c-text); font-weight: 500; font-size: var(--fs-btn); border-radius: 10px; }
.nav-list > li > a:hover { background: var(--c-bg-soft); color: var(--c-text); }
.nav-list > li > a.active { color: var(--c-blue); background: rgba(147,51,234,.08); }
.nav-list svg { transition: transform var(--motion-fast) var(--ease); }
.nav-list .has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: -8px;
    min-width: 280px; padding: 8px; background: #fff;
    border: 1px solid var(--c-border); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease), visibility var(--motion-fast) var(--ease);
    z-index: 60;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--c-text); font-weight: 500; font-size: var(--fs-eyebrow);
}
.dropdown-menu li a:hover, .dropdown-menu li a.active { background: var(--c-bg-soft); color: var(--c-blue); }

.lang-switch .lang-link {
    padding: 8px 12px; font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: 0.04em;
    border: 1px solid var(--c-border); border-radius: var(--radius-pill); color: var(--c-text);
}
.lang-switch .lang-link:hover { border-color: var(--c-blue); color: var(--c-blue); }

.nav-toggle {
    display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    border-radius: 10px; background: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==== Section base ==== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-soft {
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(147,51,234,.05), transparent 60%),
        #fff;
}
.section-dark { background: var(--c-bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead, .section-dark p { color: rgba(255,255,255,.78); }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .section-title { margin-bottom: 16px; }
.section-head .section-sub { color: var(--c-text-soft); font-size: var(--fs-body); }
.section-foot { margin-top: 48px; text-align: center; }

/* ==== Hero (homepage) ==== */
.hero {
    position: relative;
    padding: 96px 0 80px;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(37,99,235,.18), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(147,51,234,.10), transparent 60%),
        var(--c-bg-soft);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-proof { display: inline-flex; gap: 12px; align-items: center; padding: 10px 18px 10px 14px; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-pill); font-size: var(--fs-eyebrow); color: var(--c-text-soft); box-shadow: var(--shadow-sm); }
.hero-proof .dot { width: 8px; height: 8px; border-radius: 50%; background: #19C37D; box-shadow: 0 0 0 4px rgba(25,195,125,.2); }

.hero-visual { position: relative; }
.hero-card {
    position: relative;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    overflow: hidden;
}
.hero-card::before {
    content: ''; position: absolute; inset: -1px -1px auto -1px; height: 6px; background: var(--c-grad); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-card h4 { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-text-muted); margin-bottom: 14px; font-weight: 600; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; border: 1px solid var(--c-border-soft); border-radius: 12px; background: var(--c-bg-soft); }
.kpi .num { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--c-text); }
.kpi .lbl { font-size: var(--fs-eyebrow); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.kpi .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--fs-eyebrow); color: #19C37D; font-weight: 600; }

.spark { width: 100%; height: 80px; }
.spark path.line { fill: none; stroke: var(--c-blue); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: url(#spark-grad); opacity: .18; }
.spark text { fill: var(--c-text-muted); font: 500 10px var(--f-sans); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tags span { font-size: var(--fs-eyebrow); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--c-bg-soft); color: var(--c-text-soft); border: 1px solid var(--c-border-soft); }

/* ==== Logo strip / trust bar ==== */
.trust-bar { padding: 48px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #fff; }
.trust-bar .container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.trust-bar p { font-size: var(--fs-eyebrow); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.trust-logos { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; opacity: .7; }
.trust-logos span { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); color: var(--c-text-soft); }

/* ==== Services grid ==== */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    position: relative; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow-card);
    transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease);
    display: flex; flex-direction: column; height: 100%;
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--c-grad);
    transform: scaleX(0); transform-origin: left; transition: transform var(--motion-base) var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--card-border-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-wrap {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: rgba(147,51,234,.08); color: var(--c-blue);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--c-text-soft); font-size: var(--fs-btn); flex: 1; }
.service-card .card-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; color: var(--c-blue); font-weight: 600; font-size: var(--fs-eyebrow); }
.service-card .card-link svg { transition: transform var(--motion-fast) var(--ease); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ==== About (split) ==== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split-stack > * + * { margin-top: 16px; }
.benefits-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.benefits-list li { display: flex; gap: 12px; align-items: flex-start; }
.benefits-list .check {
    flex: none; width: 28px; height: 28px; border-radius: 8px;
    background: rgba(147,51,234,.08); color: var(--c-blue);
    display: inline-flex; align-items: center; justify-content: center;
}
.mission-card {
    padding: 28px;
    border-radius: var(--radius-card);
    border: 1px solid var(--c-border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.mission-card h3 { margin-bottom: 12px; }

/* ==== Stats (dark) ==== */
.stats {
    padding: 80px 0;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 30% 50%, rgba(147,51,234,.07), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(37,99,235,.05), transparent 60%),
        #fff;
    color: var(--c-text);
    position: relative;
    overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; text-align: center; }
.stat .num { font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 700; line-height: 1; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: -0.025em; }
.stat .lbl { color: var(--c-text-soft); margin-top: 12px; font-size: var(--fs-btn); font-weight: 500; }

/* ==== Process steps ==== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
    position: relative;
}
/* Subtle connecting line behind the row on desktop, evoking sequential flow */
.process-grid::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--c-border) 12%, var(--c-border) 88%, transparent 100%);
    z-index: 0;
}
@media (max-width: 1024px) { .process-grid::before { display: none; } }

.process-step {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease);
}
.process-step:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.process-step .step-num {
    display: inline-block;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.025em;
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 20px;
}
.process-step h3 {
    font-size: var(--fs-h4);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.process-step p {
    color: var(--c-text-soft);
    font-size: var(--fs-eyebrow);
    line-height: 1.6;
    margin: 0;
}

/* ==== Testimonials ==== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
    padding: 32px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.testimonial blockquote { font-size: var(--fs-body); line-height: 1.6; color: var(--c-text); margin-bottom: 18px; font-style: normal; }
.testimonial blockquote::before { content: '"'; font-family: var(--f-display); font-size: var(--fs-h2); line-height: 0; color: var(--c-blue); margin-right: 4px; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--c-text); display: block; }
.testimonial .role { color: var(--c-text-muted); font-size: var(--fs-eyebrow); }

/* ==== Contact form ==== */
.contact-section {
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 60% 40% at 0% 50%, rgba(147,51,234,.06), transparent 60%),
        #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info ul { padding: 0; list-style: none; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(147,51,234,.08); color: var(--c-blue); display: inline-flex; align-items: center; justify-content: center; }
.contact-info b { display: block; font-weight: 600; }
.contact-info span { color: var(--c-text-soft); font-size: var(--fs-btn); }
.contact-info a { color: var(--c-text); font-weight: 500; }

.contact-form {
    background: #fff; padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--c-border); box-shadow: var(--shadow-md);
}
.contact-form-inverse { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); box-shadow: none; }
.contact-form-inverse .form-label { color: rgba(255,255,255,.85); }
.contact-form-inverse input, .contact-form-inverse textarea, .contact-form-inverse select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.contact-form-inverse input::placeholder, .contact-form-inverse textarea::placeholder { color: rgba(255,255,255,.55); }
.contact-form-inverse select option { color: var(--c-text); background: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row:last-of-type { grid-template-columns: 1fr; }
.form-field { display: block; margin-bottom: 16px; }
.form-label { display: block; font-size: var(--fs-eyebrow); font-weight: 500; color: var(--c-text-soft); margin-bottom: 6px; }
.form-label em { color: #E63946; font-style: normal; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 13px 16px; font: inherit; color: var(--c-text);
    background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: 12px;
    transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.contact-form select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.contact-form-inverse select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4l4 4 4-4'/></svg>");
}
.contact-form select:invalid { color: var(--c-text-soft); }
.contact-form-inverse select:invalid { color: rgba(255,255,255,.55); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--c-blue); background-color: #fff; box-shadow: 0 0 0 3px rgba(147,51,234,.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: var(--fs-eyebrow); color: var(--c-text-soft); }
.form-status.success { color: #167C50; }
.form-status.error   { color: #C53030; }

/* ==== CTA banner — gradient brand surface for the final CTA on inner pages ==== */
.cta-banner {
    background: var(--c-grad); color: #fff;
    border-radius: var(--radius-card); padding: 64px;
    position: relative; overflow: hidden;
    box-shadow: 0 20px 50px rgba(147,51,234,.22);
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background:
    radial-gradient(900px 500px at 100% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255,255,255,.10), transparent 60%);
    pointer-events: none; }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 24px; max-width: 640px; }
.cta-banner .form-row, .cta-banner .form-field { color: #fff; }

/* ==== Service detail page hero — aligned with Figma section style ==== */
.service-hero {
    padding: 96px 0 64px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(147,51,234,.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(37,99,235,.06), transparent 60%),
        #fff;
}
.service-hero .breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: var(--fs-eyebrow); color: var(--c-text-muted); margin-bottom: 16px; }
.service-hero .breadcrumbs a { color: var(--c-text-soft); }
.service-hero .breadcrumbs a:hover { color: var(--c-blue); }
.service-hero h1 { margin-bottom: 18px; }
.service-hero .lead { max-width: 720px; margin-bottom: 26px; }

.svc-content { padding: 80px 0; }
.svc-prose h2 { margin-top: 56px; margin-bottom: 16px; }
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose h3 { margin-top: 28px; margin-bottom: 10px; }
.svc-prose p { margin-bottom: 14px; color: var(--c-text); line-height: 1.7; max-width: 760px; }
.svc-prose ul { padding-left: 0; margin: 16px 0; max-width: 760px; }
.svc-prose ul li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px dashed var(--c-border); }
.svc-prose ul li:last-child { border-bottom: 0; }
.svc-prose ul li::before {
    content: ''; position: absolute; left: 4px; top: 18px; width: 14px; height: 14px;
    background: var(--c-grad); border-radius: 4px;
    clip-path: polygon(15% 50%, 0% 65%, 40% 100%, 100% 25%, 85% 10%, 40% 70%);
}

.svc-process { display: grid; gap: 16px; }
.svc-process .step {
    display: grid; grid-template-columns: 56px 1fr; gap: 20px;
    padding: 22px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff;
}
.svc-process .step .n { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--c-blue); }

.svc-deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .svc-deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-deliverables { grid-template-columns: 1fr; } }
.svc-deliverables .item {
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.svc-deliverables .item:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.svc-deliverables .item h4 { margin-bottom: 6px; font-size: var(--fs-h4); }
.svc-deliverables .item p { color: var(--c-text-soft); font-size: var(--fs-eyebrow); line-height: 1.55; margin: 0; }

/* ============================================================
   SERVICE PAGE — custom blocks (compare / value-cards / funnel / comp-gap / positioning)
   Used on the Keyword Opportunity Analysis page; opt-in via block_order.
   ============================================================ */

/* Compare — two-column "wrong vs right" */
.svc-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 768px) { .svc-compare-grid { grid-template-columns: 1fr; } }
.svc-compare-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.svc-compare-bad  { border-top: 3px solid rgba(0,0,0,.08); }
.svc-compare-good { border-top: 3px solid; border-image: var(--c-grad) 1; }
.svc-compare-t {
    display: flex; align-items: center; gap: 10px;
    font-size: var(--fs-h3); margin-bottom: 18px;
}
.svc-compare-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.06); color: var(--c-text-muted);
    font-size: 16px; font-weight: 700;
}
.svc-compare-icon-good { background: var(--c-grad); color: #fff; }
.svc-compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-compare-card li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: var(--fs-btn);
    line-height: 1.5;
    color: var(--c-text-soft);
    border-bottom: 1px solid var(--c-border);
}
.svc-compare-card li:last-child { border-bottom: 0; }
.svc-compare-bad li::before {
    content: '×';
    position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
    color: var(--c-text-muted); font-size: 18px;
}
.svc-compare-good li::before {
    content: ''; position: absolute; left: 4px; top: 16px;
    width: 14px; height: 14px;
    background: var(--c-grad); border-radius: 4px;
    clip-path: polygon(15% 50%, 0% 65%, 40% 100%, 100% 25%, 85% 10%, 40% 70%);
}

/* Value cards — numbered premium cards (handles 4 or 6 gracefully) */
.svc-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 6 cards → 3 columns on desktop (2 rows of 3) */
.svc-value-grid:has(> :nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .svc-value-grid,
                              .svc-value-grid:has(> :nth-child(5)) { grid-template-columns: repeat(2, 1fr); max-width: 720px; } }
@media (max-width: 600px)  { .svc-value-grid,
                              .svc-value-grid:has(> :nth-child(5)) { grid-template-columns: 1fr; } }
.svc-value-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.svc-value-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--c-grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--motion-base) var(--ease);
}
.svc-value-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.svc-value-card:hover::before { transform: scaleX(1); }
.svc-value-n {
    display: inline-block;
    font-family: var(--f-display); font-weight: 700;
    font-size: var(--fs-h4); line-height: 1;
    letter-spacing: -0.02em;
    background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 16px;
}
.svc-value-t { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: var(--c-text); }
.svc-value-d { font-size: var(--fs-eyebrow); line-height: 1.6; color: var(--c-text-soft); margin: 0; }

/* Search intent funnel — stacked tiers */
.svc-funnel-stack {
    display: flex; flex-direction: column; gap: 16px;
    max-width: 920px; margin: 0 auto;
}
.svc-funnel-tier {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 28px;
    align-items: center;
}
@media (max-width: 768px) { .svc-funnel-tier { grid-template-columns: 1fr; gap: 16px; padding: 24px; } }
/* Bottom of funnel — strongest brand emphasis */
.svc-funnel-tier-1 { border-color: rgba(147,51,234,.35); box-shadow: 0 12px 30px rgba(147,51,234,.10); }
.svc-funnel-tier-2 { border-color: rgba(147,51,234,.20); }
.svc-funnel-tier-3 { border-color: var(--c-border); }
.svc-funnel-tier-1 { width: 100%; }
.svc-funnel-tier-2 { width: 92%; align-self: center; margin: 0 auto; }
.svc-funnel-tier-3 { width: 84%; align-self: center; margin: 0 auto; }
@media (max-width: 768px) {
    .svc-funnel-tier-1, .svc-funnel-tier-2, .svc-funnel-tier-3 { width: 100%; }
}
.svc-funnel-tier-label {
    display: inline-block;
    font-size: var(--fs-eyebrow); font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 8px;
}
.svc-funnel-tier-t { font-size: var(--fs-h3); margin: 0 0 6px; color: var(--c-text); }
.svc-funnel-tier-note { font-size: var(--fs-eyebrow); color: var(--c-text-soft); margin: 0; }
.svc-funnel-examples {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.svc-funnel-examples li {
    font-size: var(--fs-eyebrow);
    color: var(--c-text);
    padding: 6px 12px;
    background: rgba(147,51,234,.06);
    border: 1px solid rgba(147,51,234,.15);
    border-radius: var(--radius-pill);
}

/* Competitor gap — table */
.svc-compgap-table {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.svc-compgap-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 16px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--fs-btn);
}
.svc-compgap-row:last-child { border-bottom: 0; }
.svc-compgap-head {
    background: var(--c-bg-soft);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}
.svc-compgap-col { font-weight: 600; color: var(--c-text); }
.svc-compgap-you {
    background: rgba(147,51,234,.04);
    border-top: 1px solid rgba(147,51,234,.20);
}
.svc-compgap-you .svc-compgap-col,
.svc-compgap-you .svc-compgap-opp {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}
@media (max-width: 720px) {
    .svc-compgap-head { display: none; }
    .svc-compgap-row { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px 18px; }
    .svc-compgap-col { grid-column: 1 / -1; font-size: var(--fs-h4); margin-bottom: 4px; }
    .svc-compgap-opp { grid-column: 1 / -1; }
}

/* Positioning — pillars list + footer line */
.svc-positioning-list {
    list-style: none; padding: 0;
    max-width: 760px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
@media (max-width: 600px) { .svc-positioning-list { grid-template-columns: 1fr; } }
.svc-positioning-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: var(--fs-btn);
    color: var(--c-text);
}
.svc-positioning-check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-grad);
    color: #fff;
    border-radius: 8px;
}
.svc-positioning-footer {
    max-width: 720px; margin: 32px auto 0;
    text-align: center;
    font-size: var(--fs-h4);
    line-height: 1.5;
    color: var(--c-text);
    font-weight: 500;
}

/* Trust / Communication — bullets + footer line (same visual rhythm as positioning) */
.svc-trust-list {
    list-style: none; padding: 0;
    max-width: 760px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
@media (max-width: 600px) { .svc-trust-list { grid-template-columns: 1fr; } }
.svc-trust-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: var(--fs-btn);
    color: var(--c-text);
}
.svc-trust-check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-grad);
    color: #fff;
    border-radius: 8px;
}
.svc-trust-footer {
    max-width: 720px; margin: 32px auto 0;
    text-align: center;
    font-size: var(--fs-h4);
    line-height: 1.5;
    color: var(--c-text-soft);
    font-weight: 500;
}

.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease); }
.faq details[open] { border-color: rgba(147,51,234,.3); box-shadow: var(--shadow-sm); }
.faq summary { padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--c-blue); font-weight: 400; transition: transform var(--motion-fast) var(--ease); }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 24px 22px; color: var(--c-text-soft); line-height: 1.7; }

/* Related services on service page */
.section-related {
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(147,51,234,.06), transparent 60%),
        #fff;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    padding: 24px; background: #fff; border: 1px solid var(--c-border); border-radius: 16px;
    color: var(--c-text); display: block;
    transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--card-border-hover); color: var(--c-text); }
.related-card .related-icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: rgba(147,51,234,.08); color: var(--c-blue); align-items: center; justify-content: center; margin-bottom: 14px; }
.related-card h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.related-card p { color: var(--c-text-soft); font-size: var(--fs-eyebrow); line-height: 1.55; }
.related-card .related-link { color: var(--c-blue); font-weight: 600; font-size: var(--fs-eyebrow); margin-top: 12px; display: inline-block; }

/* Service page CTA — alternate layouts get small cards in different orders, all done via .svc-* utilities */

/* ==== Blog ==== */
.blog-page-hero {
    padding: 80px 0 32px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(147,51,234,.08), transparent 60%),
        #fff;
}
.blog-page-hero h1 { margin-bottom: 12px; }
.blog-page-hero .lead { max-width: 640px; }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; padding: 64px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-card); overflow: hidden;
    display: flex; flex-direction: column; transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--card-border-hover); }
.blog-card .blog-thumb { aspect-ratio: 16/9; background: var(--c-bg-soft); overflow: hidden; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-base) var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-card .blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-meta { display: flex; gap: 12px; align-items: center; font-size: var(--fs-eyebrow); color: var(--c-text-muted); margin-bottom: 12px; }
.blog-card .blog-meta .cat { color: var(--c-blue); font-weight: 600; }
.blog-card h2 { font-size: var(--fs-h3); margin-bottom: 10px; line-height: 1.3; }
.blog-card h2 a { color: var(--c-text); }
.blog-card h2 a:hover { color: var(--c-blue); }
.blog-card p { color: var(--c-text-soft); font-size: var(--fs-btn); flex: 1; }
.blog-card .card-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-eyebrow); }
.blog-card .read-link { color: var(--c-blue); font-weight: 600; }

.blog-sidebar > * + * { margin-top: 32px; }
.sidebar-block { padding: 24px; background: var(--c-bg-soft); border-radius: 16px; border: 1px solid var(--c-border); }
.sidebar-block h3 { font-size: var(--fs-body); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--c-text-muted); }
.sidebar-block ul { display: grid; gap: 10px; }
.sidebar-block ul li a { color: var(--c-text); font-weight: 500; font-size: var(--fs-btn); line-height: 1.4; display: block; }
.sidebar-block ul li a:hover { color: var(--c-blue); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: var(--fs-eyebrow); padding: 6px 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--c-border); color: var(--c-text-soft); }
.tags a:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
    padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 500;
}
.pagination .current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.pagination a:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* Blog article page (scoped) */
.blog-article-page .article-hero { background: var(--c-bg-soft); padding: 64px 0 32px; }
.blog-article-page .article-hero .breadcrumbs { font-size: var(--fs-eyebrow); color: var(--c-text-muted); margin-bottom: 16px; }
.blog-article-page .article-hero .breadcrumbs a { color: var(--c-text-soft); }
.blog-article-page .article-hero h1 { max-width: 880px; margin-bottom: 16px; }
.blog-article-page .article-hero .meta { display: flex; gap: 18px; color: var(--c-text-muted); font-size: var(--fs-eyebrow); flex-wrap: wrap; }
.blog-article-page .article-cover { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.blog-article-page .article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-md); }
.blog-article-page .article-body { padding: 56px 0 80px; }
.blog-article-page .article-body .container { max-width: 760px; }
.blog-article-page .article-body h2 { margin: 36px 0 14px; }
.blog-article-page .article-body h3 { margin: 28px 0 10px; }
.blog-article-page .article-body p { margin-bottom: 16px; line-height: 1.75; color: var(--c-text); }
.blog-article-page .article-body ul, .blog-article-page .article-body ol { margin: 16px 0 16px 22px; }
.blog-article-page .article-body li { margin-bottom: 8px; line-height: 1.7; }
.blog-article-page .article-body a { color: var(--c-blue); text-decoration: underline; }
.blog-article-page .article-body blockquote { padding: 18px 24px; border-left: 3px solid var(--c-blue); background: var(--c-bg-soft); margin: 24px 0; border-radius: 0 12px 12px 0; color: var(--c-text); }
.blog-article-page .article-body img { border-radius: 12px; margin: 24px 0; }
.blog-article-page .related-posts { padding: 64px 0; background: var(--c-bg-soft); }
.blog-article-page .article-cta {
    margin: 48px 0 0; padding: 32px; background: var(--c-bg-dark); color: #fff; border-radius: var(--radius-lg);
}
.blog-article-page .article-cta h3 { color: #fff; margin-bottom: 8px; }
.blog-article-page .article-cta p { color: rgba(255,255,255,.78); margin-bottom: 18px; }

/* ==== Footer ==== */
.site-footer { background: #fff; color: var(--c-text-soft); padding: 80px 0 32px; border-top: 1px solid var(--c-border); }

/* Footer trust strip — five recognitions, all rendered at identical
   size, shape, border, and hover behaviour.

   Design rules applied:
   • One shape (180×180 square)
   • One border, one radius, one shadow
   • One vertical stack (mark → label) per badge
   • One hover state (lift + brand-border accent + soft shadow)
   • Equal optical weight regardless of content type (iframe / logo / text) */
.footer-trust {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--c-border);
}
@media (max-width: 1024px) { .footer-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 660px; } }
@media (max-width: 640px)  { .footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; } }
@media (max-width: 400px)  { .footer-trust { grid-template-columns: 1fr; max-width: 220px; } }

.footer-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 180px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    color: var(--c-text);
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    transition: transform var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.footer-trust-badge:hover {
    color: var(--c-text);
    transform: translateY(-2px);
    border-color: rgba(147,51,234,.25);
    box-shadow: var(--shadow-sm);
}

/* The "mark" slot — fills the upper area of every badge */
.footer-trust-mark {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* The "label" slot — small caption under every badge */
.footer-trust-label {
    font-size: var(--fs-eyebrow);
    line-height: 1.35;
    color: var(--c-text-soft);
    font-weight: 500;
}

/* Clutch — iframe is the entire content, fills the badge */
.footer-trust-clutch { padding: 0; gap: 0; }
.footer-trust-clutch iframe {
    border: 0;
    width: 100%;
    height: 100%;
    color-scheme: light;
    display: block;
    /* Soft skeleton placeholder while the lazy Clutch iframe resolves. */
    background:
        radial-gradient(circle at 50% 42%, #f3f3f6 0 38%, transparent 39%),
        #f7f7fa;
    border-radius: 14px;
}

/* Trustburn — real logo, vertical stack same as HSLU/Manifest */
.footer-trust-tb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}
.site-footer .brand-text { color: var(--c-text); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-col h4 { color: var(--c-text); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--c-text-soft); font-size: var(--fs-btn); }
.footer-col a:hover { color: var(--c-grad-to); }
.footer-desc { color: var(--c-text-soft); font-size: var(--fs-btn); margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-eyebrow); color: var(--c-text-muted); }
.footer-langs { display: flex; gap: 8px; }
.footer-langs a { color: var(--c-text-muted); }
.footer-langs a[aria-current="true"] { color: var(--c-text); pointer-events: none; font-weight: 600; }

/* ==== Generic page hero (about/contact/404) ==== */
.page-hero {
    padding: 96px 0 56px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(147,51,234,.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(37,99,235,.06), transparent 60%),
        #fff;
    text-align: center;
}
.page-hero .container > * { margin-left: auto; margin-right: auto; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; max-width: 880px; }
.page-hero .lead { max-width: 700px; }

/* ==== About page ==== */
.about-story { padding: 80px 0; }
.about-story .container { max-width: 880px; }
.about-story p { margin-bottom: 16px; line-height: 1.75; font-size: var(--fs-body); color: var(--c-text); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 80px 0;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(147,51,234,.05), transparent 60%),
        #fff;
}
.value-card {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.value-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--c-text-soft); font-size: var(--fs-btn); }

/* ==== Reveal on scroll ==== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==== Responsive ==== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 540px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero (Figma section) responsive — tablet */
    .fg-hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .fg-hero-copy { align-items: center; text-align: center; max-width: 640px; margin: 0 auto; }
    .fg-hero-copy .fg-pill { align-self: center; }
    .fg-hero-sub { margin-left: auto; margin-right: auto; }
    .fg-hero-ctas { justify-content: center; }
    .fg-social-proof { justify-content: center; }
    .fg-hero-visual { max-width: 560px; margin: 0 auto; }
    .fg-diagram-shell { max-width: 560px; }
}
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { position: relative; }
    .nav-list {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 24px; gap: 4px; overflow-y: auto;
        transform: translateX(100%); transition: transform var(--motion-base) var(--ease); z-index: 60;
    }
    .nav-list.open { transform: translateX(0); }
    .nav-list > li > a { padding: 14px 12px; font-size: var(--fs-body); border-radius: 10px; }
    .has-dropdown { display: block; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 0 16px; max-height: 0; overflow: hidden;
        transition: max-height var(--motion-base) var(--ease);
    }
    .has-dropdown.open .dropdown-menu { max-height: 600px; padding: 4px 0 12px 16px; }
    .nav-cta { margin-top: 8px; }
    .nav-cta .btn { width: 100%; }
    .lang-switch { padding: 12px 0; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 64px 0 48px; }
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 36px 24px; }
    .svc-deliverables { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
    h1 { font-size: var(--fs-h2); }
    h2 { font-size: 24px; }
    .container { padding: 0 18px; }
    .btn-lg { padding: 14px 24px; }
    .hero-actions .btn { width: 100%; }
}

/* ============================================================
   FIGMA SECTIONS — Hero, Logo Carousel, Pain Points
   Ported from Figma Make project (React+Tailwind → vanilla CSS)
   ============================================================ */

.fg-hero,
.fg-carousel,
.fg-painpoints { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #0f172a; }
.fg-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero ---- */
.fg-hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, rgba(248,250,252,.5) 0%, #fff 100%); }
/* Tighter top padding so the AI-Powered pill sits closer to the nav (per Figma + user request) */
.fg-hero .fg-hero-inner { padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .fg-hero .fg-hero-inner { padding-top: 40px; padding-bottom: 112px; } }

.fg-hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .fg-hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.fg-hero-copy { display: flex; flex-direction: column; gap: 32px; }
.fg-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px;
    background: linear-gradient(to right, #eff6ff, #faf5ff); border: 1px solid rgba(219,234,254,.5);
    box-shadow: 0 1px 2px rgba(0,0,0,.05); align-self: flex-start; }
.fg-pill-dot { width: 8px; height: 8px; background: #2563eb; border-radius: 50%; animation: fg-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.fg-pill span { font-size: var(--fs-eyebrow); font-weight: 600; color: #1d4ed8; }
@keyframes fg-pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

.fg-hero-title { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; color: #0f172a; margin: 0; }
.fg-hero-title-grad { background: linear-gradient(to right, #2563eb 0%, #2563eb 40%, #9333ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.fg-hero-sub { font-size: var(--fs-h4); line-height: 1.625; color: #475569; max-width: 36rem; margin: 0; }
@media (min-width: 1024px) { .fg-hero-sub { font-size: var(--fs-h3); } }

.fg-hero-ctas { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
@media (min-width: 640px) { .fg-hero-ctas { flex-direction: row; } }
.fg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-btn); font-weight: 600; font-size: var(--fs-body); text-decoration: none; transition: all var(--motion-fast) var(--ease); cursor: pointer; }
.fg-btn-primary {
    background: var(--c-grad); color: #fff;
    box-shadow: 0 10px 15px -3px rgba(147, 51, 234,.25), 0 4px 6px -4px rgba(147, 51, 234,.25);
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease),
                background var(--motion-base) var(--ease),
                color var(--motion-base) var(--ease);
}
.fg-btn-primary:hover {
    background: var(--c-grad); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(147, 51, 234,.3), 0 8px 10px -6px rgba(147, 51, 234,.3);
}
.fg-btn-primary:active { transform: translateY(0); transition-duration: 80ms; }
.fg-btn-primary svg { transition: transform var(--motion-fast) var(--ease); }
.fg-btn-primary:hover svg { transform: translateX(4px); }
.fg-btn-secondary { background: #fff; color: #0f172a; border: 2px solid var(--c-grad-to); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fg-btn-secondary:hover { background: #fff; box-shadow: var(--shadow-sm); color: #0f172a; transform: translateY(-2px); }

.fg-social-proof { display: flex; align-items: center; gap: 24px; padding-top: 16px; }
.fg-avatars { display: flex; }
.fg-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); overflow: hidden; margin-left: -12px; display: block; }
.fg-avatar:first-child { margin-left: 0; }
.fg-avatar svg, .fg-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fg-av-blue { background: var(--c-grad); }
.fg-av-purple { background: var(--c-grad); }
.fg-av-green { background: var(--c-grad); }
.fg-av-orange { background: var(--c-grad); }
.fg-social-text { font-size: var(--fs-eyebrow); }
.fg-social-count { font-weight: 700; color: #0f172a; }
.fg-social-label { color: #475569; }

/* ---- Hero visual / Diagram ---- */
.fg-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.fg-orb { position: absolute; width: 384px; height: 384px; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.fg-orb-tr { top: -80px; right: -80px; background: linear-gradient(to bottom right, rgba(37,99,235,.2), rgba(147,51,234,.2)); }
.fg-orb-bl { bottom: -80px; left: -80px; background: linear-gradient(to bottom right, rgba(147,51,234,.2), rgba(37,99,235,.2)); }

/* Gmail/Google Workspace-style framing: rounded gradient halo + clean inner card */
.fg-diagram-shell { position: relative; width: 100%; max-width: 42rem; background: #fff; border-radius: 32px; padding: 14px;
    box-shadow: 0 40px 80px -20px rgba(15,23,42,.18), 0 18px 36px -18px rgba(37,99,235,.22), 0 0 0 1px rgba(226,232,240,.7);
    border: none; }
.fg-diagram-shell::before {
    content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 64px;
    background: radial-gradient(60% 80% at 20% 20%, rgba(37,99,235,.18), transparent 60%),
                radial-gradient(60% 80% at 80% 80%, rgba(147,51,234,.18), transparent 60%),
                radial-gradient(40% 60% at 50% 50%, rgba(147,51,234,.10), transparent 60%);
    filter: blur(24px); pointer-events: none;
}
.fg-diagram-shell::after {
    content: ""; position: absolute; inset: -1px; border-radius: 32px; pointer-events: none;
    background: linear-gradient(140deg, rgba(37,99,235,.35), rgba(147,51,234,.25) 40%, rgba(147,51,234,.20) 80%);
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
@media (min-width: 1024px) { .fg-diagram-shell { padding: 18px; border-radius: 36px; } .fg-diagram-shell::after { border-radius: 36px; } }
.fg-diagram { border-radius: 22px; }
@media (min-width: 1024px) { .fg-diagram { border-radius: 26px; } }

.fg-diagram { position: relative; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(to bottom right, #f8fafc 0%, #fff 50%, rgba(239,246,255,.3) 100%); border-radius: 16px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .fg-diagram { padding: 32px; } }
.fg-diag-glow { position: absolute; width: 384px; height: 384px; border-radius: 50%; filter: blur(64px); }
.fg-diag-glow-tl { top: 80px; left: 80px; background: rgba(37,99,235,.1); }
.fg-diag-glow-br { bottom: 80px; right: 80px; background: rgba(196,181,253,.1); }

.fg-diag-row { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; align-items: center; }
@media (min-width: 1024px) { .fg-diag-row { gap: 24px; } }
.fg-diag-col { position: relative; }

.fg-diag-label { font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.fg-diag-label-r { text-align: right; }

.fg-diag-card { position: relative; background: rgba(255,255,255,.8); backdrop-filter: blur(20px); border: 1px solid rgba(226,232,240,.5); border-radius: 16px; padding: 24px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }

.fg-google-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fg-google-logo { width: 48px; height: 48px; flex-shrink: 0; }
@media (min-width: 1024px) { .fg-google-logo { width: 56px; height: 56px; } }
.fg-google-name { font-weight: 700; color: #0f172a; font-size: var(--fs-body); }
.fg-google-sub { font-size: 11px; color: #64748b; }
.fg-google-rows { display: flex; flex-direction: column; gap: 8px; }
.fg-google-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; }
.fg-gr-blue { background: linear-gradient(to right, #eff6ff, transparent); border: 1px solid rgba(219,234,254,.5); }
.fg-gr-purple { background: linear-gradient(to right, #faf5ff, transparent); border: 1px solid rgba(243,232,255,.5); }
.fg-gr-blue span:last-child { color: #1d4ed8; font-weight: 500; font-size: 9px; }
.fg-gr-purple span:last-child { color: #6b21a8; font-weight: 500; font-size: 9px; }
.fg-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.fg-dot-blue { background: #3b82f6; }
.fg-dot-purple { background: #a855f7; }

/* connection lines */
.fg-conn { position: absolute; top: 50%; height: 4px; width: 64px; transform: translateY(-50%); }
.fg-conn-l { right: -32px; }
.fg-conn-r { left: -32px; }

/* Central hub */
.fg-diag-col-c { display: flex; flex-direction: column; align-items: center; }
.fg-hub-wrap { position: relative; }
.fg-hub-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.fg-hub-ring-out { margin: -32px; background: linear-gradient(to right, rgba(37,99,235,.2), rgba(147,51,234,.2)); animation: fg-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.fg-hub-ring-in { margin: -24px; background: linear-gradient(to right, rgba(37,99,235,.1), rgba(147,51,234,.1)); }
.fg-hub-card { position: relative; background: rgba(255,255,255,.9); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); border-radius: 24px; padding: 32px; min-width: 240px; }
.fg-hub-tint { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(37,99,235,.05), rgba(147,51,234,.05)); border-radius: 24px; }
.fg-hub-inner { position: relative; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fg-hub-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--c-grad); border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); color: #fff; }
.fg-hub-name { font-weight: 700; color: #0f172a; font-size: var(--fs-body); }
.fg-hub-sub { font-size: 10px; color: #64748b; margin-top: -8px; }
.fg-mini-browser { background: linear-gradient(to bottom right, #f8fafc, rgba(241,245,249,.5)); border: 1px solid rgba(226,232,240,.5); border-radius: 12px; padding: 12px; width: 100%; }
.fg-mini-dots { display: flex; gap: 4px; margin-bottom: 8px; }
.fg-mb-d { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.fg-mb-r { background: #f87171; } .fg-mb-y { background: #facc15; } .fg-mb-g { background: #4ade80; }
.fg-mb-bar { height: 8px; border-radius: 9999px; margin-bottom: 6px; }
.fg-mb-bar-1 { background: #bfdbfe; width: 100%; }
.fg-mb-bar-2 { background: #dbeafe; width: 75%; }
.fg-mb-bar-3 { background: #dbeafe; width: 83%; margin-bottom: 0; }
.fg-hub-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 9999px; }
.fg-hub-tag span { font-size: 9px; font-weight: 600; color: #1d4ed8; }
.fg-hub-badge { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--c-grad); border-radius: 9999px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.fg-hub-badge span { font-size: var(--fs-eyebrow); font-weight: 700; color: #fff; }

/* Right: AI list */
.fg-ai-list { display: flex; flex-direction: column; gap: 8px; }
.fg-ai-card { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; backdrop-filter: blur(4px); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow var(--motion-fast) var(--ease); }
.fg-ai-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.fg-ai-card span:last-child { font-size: 11px; font-weight: 600; color: #0f172a; }
.fg-ai-emerald  { background: linear-gradient(to right, rgba(16,185,129,.1), rgba(5,150,105,.05)); border: 1px solid rgba(167,243,208,.5); }
.fg-ai-orange   { background: linear-gradient(to right, rgba(249,115,22,.1), rgba(234,88,12,.05)); border: 1px solid rgba(254,215,170,.5); }
.fg-ai-blue     { background: linear-gradient(to right, rgba(37,99,235,.1), rgba(37,99,235,.05)); border: 1px solid rgba(191,219,254,.5); }
.fg-ai-purple   { background: linear-gradient(to right, rgba(147,51,234,.1), rgba(147,51,234,.05)); border: 1px solid rgba(233,213,255,.5); }
.fg-ai-cyan     { background: linear-gradient(to right, rgba(6,182,212,.1), rgba(8,145,178,.05)); border: 1px solid rgba(165,243,252,.5); }
.fg-ai-logo { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; }
.fg-ai-logo svg { display: block; }
.fg-ai-l-chatgpt { background: #10a37f; }
.fg-ai-l-claude  { background: #d97757; }
.fg-ai-l-pp      { background: #1f6f7a; }
.fg-ai-l-co      { background: #6c4ed1; }
.fg-ai-l-gem     { background: linear-gradient(135deg, #4285F4, #9b6dff); }
.fg-ai-badge { margin-top: 12px; background: linear-gradient(to right, #faf5ff, #fdf2f8); border: 1px solid rgba(243,232,255,.5); border-radius: 12px; padding: 12px; }
.fg-ai-badge-t { font-size: 9px; font-weight: 600; color: #581c87; }
.fg-ai-badge-s { font-size: 8px; color: #9333ea; }

/* Analytics */
.fg-analytics { margin-top: 16px; background: rgba(255,255,255,.7); backdrop-filter: blur(20px); border: 1px solid rgba(226,232,240,.5); border-radius: 12px; padding: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
@media (min-width: 1024px) { .fg-analytics { margin-top: 24px; border-radius: 16px; padding: 16px; } }
.fg-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
@media (min-width: 1024px) { .fg-metrics { gap: 12px; margin-bottom: 12px; } }
.fg-metric { position: relative; overflow: hidden; border-radius: 12px; padding: 12px; background: #fff; border: 1px solid rgba(226,232,240,.5); }
.fg-metric-tint { position: absolute; inset: 0; opacity: .05; }
.fg-mt-blue { background: var(--c-grad); }
.fg-mt-purple { background: var(--c-grad); }
.fg-mt-slate { background: linear-gradient(to bottom right, #64748b, #475569); }
.fg-mt-slate2 { background: linear-gradient(to bottom right, #94a3b8, #64748b); }
.fg-metric-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 2px; position: relative; }
.fg-metric-val { font-size: var(--fs-h4); font-weight: 700; color: #0f172a; }
.fg-metric-trend { font-size: 8px; font-weight: 600; color: #16a34a; }
.fg-metric-lbl { font-size: 9px; color: #64748b; position: relative; }
.fg-chart { position: relative; height: 64px; background: linear-gradient(to bottom right, #f8fafc, #fff); border-radius: 12px; padding: 8px; border: 1px solid #f1f5f9; }
.fg-chart svg { width: 100%; height: 100%; }
.fg-chart-tag { position: absolute; top: 8px; right: 8px; font-size: 8px; font-weight: 600; color: #2563eb; }

/* Floating cards */
.fg-float { position: absolute; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border: 1px solid rgba(226,232,240,.5); border-radius: 8px; padding: 6px 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: flex; align-items: center; gap: 6px; animation: fg-float 3s ease-in-out infinite; }
.fg-float span { font-size: 9px; font-weight: 600; color: #334155; }
.fg-float-1 { top: 15%; left: 8%; animation-delay: 0s; }
.fg-float-2 { top: 35%; right: 6%; animation-delay: .5s; }
.fg-float-3 { bottom: 35%; left: 10%; animation-delay: 1s; }
.fg-float-4 { bottom: 20%; right: 8%; animation-delay: 1.5s; }
@keyframes fg-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---- Logo carousel ---- */
.fg-carousel { padding: 48px 0; background: rgba(248,250,252,.5); border-top: 1px solid rgba(226,232,240,.4); border-bottom: 1px solid rgba(226,232,240,.4); }
.fg-carousel-head { text-align: center; font-size: var(--fs-eyebrow); font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 40px; }
@media (min-width: 1024px) { .fg-carousel-head { font-size: var(--fs-body); } }
.fg-carousel-viewport {
    position: relative;
    overflow: hidden;
    /* Containment + GPU layer so the moving track doesn't paint the page on every frame */
    contain: content;
}
.fg-carousel-fade { position: absolute; top: 0; bottom: 0; width: 128px; z-index: 10; pointer-events: none; }
.fg-carousel-fade-l { left: 0; background: linear-gradient(to right, rgba(248,250,252,.9), transparent); }
.fg-carousel-fade-r { right: 0; background: linear-gradient(to left, rgba(248,250,252,.9), transparent); }
.fg-carousel-track {
    display: flex;
    gap: 80px;
    padding: 0 32px;
    width: max-content;
    animation: fg-scroll 40s linear infinite;
    will-change: transform;
    /* Force its own compositor layer so iOS Safari keeps animating during page scroll */
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* Only pause on real hover-capable pointers (desktop mice / trackpads).
   On touch devices a tap leaves the `:hover` state stuck which froze the
   animation — this guard makes the loop run continuously on phones. */
@media (hover: hover) and (pointer: fine) {
    .fg-carousel-track:hover { animation-play-state: paused; }
}
@keyframes fg-scroll { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
.fg-carousel-logo { flex: 0 0 224px; height: 96px; display: flex; align-items: center; justify-content: center; filter: grayscale(1); opacity: .5; transition: filter var(--motion-base) var(--ease), opacity var(--motion-base) var(--ease); padding: 0 16px; }
.fg-carousel-logo:hover { filter: grayscale(0); opacity: 1; }
/* width/height auto + object-fit:contain → always scale uniformly, never distort.
   No mix-blend-mode: it dropped logos out mid-animation on the composited track
   (Safari/Chrome blend+layer bug), and these PNGs are already transparent. */
.fg-carousel-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.fg-carousel-logo span { font-family: 'Inter', system-ui, sans-serif; font-size: var(--fs-h4); font-weight: 700; color: #475569; text-align: center; letter-spacing: -0.01em; }
.fg-carousel-logo.has-caption { flex-direction: column; gap: 4px; }
.fg-carousel-logo.has-caption img { max-height: 60px; }
.fg-carousel-caption { font-family: 'Inter', system-ui, sans-serif; font-size: var(--fs-eyebrow); font-weight: 600; color: #475569; letter-spacing: -0.01em; }
@media (max-width: 768px) {
    .fg-carousel { padding: 32px 0; }
    .fg-carousel-head { margin: 0 0 24px; font-size: var(--fs-eyebrow); letter-spacing: .15em; }
    .fg-carousel-fade { width: 48px; }
    .fg-carousel-track { gap: 32px; padding: 0 16px; animation-duration: 28s; }
    .fg-carousel-logo { flex: 0 0 120px; height: 56px; padding: 0 8px; opacity: .65; }
    .fg-carousel-logo span { font-size: var(--fs-eyebrow); }
}
@media (prefers-reduced-motion: reduce) {
    .fg-carousel-track { animation: none; }
}

/* ---- Pain Points ---- */
.fg-painpoints {
    padding: 96px 0;
    background:
        linear-gradient(to bottom, #fff, #fff);
}
.fg-pp-head { text-align: center; margin: 0 0 80px; }
.fg-pp-head h2 { font-size: var(--fs-h2); font-weight: 700; color: #0f172a; margin: 0; line-height: 1.25; letter-spacing: -0.025em; }
.fg-pp-title-soft { color: inherit; }
.fg-pp-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .fg-pp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fg-pp-grid { grid-template-columns: repeat(3, 1fr); } }
/* Painpoint card — framed card with micro-interactions on hover:
   subtle lift, brand-purple border accent, shadow upgrade, icon scales,
   bottom underline bar reveals. */
.fg-pp-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 28px 28px 32px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.fg-pp-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.fg-pp-card .fg-pp-icon {
    transition: transform var(--motion-base) var(--ease),
                background var(--motion-base) var(--ease);
}
.fg-pp-card:hover .fg-pp-icon {
    transform: scale(1.06);
    background: rgba(var(--c-grad-to-rgb), 0.16);
}
.fg-pp-card:hover .fg-pp-underline { opacity: 1; transform: scaleX(1); }
.fg-pp-card-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.fg-pp-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fg-pp-num { font-size: var(--fs-eyebrow); font-weight: 700; color: var(--c-grad-to); }
.fg-pp-title { font-size: var(--fs-h3); font-weight: 700; color: #0f172a; line-height: 1.25; margin: 0 0 12px; }
.fg-pp-desc { color: #475569; line-height: 1.625; margin: 0; }
.fg-pp-underline {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--c-grad-to);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity var(--motion-base) var(--ease),
                transform var(--motion-base) var(--ease);
}
/* Pain-point tones */
/* Painpoint cards — brand-purple icon tint + solid-purple number. No gradient fills. */
.fg-pp-card .fg-pp-icon {
    background: rgba(var(--c-grad-to-rgb), 0.08);
    color: var(--c-grad-to);
}

/* ---- Mobile diagram simplifications ---- */
@media (max-width: 767px) {
    .fg-diag-row { grid-template-columns: 1fr; gap: 12px; }
    .fg-diag-label-r { text-align: left; }
    .fg-conn { display: none; }
    .fg-hub-card { min-width: 0; padding: 20px; }
    .fg-orb { width: 220px; height: 220px; }

    /* Full-screen hero gradient on mobile (not just behind the diagram) */
    .fg-hero {
        background:
            radial-gradient(circle at 0% 0%, rgba(37,99,235,.22), transparent 55%),
            radial-gradient(circle at 100% 18%, rgba(147,51,234,.22), transparent 55%),
            radial-gradient(circle at 50% 100%, rgba(147,51,234,.18), transparent 60%),
            linear-gradient(to bottom, #eef4ff 0%, #faf5ff 50%, #fff 100%);
    }
    /* Orbs become redundant once the section itself has the wash */
    .fg-hero-visual .fg-orb { display: none; }
}

/* ============================================================
   SLOW INFRASTRUCTURE — minimalist problem statement
   Eyebrow → headline → sub → central "Traditional SEO" core →
   5 issue cards. White background, brand-purple accents, one
   card style, one hover. Matches the rest of the site.
   ============================================================ */
.fg-slowinfra {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #fff;
    padding: 96px 0;
}
@media (max-width: 768px) { .fg-slowinfra { padding: 64px 0; } }

.fg-si-head {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}
.fg-si-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.fg-si-headline {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--c-text);
    margin: 0 0 16px;
}
.fg-si-subhead {
    font-size: var(--fs-h4);
    line-height: 1.6;
    color: var(--c-text-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Floating scatter — gigradar.io style. 5 cards positioned absolutely,
   each slightly rotated, soft layered shadows. Hover straightens & lifts. */
.fg-slowinfra {
    background:
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(147, 51, 234,.05), transparent 70%),
        #fff;
    overflow: hidden;
    padding: 64px 0 80px;
}
.fg-si-grid {
    position: relative;
    display: block;
    max-width: 960px;
    margin: 0 auto;
    min-height: 360px;
    padding: 16px 0;
}

.fg-si-card {
    position: absolute;
    width: 270px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    box-shadow:
        0 12px 26px rgba(10,14,39,.09),
        0 3px 10px rgba(10,14,39,.05);
    transition: transform 400ms var(--ease),
                box-shadow 400ms var(--ease),
                border-color 400ms var(--ease);
    z-index: 1;
}
.fg-si-card:nth-child(1) { top: 0;    left: 2%;             transform: rotate(-3deg);   z-index: 5; }
.fg-si-card:nth-child(2) { top: 24px;  right: 4%; left: auto; transform: rotate(2.5deg);  z-index: 4; }
.fg-si-card:nth-child(3) { top: 130px; left: 22%;            transform: rotate(-1.5deg); z-index: 3; }
.fg-si-card:nth-child(4) { top: 160px; right: 10%; left: auto; transform: rotate(3deg);  z-index: 2; }
.fg-si-card:nth-child(5) { top: 250px; left: 36%;            transform: rotate(-2deg);  z-index: 1; }

.fg-si-card:hover {
    transform: rotate(0) translateY(-5px) scale(1.03);
    z-index: 10;
    border-color: var(--card-border-hover);
    box-shadow:
        0 22px 48px rgba(147, 51, 234,.18),
        0 8px 18px rgba(10,14,39,.08);
}

.fg-si-card-n {
    display: inline-block;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 8px;
}
.fg-si-card-t {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--c-text);
    margin: 0 0 4px;
}
.fg-si-card-d {
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text-soft);
    margin: 0;
}

/* Tablet — denser scatter, taller container */
@media (max-width: 1024px) {
    .fg-si-grid { max-width: 700px; min-height: 480px; }
    .fg-si-card { width: 260px; }
    .fg-si-card:nth-child(1) { top: 0;    left: 0%; }
    .fg-si-card:nth-child(2) { top: 40px; right: 0%; }
    .fg-si-card:nth-child(3) { top: 170px; left: 8%; }
    .fg-si-card:nth-child(4) { top: 220px; right: 2%; }
    .fg-si-card:nth-child(5) { top: 360px; left: 18%; }
}

/* Mobile — collapse scatter to vertical stack, keep subtle rotation */
@media (max-width: 700px) {
    .fg-si-grid { min-height: 0; padding: 16px; }
    .fg-si-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin: 0 auto 20px;
        max-width: 360px;
    }
    .fg-si-card:nth-child(1) { transform: rotate(-1.5deg); }
    .fg-si-card:nth-child(2) { transform: rotate(1.5deg); }
    .fg-si-card:nth-child(3) { transform: rotate(-1deg); }
    .fg-si-card:nth-child(4) { transform: rotate(2deg); }
    .fg-si-card:nth-child(5) { transform: rotate(-1.5deg); }
}

/* ---- Nav CTA: identical colour + hover animation to the hero "Book Discovery"
   button (.fg-rebuild-cta). Scoped to the header with enough specificity to beat
   the generic `.nav-list > li > a` rules, which otherwise force dark text and a
   grey no-lift hover. Size stays compact so it fits the header bar. ---- */
.site-header .nav-cta .fg-rebuild-cta {
    background: var(--c-btn-grad);
    color: #fff;
    border-radius: var(--radius-btn);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.35);
    height: auto;
    padding: 10px 22px;
    font-weight: 600;
}
.site-header .nav-cta .fg-rebuild-cta:hover,
.site-header .nav-cta .fg-rebuild-cta:focus {
    background: var(--c-btn-grad);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.45);
}
.site-header .nav-cta .fg-rebuild-cta:active {
    transform: translateY(0);
    transition-duration: 80ms;
}
.site-header .nav-cta .fg-rebuild-cta:hover .fg-rebuild-arrow { transform: translateX(4px); }

/* ============================================================
   FIGMA REBUILT INFRASTRUCTURE — purple ribbon hero
   The wrapper owns the background so the ribbon section and the
   pillars section sit on one continuous gradient with no seam.
   ============================================================ */
.fg-rebuild-wrap {
    --rb-bg:           hsl(255 100% 99%);
    --rb-fg:           hsl(240 35% 12%);
    --rb-fg-soft:      hsl(240 20% 28%);
    --rb-muted:        hsl(240 10% 50%);
    --rb-primary:      hsl(270 85% 65%);
    --rb-primary-soft: hsl(275 95% 94%);
    --rb-primary-light:hsl(280 90% 78%);
    --rb-accent:       hsl(250 85% 70%);
    --rb-border:       hsl(270 30% 92%);
    --rb-card:         #fff;

    position: relative;
    overflow: hidden;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(147, 51, 234, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 15%, rgba(147, 51, 234, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 65%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
        var(--rb-bg);
    color: var(--rb-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fg-rebuild {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: transparent;
}

.fg-rebuild-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.fg-rebuild-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fg-rebuild-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease) 200ms,
                transform 600ms var(--ease) 200ms;
}

.fg-rebuild-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--rb-fg);
    margin: 0 0 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease) 320ms,
                transform 700ms var(--ease) 320ms;
}

.fg-rebuild-grad {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fg-rebuild-sub {
    font-size: var(--fs-h4);
    line-height: 1.65;
    color: var(--rb-fg-soft);
    max-width: 620px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease) 460ms,
                transform 600ms var(--ease) 460ms;
}

.fg-rebuild-cta-wrap {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease) 600ms,
                transform 600ms var(--ease) 600ms;
}

.fg-rebuild-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    border-radius: var(--radius-btn);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-btn);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--c-btn-grad);
    color: #fff;
    box-shadow: 0 10px 30px rgba(147, 51, 234,0.35);
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}

.fg-rebuild-cta:hover,
.fg-rebuild-cta:focus,
.fg-rebuild-cta:visited {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(147, 51, 234,0.45);
}
.fg-rebuild-cta:active { color: #fff; transform: translateY(0); transition-duration: 80ms; }

.fg-rebuild-cta:hover .fg-rebuild-arrow { transform: translateX(4px); }

.fg-rebuild-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--motion-base) var(--ease);
    flex-shrink: 0;
}

.fg-rebuild-pillar {
    position: relative;
    text-align: left;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease);
}

.fg-rebuild-pillar:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}

/* First pillar — bento hero card spanning 2×2 with gradient fill */
.fg-rebuild-pillar:nth-of-type(1) {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #9333ea 0%, #9333ea 100%);
    color: #fff;
    border: none;
    padding: 40px;
}
.fg-rebuild-pillar:nth-of-type(1):hover {
    box-shadow: 0 24px 56px rgba(147, 51, 234,.30);
}

.fg-rebuild-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(var(--c-grad-from-rgb), 0.10) 0%,
        rgba(var(--c-grad-to-rgb), 0.10) 100%);
    color: var(--c-blue);
    margin-bottom: 14px;
    flex: none;
}
.fg-rebuild-pillar:nth-of-type(1) .fg-rebuild-pillar-icon {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.fg-rebuild-pillar-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fg-rebuild-pillar-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.fg-rebuild-pillar:nth-of-type(1) .fg-rebuild-pillar-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.fg-rebuild-pillar-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text-soft);
    line-height: 1.55;
    margin-top: 4px;
}
.fg-rebuild-pillar:nth-of-type(1) .fg-rebuild-pillar-desc {
    color: rgba(255,255,255,.85);
    font-size: 16px;
}

/* Mounted state — triggered by JS once the canvas is ready */
.fg-rebuild.is-mounted .fg-rebuild-eyebrow,
.fg-rebuild.is-mounted .fg-rebuild-headline,
.fg-rebuild.is-mounted .fg-rebuild-sub,
.fg-rebuild.is-mounted .fg-rebuild-cta-wrap {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fg-rebuild-eyebrow,
    .fg-rebuild-headline,
    .fg-rebuild-sub,
    .fg-rebuild-cta-wrap {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Pillars section — sits directly below the animated ribbon section.
   Background is owned by .fg-rebuild-wrap so this section stays transparent
   and the gradient flows continuously across both. */
.fg-rebuild-pillars-section {
    background: transparent;
    padding: 32px 24px 96px;
    display: flex;
    justify-content: center;
    margin-top: -32px;
    position: relative;
    z-index: 1;
}

.fg-rebuild-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
    max-width: 1080px;
}

@media (max-width: 900px) {
    .fg-rebuild-pillars {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .fg-rebuild-pillar:nth-of-type(1) {
        grid-column: span 1;
        grid-row: span 1;
        padding: 32px;
    }
    .fg-rebuild-pillar:nth-of-type(1) .fg-rebuild-pillar-title { font-size: 22px; }
}

@media (max-width: 768px) {
    .fg-rebuild { padding: 64px 0; }
    .fg-rebuild-content { padding: 0 20px; }
    .fg-rebuild-pillars-section { padding: 24px 20px 64px; margin-top: -24px; }
    .fg-rebuild-pillar { padding: 24px; }
}

/* ============================================================
   FIGMA MOMENTUM — "What changes after 90 days"
   Two-column layout: numbered cards on the left, Apple-style
   week calendar (fully booked) on the right.
   ============================================================ */
.fg-momentum {
    /* Tighter bottom padding so "Book Discovery" CTA isn't visually orphaned
       from the next section's "What our clients say". */
    --mom-bg:           hsl(255 100% 99%);
    --mom-fg:           hsl(240 35% 12%);
    --mom-fg-soft:      hsl(240 20% 28%);
    --mom-muted:        hsl(240 10% 50%);
    --mom-primary:      hsl(270 85% 65%);
    --mom-accent:       hsl(250 85% 70%);
    --mom-border:       hsl(270 30% 92%);
    --mom-card:         #fff;

    position: relative;
    overflow: hidden;
    padding: 112px 0 56px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(147, 51, 234,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(37, 99, 235,0.08) 0%, transparent 60%),
        var(--mom-bg);
    color: var(--mom-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fg-mom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Heading */
.fg-mom-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px;
}

.fg-mom-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.fg-mom-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--mom-fg);
    margin: 0 0 20px;
}

.fg-mom-grad {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fg-mom-sub {
    font-size: var(--fs-h4);
    line-height: 1.65;
    color: var(--mom-fg-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Two-column body */
.fg-mom-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Cards column */
.fg-mom-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fg-mom-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--mom-card);
    border: 1px solid var(--mom-border);
    border-radius: var(--radius-card);
    box-shadow:
        0 10px 30px rgba(147, 51, 234,0.06),
        0 1px 0 hsl(0 0% 100% / 0.9) inset;
    transition: transform 300ms var(--ease),
                border-color 300ms var(--ease),
                box-shadow 300ms var(--ease);
}

.fg-mom-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.fg-mom-num {
    flex-shrink: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
    min-width: 42px;
}

.fg-mom-card-body { flex: 1; }

.fg-mom-card-t {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--mom-fg);
    margin: 0 0 8px;
}

.fg-mom-card-d {
    font-size: var(--fs-btn);
    line-height: 1.6;
    color: var(--mom-fg-soft);
    margin: 0;
}

/* Calendar mockup — Apple Calendar style */
.fg-mom-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 96px;
}
.fg-mom-cal-kicker {
    text-align: center;
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-text);
    margin: 0 0 16px;
    max-width: 460px;
}

/* Apple Calendar (Week view) recreation */
.fg-mom-cal {
    --cal-line:    hsl(270 12% 90%);
    --cal-line-2:  hsl(270 12% 95%);
    --cal-text:    hsl(240 10% 18%);
    --cal-muted:   hsl(240 8% 48%);
    --cal-chrome:  hsl(270 15% 97%);
    --cal-today:   hsl(0 75% 55%);

    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid hsl(270 15% 88%);
    box-shadow:
        0 30px 60px hsl(270 30% 30% / 0.16),
        0 10px 24px hsl(270 30% 30% / 0.08),
        0 1px 0 hsl(0 0% 100% / 0.9) inset;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    color: var(--cal-text);
}

/* Window chrome (traffic lights) */
.fg-mom-cal-chrome {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    padding: 9px 12px;
    background: var(--cal-chrome);
    border-bottom: 1px solid var(--cal-line);
}
.fg-mom-cal-traffic { display: inline-flex; gap: 6px; }
.fg-mom-cal-traffic i {
    width: 11px; height: 11px; border-radius: 50%;
    background: #ff5f57;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,.08) inset;
}
.fg-mom-cal-traffic i:nth-child(2) { background: #febc2e; }
.fg-mom-cal-traffic i:nth-child(3) { background: #28c840; }
.fg-mom-cal-chrome-title {
    text-align: center;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    color: var(--cal-muted);
}

/* Toolbar: Month label + view selector */
.fg-mom-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--cal-line);
}
.fg-mom-cal-month {
    font-size: var(--fs-btn);
    font-weight: 600;
    color: var(--cal-text);
    letter-spacing: -0.01em;
}
.fg-mom-cal-viewbar {
    display: inline-flex;
    background: hsl(270 12% 94%);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}
.fg-mom-cal-viewbar i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--cal-muted);
    padding: 3px 8px;
    border-radius: 4px;
}
.fg-mom-cal-viewbar i.on {
    background: #fff;
    color: var(--cal-text);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* Day strip */
.fg-mom-cal-days {
    display: grid;
    grid-template-columns: 44px repeat(5, 1fr);
    align-items: center;
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--cal-line);
}
.fg-mom-cal-gutter {
    font-size: 9px;
    color: var(--cal-muted);
    text-align: right;
    padding-right: 8px;
    text-transform: lowercase;
}
.fg-mom-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.fg-mom-cal-day b {
    font-size: 10px;
    font-weight: 500;
    color: var(--cal-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.fg-mom-cal-day span {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--cal-text);
    line-height: 1;
}
.fg-mom-cal-today b { color: var(--cal-today); font-weight: 600; }
.fg-mom-cal-today span {
    color: #fff;
    background: var(--cal-today);
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: var(--fs-eyebrow);
}

/* All-day events row */
.fg-mom-cal-allday {
    display: grid;
    grid-template-columns: 44px repeat(5, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--cal-line);
}
.fg-mom-cal-allday .fg-mom-cal-gutter {
    align-self: center;
}
.fg-mom-cal-adcol {
    border-left: 1px solid var(--cal-line-2);
    padding: 2px 3px;
    min-height: 18px;
    display: flex;
    align-items: center;
}
.fg-mom-cal-adcol .ad {
    display: block;
    width: 100%;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.1;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hour grid body */
.fg-mom-cal-body {
    display: grid;
    grid-template-columns: 44px 1fr;
}
.fg-mom-cal-hours {
    position: relative;
    height: 360px;
    border-right: 1px solid var(--cal-line);
}
.fg-mom-cal-hours span {
    position: absolute;
    right: 6px;
    font-size: 10px;
    color: var(--cal-muted);
    font-weight: 500;
    transform: translateY(-50%);
    line-height: 1;
}
.fg-mom-cal-hours span:nth-child(1)  { top: 0; }
.fg-mom-cal-hours span:nth-child(2)  { top: 36px; }
.fg-mom-cal-hours span:nth-child(3)  { top: 72px; }
.fg-mom-cal-hours span:nth-child(4)  { top: 108px; }
.fg-mom-cal-hours span:nth-child(5)  { top: 144px; }
.fg-mom-cal-hours span:nth-child(6)  { top: 180px; }
.fg-mom-cal-hours span:nth-child(7)  { top: 216px; }
.fg-mom-cal-hours span:nth-child(8)  { top: 252px; }
.fg-mom-cal-hours span:nth-child(9)  { top: 288px; }
.fg-mom-cal-hours span:nth-child(10) { top: 324px; }

.fg-mom-cal-canvas {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 360px;
}
.fg-mom-cal-daycol {
    position: relative;
    border-left: 1px solid var(--cal-line-2);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 17px,
        hsl(270 10% 96%) 17px,
        hsl(270 10% 96%) 18px,
        transparent 18px,
        transparent 35px,
        var(--cal-line) 35px,
        var(--cal-line) 36px
    );
}
.fg-mom-cal-daycol:first-child { border-left: none; }
.fg-mom-cal-daycol-today { background-color: hsl(0 75% 55% / 0.025); }

/* Events */
.fg-mom-cal-canvas .ev {
    position: absolute;
    left: 2px;
    right: 2px;
    padding: 3px 5px 3px 6px;
    border-radius: 4px;
    border-left: 3px solid;
    overflow: hidden;
    line-height: 1.2;
    font-size: 9.5px;
    cursor: default;
    z-index: 1;
    /* Initial state for the booking-fill animation — events stay hidden until the
       calendar scrolls into view, then drop in one after another. */
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
    transform-origin: left center;
}
.fg-mom-cal.is-filling .ev {
    animation: fg-mom-fill 380ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 28ms);
}
.fg-mom-cal.is-filling .fg-mom-cal-now {
    animation: fg-mom-now-line 500ms var(--ease) both;
    animation-delay: 1800ms;
}
@keyframes fg-mom-fill {
    0%   { opacity: 0; transform: translateY(-4px) scale(0.96); }
    55%  { opacity: 1; transform: translateY(1px)  scale(1.02); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes fg-mom-now-line {
    0%   { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}
.fg-mom-cal-now {
    transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) {
    .fg-mom-cal-canvas .ev,
    .fg-mom-cal.is-filling .ev,
    .fg-mom-cal.is-filling .fg-mom-cal-now {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
.fg-mom-cal-canvas .ev b {
    display: block;
    font-weight: 600;
    font-size: 10px;
    color: hsl(240 12% 16%);
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fg-mom-cal-canvas .ev i {
    display: block;
    font-style: normal;
    font-size: 9px;
    color: hsl(240 8% 38%);
    line-height: 1.15;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Apple-style calendar colours — left bar saturated, fill is its light tint */
.color-a { background: hsl(270 80% 95%); border-left-color: hsl(270 70% 55%); }
.color-b { background: hsl(330 80% 96%); border-left-color: hsl(330 75% 58%); }
.color-c { background: hsl(212 90% 95%); border-left-color: hsl(212 85% 52%); }
.color-d { background: hsl(195 85% 94%); border-left-color: hsl(195 80% 45%); }
.color-e { background: hsl(140 50% 94%); border-left-color: hsl(140 50% 42%); }

/* "Now" indicator: thin red horizontal line across all days */
.fg-mom-cal-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cal-today);
    z-index: 4;
    pointer-events: none;
}
.fg-mom-cal-now i {
    position: absolute;
    left: calc(60% - 4px);
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cal-today);
}

/* Responsive */
@media (max-width: 960px) {
    .fg-momentum { padding: 88px 0 96px; }
    .fg-mom-body {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .fg-mom-visual {
        position: static;
        order: -1;
    }
    .fg-mom-cal { max-width: 460px; }
}

@media (max-width: 640px) {
    .fg-momentum { padding: 72px 0 80px; }
    .fg-mom-head { margin-bottom: 56px; }
    .fg-mom-card {
        padding: 22px;
        gap: 18px;
    }
    .fg-mom-num { font-size: 24px; min-width: 36px; }
    .fg-mom-card-t { font-size: var(--fs-body); }
    .fg-mom-card-d { font-size: var(--fs-eyebrow); }
    .fg-mom-cal-canvas .ev i { display: none; }
}

/* ============================================================
   CLIENT VIDEO TESTIMONIALS — horizontal scroll-snap carousel
   Background matches the rebuild-wrap palette so transitions
   between sections stay smooth.
   ============================================================ */
.fg-clients {
    --cl-bg:        hsl(255 100% 99%);
    --cl-fg:        hsl(240 35% 12%);
    --cl-fg-soft:   hsl(240 20% 28%);
    --cl-muted:     hsl(240 10% 50%);
    --cl-primary:   hsl(270 85% 65%);
    --cl-accent:    hsl(250 85% 70%);
    --cl-border:    hsl(270 30% 92%);
    --cl-card:      #fff;

    position: relative;
    padding: 96px 0 112px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(147, 51, 234,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(37, 99, 235,0.08) 0%, transparent 60%),
        var(--cl-bg);
    color: var(--cl-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.fg-clients-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* Heading */
.fg-clients-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.fg-clients-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.fg-clients-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--cl-fg);
    margin: 0;
}

.fg-clients-grad {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Carousel shell + arrows */
.fg-clients-shell {
    position: relative;
}

.fg-clients-nav {
    position: absolute;
    top: calc(50% - 60px); /* visually center on the video region, not the caption */
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cl-card);
    border: 1px solid var(--cl-border);
    color: var(--cl-fg);
    cursor: pointer;
    box-shadow: 0 10px 24px hsl(270 30% 30% / 0.12);
    transition: transform 200ms var(--ease),
                box-shadow 200ms var(--ease),
                opacity 200ms ease;
}
.fg-clients-nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 14px 28px hsl(270 30% 30% / 0.18);
}
.fg-clients-nav.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.fg-clients-nav svg { width: 18px; height: 18px; }
.fg-clients-nav-prev { left: 12px; }
.fg-clients-nav-next { right: 12px; }

@media (max-width: 768px) {
    .fg-clients-nav { display: none; }
}

/* Scroller */
.fg-clients-scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Soft fade-out gradients on the left and right edges (desktop) */
    mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
.fg-clients-scroller::-webkit-scrollbar { display: none; }

.fg-clients-track {
    display: flex;
    gap: 20px;
    padding: 8px 36px 28px;
    list-style: none;
    margin: 0;
}

@media (max-width: 600px) {
    .fg-clients-scroller {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .fg-clients-track { padding: 8px 20px 24px; }
}

/* Card */
.fg-clients-card {
    flex: 0 0 auto;
    width: clamp(280px, 32vw, 380px);
    scroll-snap-align: start;
    background: var(--cl-card);
    border: 1px solid var(--cl-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow:
        0 12px 30px hsl(270 30% 30% / 0.08),
        0 1px 0 hsl(0 0% 100% / 0.9) inset;
    transition: transform 300ms var(--ease),
                box-shadow 300ms var(--ease);
}

.fg-clients-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.fg-clients-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0712;
}
.fg-clients-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.fg-clients-meta {
    padding: 20px 22px 24px;
}

.fg-clients-industry {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    color: var(--c-grad-to);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.fg-clients-caption {
    font-size: var(--fs-btn);
    line-height: 1.5;
    color: var(--cl-fg);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 600px) {
    .fg-clients { padding: 72px 0 88px; }
    .fg-clients-head { margin-bottom: 40px; }
    .fg-clients-card { width: 82vw; max-width: 360px; }
    .fg-clients-meta { padding: 16px 18px 20px; }
    .fg-clients-caption { font-size: var(--fs-eyebrow); }
}

/* Video card captions are visible under each video so the testimonial reads at a glance. */

/* ============================================================
   CLUTCH VERIFIED REVIEWS — horizontal scroll-snap carousel
   ============================================================ */
.fg-clutch {
    --cu-bg:        hsl(255 100% 99%);
    --cu-fg:        hsl(240 35% 12%);
    --cu-fg-soft:   hsl(240 20% 28%);
    --cu-muted:     hsl(240 10% 50%);
    --cu-border:    hsl(270 30% 92%);
    --cu-card:      #fff;
    --cu-primary:   hsl(270 85% 65%);
    --cu-clutch:    #fa0a0e;

    position: relative;
    padding: 56px 0 112px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(147, 51, 234, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(37, 99, 235,0.07) 0%, transparent 60%),
        var(--cu-bg);
    color: var(--cu-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.fg-clutch-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.fg-clutch-head {
    max-width: 1100px;
    margin: 0 auto 56px;
    padding: 0 24px;
    text-align: center;
}

/* Headline + 4 Clutch awards on one row (desktop) */
.fg-clutch-headrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.fg-clutch-headrow .fg-clutch-headline { margin: 0; }
.fg-clutch-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.fg-clutch-badge-iframe {
    border: 0;
    width: 140px;
    height: 140px;
    color-scheme: light;
    display: block;
    flex-shrink: 0;
    /* Reserve the box with a soft skeleton so the slot never collapses or
       flashes blank while the (Cloudflare-gated) Clutch iframe resolves.
       The loaded badge paints opaquely on top of this. */
    background:
        radial-gradient(circle at 50% 42%, #f3f3f6 0 38%, transparent 39%),
        #f7f7fa;
    border-radius: 14px;
}
@media (max-width: 768px) {
    .fg-clutch-headrow { gap: 20px; }
    .fg-clutch-badge-iframe { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
    .fg-clutch-badge-iframe { width: 110px; height: 110px; }
}

.fg-clutch-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.fg-clutch-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--cu-fg);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* Brand mark (circle + dot) — sized to cap height of the headline text */
.fg-clutch-mark {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0 0.15em 0 0.2em;
}
.fg-clutch-mark svg {
    height: 0.85em;
    width: auto;
    display: block;
}
/* "Clutch" word uses the SAME headline font/size/weight — no SVG text */
.fg-clutch-word {
    font: inherit;
    color: inherit;
}

/* Carousel shell + arrows */
.fg-clutch-shell {
    position: relative;
}

/* Scroller — manual scroll-snap carousel; each review is shown exactly once. */
.fg-clutch-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox: hide scrollbar */
    mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    padding: 8px 0 32px;
}
.fg-clutch-marquee::-webkit-scrollbar { display: none; } /* WebKit: hide scrollbar */

.fg-clutch-track {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0 60px;
    width: max-content;
}

.fg-clutch-card {
    flex: 0 0 auto;
    width: clamp(420px, 70vw, 1040px);
    background: var(--cu-card, #fff);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease),
                border-color var(--motion-base) var(--ease);
}
.fg-clutch-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-card-hover);
}
.fg-clutch-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease),
                filter var(--motion-base) var(--ease);
}
.fg-clutch-card-link:hover {
    filter: brightness(1.02);
}
.fg-clutch-card-link:active {
    transform: scale(0.985);
    transition-duration: 100ms;
}
.fg-clutch-card-link:focus-visible {
    outline: 3px solid var(--c-grad-to);
    outline-offset: 4px;
    border-radius: var(--radius-card);
}
.fg-clutch-card img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1200px) { .fg-clutch-card { width: 78vw; } }
@media (max-width: 768px)  {
    .fg-clutch-card { width: 90vw; }
    .fg-clutch-marquee {
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
}

/* CTA: read more on Clutch */
.fg-clutch-cta-wrap {
    text-align: center;
    margin-top: 16px;
}
.fg-clutch-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-btn);
    font-weight: 600;
    color: #fff;
    background: var(--c-btn-grad);
    border: none;
    text-decoration: none;
    box-shadow: var(--shadow-blue);
    transition: transform var(--motion-base) var(--ease),
                box-shadow var(--motion-base) var(--ease);
}
.fg-clutch-cta:active { transform: translateY(0); transition-duration: 80ms; }
.fg-clutch-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(147, 51, 234,.28);
    color: #fff;
}

/* Centered Book-Discovery CTA below the momentum section */
.fg-mom-cta-wrap {
    text-align: center;
    margin: 32px auto 0;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .fg-clutch { padding: 72px 0 88px; }
    .fg-clutch-card { width: 86vw; }
    .fg-clutch-headline { font-size: var(--fs-h2); gap: 8px; }
}

/* ============================================================
   FINAL APPLICATION FORM — Free SEO Leads Projection Call with CEO
   ============================================================ */
.fg-apply {
    --ap-bg:        hsl(255 100% 99%);
    --ap-fg:        hsl(240 35% 12%);
    --ap-fg-soft:   hsl(240 20% 28%);
    --ap-muted:     hsl(240 10% 50%);
    --ap-border:    hsl(270 30% 92%);
    --ap-card:      #fff;
    --ap-primary:   hsl(270 85% 65%);
    --ap-accent:    hsl(250 85% 70%);

    position: relative;
    padding: 112px 0 128px;
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 140px),
        linear-gradient(to top,    #fff 0%, rgba(255,255,255,0) 140px),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(147, 51, 234, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(147, 51, 234, 0.05) 0%, transparent 60%),
        var(--ap-bg);
    color: var(--ap-fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.fg-apply-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top heading — full width, centered above the two columns */
.fg-apply-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 64px;
}

.fg-apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 960px) {
    .fg-apply-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .fg-apply-head { margin-bottom: 48px; }
}

/* Heading typography */
.fg-apply-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-grad-to);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.fg-apply-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--ap-fg);
    margin: 0 0 18px;
}

.fg-apply-grad {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fg-apply-sub {
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ap-fg-soft);
    margin: 0 auto;
    max-width: 620px;
}

/* Right column — big CEO photo card + advantages stacked below */
.fg-apply-aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 96px;
}

@media (max-width: 960px) {
    .fg-apply-aside { position: static; }
}

.fg-apply-photo {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--c-grad);
    box-shadow:
        0 30px 60px hsl(270 30% 30% / 0.18),
        0 10px 24px hsl(270 30% 30% / 0.08),
        0 1px 0 hsl(0 0% 100% / 0.9) inset;
}
.fg-apply-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.fg-apply-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 22px 22px;
    background: linear-gradient(to bottom, transparent 0%, hsl(240 35% 12% / 0.55) 50%, hsl(240 35% 12% / 0.85) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}
.fg-apply-photo-caption strong {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: var(--fs-h3);
    letter-spacing: -0.01em;
}
.fg-apply-photo-caption span {
    font-size: var(--fs-eyebrow);
    color: hsl(0 0% 100% / 0.85);
}

.fg-apply-bullets {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fg-apply-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-btn);
    line-height: 1.5;
    color: var(--ap-fg-soft);
}
.fg-apply-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--c-grad-from-rgb), 0.18), rgba(var(--c-grad-to-rgb), 0.18));
    color: hsl(270 85% 55%);
    margin-top: 1px;
}
.fg-apply-check svg { width: 12px; height: 12px; }

.fg-apply-urgency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    color: hsl(0 70% 50%);
    margin: 0;
}
.fg-apply-urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(0 70% 50%);
    box-shadow: 0 0 0 0 hsl(0 70% 50% / 0.5);
    animation: fg-apply-pulse 1.8s var(--ease) infinite;
}
@keyframes fg-apply-pulse {
    0%   { box-shadow: 0 0 0 0    hsl(0 70% 50% / 0.55); }
    70%  { box-shadow: 0 0 0 10px hsl(0 70% 50% / 0); }
    100% { box-shadow: 0 0 0 0    hsl(0 70% 50% / 0); }
}
@media (prefers-reduced-motion: reduce) {
    .fg-apply-urgency-dot { animation: none; }
}

/* Right column — form card */
.fg-apply-form-card {
    background: var(--ap-card);
    border: 1px solid var(--ap-border);
    border-radius: 22px;
    padding: 36px 32px 32px;
    box-shadow:
        0 30px 60px hsl(270 30% 30% / 0.12),
        0 10px 24px hsl(270 30% 30% / 0.06),
        0 1px 0 hsl(0 0% 100% / 0.9) inset;
}

.fg-apply-form-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--ap-fg);
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

.fg-apply-form .form-row { margin-bottom: 12px; }
.fg-apply-form .form-row:last-of-type { grid-template-columns: 1fr 1fr; } /* override the default last-row collapse */
.fg-apply-form .form-row:has(.form-field:only-child) { grid-template-columns: 1fr; }
.fg-apply-form .form-field { margin-bottom: 0; }
.fg-apply-form .form-label { font-size: var(--fs-eyebrow); margin-bottom: 5px; }
.fg-apply-form input,
.fg-apply-form select {
    padding: 13px 14px;
    border-radius: var(--radius);
    font-size: var(--fs-body);
}

.fg-apply-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    border-radius: var(--radius-btn);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-btn);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--c-grad);
    color: #fff;
    box-shadow:
        0 10px 30px rgba(147, 51, 234,0.35),
        0 0 0 1px rgba(147, 51, 234,0.4) inset;
    transition: transform 300ms var(--ease),
                box-shadow 300ms var(--ease);
}
.fg-apply-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 40px rgba(147, 51, 234,0.45),
        0 0 0 1px rgba(147, 51, 234,0.6) inset;
}
.fg-apply-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.fg-apply-submit svg { width: 16px; height: 16px; transition: transform var(--motion-base) var(--ease); }
.fg-apply-submit:hover svg { transform: translateX(3px); }

.fg-apply-fineprint {
    margin: 14px 0 0;
    font-size: var(--fs-eyebrow);
    color: var(--ap-muted);
    text-align: center;
}

@media (max-width: 600px) {
    .fg-apply { padding: 80px 0 96px; }
    .fg-apply-form-card { padding: 28px 22px 24px; }
    .fg-apply-form .form-row { grid-template-columns: 1fr; }
    .fg-apply-form .form-row:last-of-type { grid-template-columns: 1fr; }
}
