:root {
    /* ════════════════════════════════════════════════════════════
       BRAND TOKENS — Cinematic Dark Emerald Canvas (source of truth)
       A fixed, panning silk-texture backdrop sits behind everything;
       emerald + off-white are the only accents. Cards are tinted
       glass floating over the texture, not opaque light panels.
       ════════════════════════════════════════════════════════════ */
    --bg-primary: #030F0B;
    --accent-emerald: #10B981;
    --accent-mint: #00D084;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --glass-border: rgba(16, 185, 129, 0.26);
    --bg-texture: url('../assets/images/site-bg.webp');

    /* ════════════════════════════════════════════════════════════
       DERIVED / SEMANTIC TOKENS — every component below reads only
       from these, so the whole site stays perfectly unified.
       ════════════════════════════════════════════════════════════ */

    /* 1. Surfaces */
    --header-bg-color: rgba(3, 14, 10, 0.74);
    --card-bg: linear-gradient(165deg, rgba(11, 43, 32, 0.82) 0%, rgba(3, 15, 11, 0.90) 100%);
    --bg-color-alt: #06231A;
    --bg-color-darker: #020D08;
    --bg-elevated: #0F3826;
    --bg-secondary: rgba(16, 185, 129, 0.10);

    /* 2. Emerald gradient + glow system */
    --primary-gradient: linear-gradient(90deg, #0B7A56 0%, #10B981 55%, #00D084 100%);
    --text-on-accent: #04140D;

    /* 3. Typography colors — off-white on the dark textured canvas */
    --text-color: rgba(249, 250, 251, 0.86);
    --text-color-light: var(--text-muted);
    --dark-title: var(--text-main);

    --quote-bg: rgba(1, 10, 7, 0.45);
    --back-link-bg: rgba(3, 17, 12, 0.78);

    /* 4. Depth surfaces */
    --screenshot-gradient-start: #0C3323;
    --screenshot-gradient-end: #03110B;

    --border-active: var(--accent-emerald);

    --overlay-dark: rgba(1, 8, 6, 0.68);
    --mask-fade: var(--bg-primary);
    --overlay-gradient-start: rgba(2, 12, 9, 0.94);

    /* 5. Semantic spectrum — bright variants for legibility on dark */
    --success: var(--accent-mint);
    --error: #F87171;
    --danger-red: #DC2626;
    --star-empty: rgba(249, 250, 251, 0.20);
    --star-active: #F0B100;

    --verified-bg: rgba(16, 185, 129, 0.12);
    --verified-border: rgba(16, 185, 129, 0.35);
    --verified-shadow: rgba(0, 0, 0, 0.30);
    --verified-text: var(--accent-mint);

    --outcome-bg: linear-gradient(135deg, #10B981 0%, #00D084 100%);
    --outcome-border: rgba(16, 185, 129, 0.5);
    --outcome-shadow: rgba(0, 0, 0, 0.30);
    --outcome-text: var(--text-on-accent);

    --pro-package-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.20) 0%, rgba(0, 208, 132, 0.08) 100%);
    --pro-package-text: var(--accent-mint);
    --pro-package-border: rgba(16, 185, 129, 0.4);

    --starter-package-bg: linear-gradient(135deg, rgba(249, 250, 251, 0.10) 0%, rgba(249, 250, 251, 0.03) 100%);
    --starter-package-text: rgba(249, 250, 251, 0.82);
    --starter-package-border: rgba(249, 250, 251, 0.18);

    /* Bespoke / Individual tier — deliberately breaks from the emerald
       system into a deep violet, so it reads as the singular, by-
       invitation focal point against the green Starter/Pro/Premium row. */
    --bespoke-bg: linear-gradient(160deg, #3B1670 0%, #0F0620 100%);
    --bespoke-border: rgba(168, 85, 247, 0.55);
    --bespoke-text-main: #F9FAFB;
    --bespoke-text-light: rgba(237, 228, 255, 0.74);
    --bespoke-accent-light: #D8B4FE;
    --bespoke-gradient: linear-gradient(90deg, #6D28D9 0%, #A855F7 55%, #D8B4FE 100%);
    --bespoke-glow: rgba(168, 85, 247, 0.45);

    /* 6. Typography */
    --font-heading: 'Anta', 'Noto Sans Georgian', sans-serif;
    --font-body: 'Anta', 'Noto Sans Georgian', sans-serif;
    --font-numeric: 'Patrick Hand', cursive;
    --font-mono: 'JetBrains Mono', 'Noto Sans Georgian', monospace;

    --header-height: 80px;
    --focus-outline: 2px solid var(--accent-emerald);
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.38), 0 16px 34px -8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, 0.65), 0 15px 40px -12px rgba(16, 185, 129, 0.22);
    --shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.20), 0 22px 55px -14px rgba(16, 185, 129, 0.42);
    --shadow-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Z-Index — stacking order top to bottom: header (and everything
       inside it, incl. the hamburger button) > sliding panel > dim
       overlay > page back-link > normal page content (z-index: auto).
       `header` is `position: fixed` with its own z-index, which makes
       it a stacking context of its own — so anything inside it (the
       language dropdown, the hamburger button mid X-morph) can only
       ever outrank --z-panel / --z-overlay / --z-back-link if header's
       OWN z-index outranks them first. A descendant's z-index never
       lets it escape its ancestor's stacking context, no matter how
       high it's set — that's why the hamburger's X used to vanish
       behind the sliding panel, since the panel's right edge overlaps
       header's top-right corner where the button sits. */
    --z-header: 2100;
    --z-panel: 2000;
    --z-overlay: 1999;
    --z-back-link: 1050;
    --z-menu: 2001;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
html:focus-within { scroll-behavior: auto; }
body { min-height: 100vh; text-rendering: optimizeSpeed; line-height: 1.5; }
a:not([class]) { text-decoration-skip-ink: auto; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html, body { overflow-x: hidden; }
body { display: flex; flex-direction: column; }
main { flex-grow: 1; }

/* Scroll animation is handled by GSAP's ScrollToPlugin (see script.js)
   so it can use a snappier duration/ease than native smooth-scroll —
   native `scroll-behavior: smooth` is disabled to avoid the two fighting. */
html { scroll-behavior: auto; color-scheme: dark; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════════════
   CINEMATIC SITE BACKGROUND — fixed silk/leather texture, panned and
   zoomed by scroll progress (see script.js). Sits at z-index:0, behind
   every section; `.container` (z-index:2) and `header` (z-index:1000)
   always stay above it. The scrim guarantees text contrast no matter
   which part of the texture is currently panned into view. `inset:-15%`
   (170% → 130% overscan box, must match `OVERSCAN` in script.js) plus a
   near-1:1 `scale(1.01)` fallback keep the crop wide, so the texture's
   grain and weave stay legible across the whole viewport instead of
   reading as a tight, abstract close-up.
   ══════════════════════════════════════════════════════════════════ */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-primary);
}
.site-bg-image {
    position: absolute;
    inset: -5.2%;
    background-image: var(--bg-texture);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0) scale(1.01);
    transform-origin: center;
    will-change: transform;
}
.site-bg-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(2, 10, 7, 0) 0%, rgba(2, 10, 7, 0.35) 55%, rgba(1, 6, 4, 0.74) 100%),
        linear-gradient(180deg, rgba(1, 8, 6, 0.32) 0%, rgba(1, 8, 6, 0.56) 100%);
}

h1, h2, h3, h4, .section-title { font-family: var(--font-heading); font-weight: 600; font-style: normal; letter-spacing: -0.01em; line-height: 1.2; }
.stat-number, .price, .numeric, .kpi { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
code, pre, kbd { font-family: var(--font-mono); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
/* Phones get a smaller size: long Georgian words (e.g. "განხორციელებული")
   were wider than the screen at 2.2rem. `overflow-wrap` is a last resort. */
.section-title { font-size: clamp(1.5rem, 7.2vw, 2.2rem); text-align: center; margin-bottom: 4rem; font-weight: 700; color: var(--dark-title); letter-spacing: -0.02em; overflow-wrap: break-word; }
@media (min-width: 768px) { .section-title { font-size: clamp(2.2rem, 5vw, 3rem); } }
.section-title.has-subtitle { margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 540px; margin: 0 auto 3rem; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6; color: var(--text-color-light); position: relative; }

.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

a, button { transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-spring), box-shadow var(--transition-fast), border-color var(--transition-fast); touch-action: manipulation; }
input, textarea { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: var(--focus-outline); outline-offset: 3px; border-radius: 4px; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; font-family: var(--font-body); cursor: pointer; border: 1px solid transparent; transition: transform var(--transition-spring), box-shadow var(--transition-fast), background-position 0.6s ease, border-color var(--transition-fast); user-select: none; letter-spacing: 0.01em; }
.btn-primary { background: var(--primary-gradient); background-size: 200% auto; color: var(--text-on-accent); border: none; box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.5); }
.btn-primary:hover, .btn-primary:focus { background-position: right center; transform: translateY(-3px); box-shadow: var(--shadow-glow); outline: none; }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-secondary { border: 1px solid var(--glass-border); color: var(--text-main); background-color: rgba(16, 185, 129, 0.04); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-secondary:hover, .btn-secondary:focus { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-emerald); color: var(--accent-mint); background-color: rgba(16, 185, 129, 0.09); outline: none; }
.btn-secondary:active { transform: translateY(-1px) scale(0.98); }

header { background-color: var(--header-bg-color); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--glass-border); position: fixed; top: 0; z-index: var(--z-header); width: 100%; }
header nav { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-links, .language-selector { display: none; }

/* terms.html has no hamburger/off-canvas panel (no in-page nav to put
   there), so its language selector needs to stay visible at every
   width instead of only appearing at the >=768px breakpoint below. */
.terms-nav .language-selector { display: flex; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 600; padding: 0.5rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-fast); border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active-link::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active-link { color: var(--accent-mint); }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-family: var(--font-heading); font-size: 1.5rem; text-decoration: none; color: var(--dark-title); }
header .logo img { height: 65px; width: auto; }
@media (max-width: 400px) {
    header .logo img { height: 48px; }
    .logo { gap: 0.5rem; font-size: 1.2rem; }
}
#haveU {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1.5px solid var(--glass-border);
  padding-bottom: 2px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#haveU:hover {
  color: var(--accent-mint);
  border-bottom-color: var(--accent-emerald);
}

#haveU:active {
  color: var(--accent-emerald);
}
.language-selector { position: relative; }
.current-lang-btn { font-family: inherit; background-color: var(--bg-color-alt); border: 1px solid var(--glass-border); color: var(--text-color); padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.current-lang-btn::after { content: ' ▼'; font-size: 0.6rem; opacity: 0.7; }
.language-selector.active .current-lang-btn { border-color: var(--border-active); }

.language-options { position: absolute; top: calc(100% + 10px); right: 0; background: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 8px; list-style: none; padding: 0.5rem; z-index: 1060; min-width: 130px; opacity: 0; transform: translateY(-10px); pointer-events: none; box-shadow: var(--shadow-lg); transition: opacity var(--transition-smooth), transform var(--transition-smooth); will-change: opacity, transform; }
.language-options.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.language-options a { display: block; color: var(--text-color); text-decoration: none; padding: 0.75rem 1rem; border-radius: 6px; font-weight: 600; transition: background-color var(--transition-fast), color var(--transition-fast); }
.language-options a:hover, .language-options a:focus { background-color: rgba(16, 185, 129, 0.14); color: var(--accent-mint); outline: none; }

/* Animated hamburger: three bars that morph into an X with a slight
   spring overshoot (`--transition-spring`), matching the site's other
   bouncy micro-interactions. Driven purely by `body.mobile-nav-is-open`
   — no extra JS state needed beyond what already toggles that class. */
.hamburger-menu { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; z-index: var(--z-menu); padding: 0; border-radius: 8px; transition: background-color var(--transition-fast); }
.hamburger-menu:hover { background-color: var(--bg-secondary); }

.hamburger-bar { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text-color); transform-origin: center; transition: transform 0.45s var(--transition-spring), opacity 0.25s ease, background-color var(--transition-fast); }

body.mobile-nav-is-open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent-emerald); }
body.mobile-nav-is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.mobile-nav-is-open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent-emerald); }

.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); z-index: var(--z-overlay); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
/* `justify-content: flex-start` (was `center`) plus the mask below are
   what actually eliminate the unused space: content now sits near the
   top instead of dead-center, and the panel itself dissolves to
   transparent over its lower third, so there's no leftover flat empty
   block at the bottom — it reads as the homepage bleeding through
   instead of dead space. */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-color-alt);
    z-index: var(--z-panel);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(100%);
    /* Same duration as `.hamburger-bar`'s transform (below) so the icon's
       X-morph and the panel's slide-in are driven by the same class
       toggle and finish in lockstep rather than one trailing the other. */
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 90%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 90%);
}

.mobile-nav-content { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-end; padding: 7rem 2.5rem 2rem; }
.mobile-nav-links { text-align: right; }
.mobile-nav-links li { margin: 0; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.mobile-nav-links a { display: inline-block; padding: 0.75rem 1.5rem; color: var(--text-color); text-decoration: none; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 600; transition: color var(--transition-fast), transform var(--transition-fast); }
.mobile-nav-links a:hover, .mobile-nav-links a.active-link { color: var(--accent-mint); transform: scale(1.05); }

.mobile-lang-switcher { display: flex; align-items: center; gap: 0.75rem; margin-top: 2.5rem; padding: 0.5rem; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: 50px; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s; }
.mobile-lang-switcher span { opacity: 0.4; color: var(--text-color-light); }
.mobile-lang-switcher button { background: transparent; border: none; color: var(--text-color-light); font-size: 1rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 30px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.mobile-lang-switcher button:hover { opacity: 1; }
.mobile-lang-switcher button.active-lang { opacity: 1; background: var(--primary-gradient); color: var(--text-on-accent); }

body.mobile-nav-is-open { overflow: hidden; }
body.mobile-nav-is-open .mobile-nav-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
body.mobile-nav-is-open .mobile-nav-panel { transform: translateX(0); }
body.mobile-nav-is-open .mobile-nav-links li { opacity: 1; transform: translateY(0); transition-delay: calc(0.2s + 0.05s * var(--i)); }
body.mobile-nav-is-open .mobile-lang-switcher { opacity: 1; transform: translateY(0); }

main { position: relative; padding-top: var(--header-height); }
.page-view { transition: opacity 0.2s ease-out, visibility 0s 0.2s; }
/* Inactive views also skip rendering (content-visibility), so the hidden
   contact/review/all-reviews pages aren't laid out on first paint and their
   lazy images don't download until opened. It switches in lockstep with
   `visibility` (same 0.2s delay), so the cross-fade looks exactly the same;
   browsers without `allow-discrete` keep the declaration above. */
.page-view { transition: opacity 0.2s ease-out, visibility 0s 0.2s, content-visibility 0s 0.2s allow-discrete; }
.page-view.hidden, .page-view:not(.active) { opacity: 0; visibility: hidden; content-visibility: hidden; pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; }

body.virtual-page-active #main-content-view { display: none; }
section { padding: 4rem 0; }
.content-section-dark { background-color: transparent; }

.card { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: clamp(1.5rem, 7vw, 2.5rem); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow-sm), var(--shadow-card-highlight); transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(16, 185, 129, 0.16), transparent 70%); transition: opacity 0.5s ease; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); border-color: var(--verified-border); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark-title); position: relative; }
.card p { color: var(--text-color-light); position: relative; }

#hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* `main` reserves `--header-height` at its top so normal sections
       clear the fixed header. Hero cancels that reservation (negative
       margin) and adds the same amount back as its OWN padding, so its
       box — and therefore `.hero-video-wrap`, which is `inset:0` inside
       it — starts at the true viewport top and renders behind the
       transparent header, instead of leaving a header-height gap where
       the video doesn't reach. The hero copy still clears the header
       correctly because the padding is still there, just moved inside. */
    margin-top: calc(-1 * var(--header-height));
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    text-align: left;
}

/* ── Cinematic video background ─────────────────────────────────── */
/* The bottom edge fades to true TRANSPARENCY (not a dark vignette) via
   a mask, so the sitewide `.site-bg` texture — fixed behind everything
   else on the page — shows through and the hero merges seamlessly into
   the rest of the page instead of sitting on top of it as a separate
   box. A single linear gradient keeps the fade predictable and free of
   cross-browser multi-layer mask-compositing quirks. The fade covers only
   the bottom 15%, so the video stays at full strength everywhere else. */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-color-darker);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* A tint only (no blur, which softened the whole video): darker behind
   the copy and toward the bottom so the white text stays readable. It's
   the overlay's RESTING state, faded in by the cinematic intro (see
   `heroFadeIn` below). */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(65% 85% at 14% 58%, rgba(1, 6, 4, 0.32) 0%, rgba(1, 6, 4, 0) 68%),
        linear-gradient(180deg, rgba(2, 10, 7, 0.18) 0%, rgba(2, 10, 7, 0.28) 48%, rgba(2, 10, 7, 0.42) 100%);
    opacity: 1;
    transition: opacity 1s ease;
}

.hero-grid { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2rem; position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 640px; position: relative; }
.hero-text h1 {
    font-family: var(--font-body);
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #F9FAFB;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    position: relative;
}
/* Under the H1: one short lead line, then the services as a compact
   "a · b · c" line (each item kept on one line).
   The lead line stays on ONE line on phones: the Georgian text is ~18.9×
   its font size wide, so below ~480px the size follows the container's
   inner width (100vw minus its 2rem side paddings) ÷ 19.4. Wider screens
   keep the 1.1rem–1.35rem scale. */
.hero-subtitle { max-width: 560px; margin-bottom: 0.6rem; font-size: clamp(0.8rem, max(min(1.1rem, (100vw - 4rem) / 19.4), 2.4vw), 1.35rem); font-weight: 600; line-height: 1.45; color: rgba(249, 250, 251, 0.94); position: relative; }
.hero-subtext { max-width: 560px; margin-bottom: 2.5rem; font-size: clamp(0.9rem, 1.7vw, 1rem); line-height: 1.7; color: rgba(249, 250, 251, 0.74); position: relative; }
.hero-subtext span { white-space: nowrap; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; position: relative; }
#hero .gradient-text {
    background: linear-gradient(135deg, var(--accent-mint) 15%, var(--accent-emerald) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 18px rgba(16, 185, 129, 0.35));
}

/* Compact, fully-rounded CTA pair scoped to the hero only — the rest
   of the site keeps the standard rounded-rect `.btn`. */
.hero-buttons .btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hero-buttons .btn i {
    margin-left: 0.5rem;
    font-size: 0.8em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-buttons .btn:hover i { transform: translateX(4px); }
.hero-buttons .btn-secondary {
    border: 2px solid rgba(249, 250, 251, 0.85);
    color: #F9FAFB;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.hero-buttons .btn-secondary:hover, .hero-buttons .btn-secondary:focus {
    border-color: #F9FAFB;
    color: #021B13;
    background-color: #F9FAFB;
}
.hero-buttons .btn-primary {
    box-shadow: 0 10px 28px -8px rgba(16, 185, 129, 0.55);
}

/* Decorative circuit-trace accent behind the hero copy — purely
   ornamental, so it's aria-hidden and ignores pointer events. */
.hero-circuit {
    position: absolute;
    left: clamp(-2.5rem, -6vw, -1rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(70px, 16vw, 120px);
    height: auto;
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════
   HERO CINEMATIC INTRO SEQUENCE
   `html.hero-cinematic-init` is added by a tiny inline script at the
   very top of <body> (only when landing on #hero with no reduced-
   motion preference), so it is present from first paint — no flash.
   Every reveal below is pure CSS, so the sequence completes correctly
   even if later JS never runs. Only the video playbackRate change needs
   JS, since CSS cannot touch it.

   The reveal starts the moment the page first paints. (It used to wait
   1.8s with only the logo showing; that pause delayed the headline —
   the page's Largest Contentful Paint — and the Speed Index by ~2s in
   PageSpeed Insights.)
   ══════════════════════════════════════════════════════════════════ */

/* The logo mark + "OSGWeb.ge" text are visible from first paint
   (`.logo` is never touched by this class). Everything else — nav
   links, language selector, hamburger (`.nav-right`), the header's own
   background/border/blur — starts hidden and is revealed right away;
   the navbar with a normal fade. The hero copy is a pure slide, no fade:
   it is visible from the very first paint at its starting offset, so the
   headline counts as painted immediately, and since only `transform`
   animates, the browser runs the slide off the main thread (it stays
   smooth while the page's scripts are still starting up). */
html.hero-cinematic-init .nav-right {
    opacity: 0;
}
html.hero-cinematic-init .hero-video-overlay { opacity: 0; }
html.hero-cinematic-init header {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
}

html.hero-cinematic-init .nav-right {
    animation: heroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
html.hero-cinematic-init .hero-text h1 {
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html.hero-cinematic-init .hero-subtitle {
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
html.hero-cinematic-init .hero-subtext {
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.21s both;
}
html.hero-cinematic-init .hero-buttons {
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}
/* The glow behind "Digitally." fades in as the headline lands, instead
   of being drawn in the very first frame: a blurred drop-shadow is
   expensive to render, and drawing it up front delayed the first paint
   by ~0.3–0.4s in PageSpeed Insights' (GPU-less) test browser. */
html.hero-cinematic-init #hero .gradient-text {
    animation: heroTextGlow 0.6s ease 0.45s backwards;
}
html.hero-cinematic-init .hero-video-overlay {
    animation: heroFadeIn 1s ease forwards;
}
html.hero-cinematic-init header {
    animation: headerFogIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Pure slide — no opacity anywhere, so motion is the only cue. */
@keyframes heroSlideIn { from { transform: translateX(-88px); } to { transform: translateX(0); } }
/* Ends on the resting drop-shadow set on `#hero .gradient-text`. */
@keyframes heroTextGlow { from { filter: none; } }
/* Fog-in: blur overshoots past its resting value before settling,
   reading as mist condensing into solid glass rather than a hard swap. */
@keyframes headerFogIn {
    0%   { background-color: transparent; border-bottom-color: transparent; backdrop-filter: blur(0px) saturate(100%); -webkit-backdrop-filter: blur(0px) saturate(100%); }
    55%  { background-color: rgba(3, 14, 10, 0.50); border-bottom-color: rgba(16, 185, 129, 0.14); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); }
    100% { background-color: var(--header-bg-color); border-bottom-color: var(--glass-border); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}

/* ── Hero showcase (desktop ≥992px) ──────────────────────────────────
   A browser window beside the hero copy that cycles through real client
   sites (initHeroShowcase in script.js): the screenshot scrolls slowly
   inside it, the address bar types the domain, and two chips show that
   client's review and result. Turned a few degrees to face the copy, with
   its green glow on the side facing the buttons. Hidden on smaller screens
   (phones keep the video hero). */
.hero-showcase { display: none; }

@media (min-width: 992px) {
    .hero-grid { flex-direction: row; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); }
    .hero-text { flex: 0 0 auto; }
    .hero-showcase {
        display: block;
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        max-width: 560px;
        margin-left: auto;
        /* on wide screens it reaches part-way into the empty side margin */
        margin-right: calc(-1 * clamp(0px, (100vw - 1100px) / 2 - 2rem, 4.5rem));
    }
}

/* soft emerald light behind the window, toward the buttons (bottom left) */
.hero-showcase::before {
    content: '';
    position: absolute;
    inset: 10% 15% -16% -18%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.26), rgba(16, 185, 129, 0));
    pointer-events: none;
}

.showcase-window {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #06110D;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 40px 70px -34px rgba(0, 0, 0, 0.9),
        -26px 26px 70px -36px rgba(16, 185, 129, 0.55);
    transform: perspective(1600px) rotateY(calc(-9deg + var(--tilt-y))) rotateX(calc(2deg + var(--tilt-x)));
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── browser bar: lights · address · package · pause ── */
.showcase-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 40px;
    padding: 0 0.5rem 0 0.85rem;
    background: linear-gradient(180deg, #10241D 0%, #0B1A15 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.16);
}
.showcase-lights { display: flex; gap: 6px; flex-shrink: 0; }
.showcase-lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(249, 250, 251, 0.15); }
.showcase-url {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 25px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(249, 250, 251, 0.8);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
}
.showcase-url svg { flex-shrink: 0; color: var(--accent-mint); }
/* the typing caret, only while the domain is being typed */
.showcase-url.is-typing [data-showcase-url]::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.95em;
    margin-left: 1px;
    vertical-align: -0.12em;
    background: var(--accent-mint);
}
.showcase-tier {
    flex-shrink: 0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: var(--accent-mint);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}
.showcase-pause {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(249, 250, 251, 0.55);
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.showcase-pause:hover,
.showcase-pause:focus-visible { color: #F9FAFB; background: rgba(255, 255, 255, 0.08); }
.showcase-pause .icon-play,
.showcase-pause[aria-pressed="true"] .icon-pause { display: none; }
.showcase-pause[aria-pressed="true"] .icon-play { display: block; }
/* how long the current site stays: fills along the bar's bottom edge */
.showcase-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.showcase-progress i {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-mint));
}
/* reduced motion: one still site, nothing to pause */
.hero-showcase.is-static .showcase-pause,
.hero-showcase.is-static .showcase-progress { display: none; }

/* ── the page itself (a link to the live site, in a new tab) ── */
.showcase-screen {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #040C09;
}
.showcase-screen:focus-visible { outline: 2px solid var(--accent-mint); outline-offset: -3px; }
.showcase-shot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.showcase-shot.is-active { opacity: 1; }
/* on hover/focus: a shade at the bottom and the "See work" pill */
.showcase-screen::after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(to top, rgba(2, 10, 7, 0.85), rgba(2, 10, 7, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.showcase-cta {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: var(--text-on-accent);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px -10px rgba(16, 185, 129, 0.7);
    opacity: 0;
    translate: -50% 10px;
    transition: opacity 0.3s ease, translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* still screenshots: says the live site has more (hidden while the pill shows) */
.showcase-note {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    z-index: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(2, 10, 7, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(249, 250, 251, 0.75);
    font-size: 0.66rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.showcase-screen:hover .showcase-note,
.showcase-screen:focus-visible .showcase-note { opacity: 0; }
.showcase-screen:hover::after,
.showcase-screen:focus-visible::after { opacity: 1; }
.showcase-screen:hover .showcase-cta,
.showcase-screen:focus-visible .showcase-cta { opacity: 1; translate: -50% 0; }

/* ── the two chips: review (or client) and result ── */
.showcase-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: max-content;
    max-width: 330px;
    padding: 0.65rem 1rem 0.65rem 0.7rem;
    border-radius: 14px;
    background: rgba(7, 23, 18, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -14px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}
/* Review: hangs from the bottom-left corner, beside the hero buttons.
   Result: on the right edge. Both keep clear of the sites' headlines
   (usually top left) and of the browser bar. */
.showcase-chip--review { left: -2.25rem; bottom: -2.6rem; }
/* reaches further out where the side margin has room */
.showcase-chip--result { right: calc(-1 * clamp(1rem, (100vw - 1100px) / 4, 3rem)); top: 30%; }
/* 992–1199px: the window is too narrow for two chips; the result chip
   takes the review's place below the window, beside the buttons */
@media (max-width: 1199px) {
    .showcase-chip--review { display: none; }
    .showcase-chip--result { top: auto; right: auto; left: -1.25rem; bottom: -2.6rem; }
}
.chip-badge {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-mint);
    font-weight: 700;
}
.chip-badge img { width: 100%; height: 100%; object-fit: cover; }
.chip-badge--letter { font-size: 1rem; border: 1px solid rgba(16, 185, 129, 0.35); }
.chip-badge--ring { background: transparent; border: 2.5px solid var(--accent-mint); font: 700 0.68rem/1 var(--font-mono); }
.chip-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
/* the quotes have their own line break (in the translations), so each chip
   is exactly as wide as its longest line */
.chip-title { color: #F9FAFB; font-size: 0.86rem; font-weight: 600; line-height: 1.35; }
.chip-sub { color: var(--text-color-light); font-size: 0.72rem; line-height: 1.3; }
.showcase-chip--result .chip-title { color: var(--accent-mint); font-size: 0.95rem; font-weight: 700; }

/* Joins the hero intro: slides in from the right just after the copy,
   then the chips pop in. Transform only, like the copy, so the window is
   visible from the first frame. */
html.hero-cinematic-init .hero-showcase {
    animation: heroSlideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
html.hero-cinematic-init .showcase-chip--review {
    animation: showcaseChipIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both;
}
html.hero-cinematic-init .showcase-chip--result {
    animation: showcaseChipIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}
@keyframes heroSlideInRight { from { translate: 96px 0; } to { translate: 0 0; } }
@keyframes showcaseChipIn { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }

#trust-bar { padding: 2rem 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background-color: rgba(2, 10, 7, 0.30); }
.marquee { overflow: hidden; position: relative; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, var(--mask-fade) 20%, var(--mask-fade) 80%, transparent); mask-image: linear-gradient(to right, transparent, var(--mask-fade) 20%, var(--mask-fade) 80%, transparent); }
.marquee-content { display: flex; animation: marquee 30s linear infinite; width: fit-content; }
.marquee-content span { flex-shrink: 0; padding: 0 2rem; font-size: 1.2rem; font-weight: 600; color: var(--text-color-light); opacity: 0.8; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
/* ================================== */
/* === PORTFOLIO CAROUSEL =========== */
/* ================================== */

.portfolio-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* `overflow: hidden` crops the off-screen cards, and would also crop the
   active card's green glow: the bottom padding leaves room for the whole
   glow to fade out, and the negative margin gives that space back so the
   dots stay where they were. */
.carousel-track-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.25rem 0 4rem;
    margin-bottom: -3rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

.carousel-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex: 0 0 85%;
    height: 340px;
    height: clamp(340px, 40vh, 450px);
    opacity: 0.45;
    transform: scale(0.92);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card-highlight);
    transition:
        opacity var(--transition-smooth),
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

/* Glows reach at most ~58px below the card, inside the track wrapper's
   bottom padding, so they always fade out completely. */
.carousel-item.is-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.20), 0 18px 46px -14px rgba(16, 185, 129, 0.42);
    border-color: var(--verified-border);
}

/* Soft green ambient glow — nudges even the dimmed, off-focus cards
   toward full visibility on hover, inviting the click into focus. */
.carousel-item:hover {
    opacity: 0.85;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 18px 46px -14px rgba(16, 185, 129, 0.45);
    border-color: rgba(16, 185, 129, 0.45);
}

.carousel-item.is-active:hover {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.32), 0 20px 52px -14px rgba(16, 185, 129, 0.55);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    display: block;
}
/* Not loaded yet (its `data-src` is attached by script.js as the carousel
   nears the screen) — hide the alt text an image without `src` would show. */
.carousel-item img:not([src]) { visibility: hidden; }

.carousel-item:hover img {
    transform: scale(1.04);
}

.carousel-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: linear-gradient(to top, var(--overlay-gradient-start) 0%, rgba(2, 12, 9, 0.55) 55%, transparent 100%);
}

.carousel-item-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-mint);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.carousel-item-tag::after { content: ' \2197'; }

.carousel-item .overlay h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    transform: translateY(10px);
    transition: transform var(--transition-smooth);
}

.carousel-item.is-active:hover .overlay h3,
.carousel-item.is-active:hover .carousel-item-tag {
    transform: translateY(0);
    opacity: 1;
}

/* --- Arrows --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(16, 185, 129, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Viewport: crops the dot track to exactly 5 visible slots. Width is
   set precisely in JS (measured from the real, rendered dot/gap/pill
   sizes) once the dots exist — see `initPortfolioCarousel()`. */
.carousel-dots {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Track: holds ONE dot per project (however many there are) and slides
   via `transform` in fixed per-dot steps — see `syncDots()` in
   script.js. */
.carousel-dots-track {
    display: flex;
    /* 10px dot + 16px gap = 26px from dot to dot: meets the 24px minimum
       touch-target spacing (WCAG 2.5.8 / Lighthouse "target-size"). */
    gap: 1rem;
    align-items: center;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

.carousel-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background-color: rgba(249, 250, 251, 0.18);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* `width` intentionally uses a non-overshooting ease — a "back"
       curve here would let the pill grow past 32px mid-transition and
       clip against the dots viewport's `overflow: hidden` edge when
       it's the 5th (last) visible slot. The bounce is kept for the
       purely decorative properties, where overshoot is harmless. */
    transition:
        width var(--transition-smooth),
        background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.carousel-dot:hover:not(.is-active) {
    background-color: rgba(16, 185, 129, 0.4);
}

.carousel-dot.is-active {
    width: 32px;
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
    border-radius: 100px;
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 70%;
        height: 400px;
    }

    .carousel-btn--prev { left: -1rem; }
    .carousel-btn--next { right: -1rem; }
}

.review-card { margin-bottom: 1.5rem; padding: 10px; }
.case-card { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 2.5vw, 2.5rem); border-radius: 16px; background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-md), var(--shadow-card-highlight); transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast); }
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); border-color: var(--verified-border); }
/* Mobile default: avatar + meta stay on one row (`nowrap`), and the
   verified badge is pulled out of flow (`absolute`) instead of sitting
   in the flex row — otherwise, as a non-shrinking third flex item, it
   would overflow the row and wrap onto its own line, shoving the name
   and tags down with it. */
.case-top { display: flex; flex-wrap: nowrap; gap: 0.85rem; align-items: flex-start; position: relative; }
.case-top .review-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--glass-border); background: var(--bg-elevated); flex-shrink: 0; }
.case-meta { flex: 1; min-width: 0; padding-right: 3.25rem; }
/* Flex row (not inline text) so the package pill sits cleanly next to
   the name when there's room, or wraps directly below it with the same
   `gap` spacing either way — no more relying on a manual translateY
   nudge to line the pill up with the text baseline. */
.case-meta .review-author { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--dark-title); margin-bottom: .3rem; line-height: 1.3; }

.case-tags { font-size: .82rem; line-height: 1.3; color: var(--text-color-light); opacity: .95; }
@media (max-width: 767px) {
    .case-tag-prefix { display: none; }

    .verified-badge { display: none; }

    .case-top .package-pill {
        position: absolute;
        top: -7px;
        right: -10px;
        margin: 0;
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 0.15rem 0.5rem;
    }

    .case-meta .review-author { padding-right: 5rem; }
    /* the right padding is room for the verified badge, hidden on phones */
    .case-meta { padding-right: 0; }
    .case-tags { margin-top: -1rem; }

}
.verified-badge { position: absolute; top: -7px; right: -10px; background: var(--verified-bg); color: var(--verified-text); font-weight: 700; padding: 0.2rem .55rem; border-radius: 999px; font-size: .68rem; border: 1px solid var(--verified-border); box-shadow: 0 2px 6px var(--verified-shadow); white-space: nowrap; }

.case-body { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 0.25rem; }
.screenshot-thumb { width: 100%; aspect-ratio: 16 / 9; height: auto; min-width: auto; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border); flex-shrink: 0; background: linear-gradient(180deg, var(--screenshot-gradient-start) 0%, var(--screenshot-gradient-end) 100%); }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-copy { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.outcome-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.outcome-pill { background: var(--outcome-bg); color: var(--outcome-text); padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid var(--outcome-border); box-shadow: 0 2px 6px var(--outcome-shadow); }
.case-source { font-size: .85rem; color: var(--text-color-light); }
.client-quote { margin: 0; padding-left: .75rem; border-left: 3px solid var(--accent-emerald); color: var(--text-color); background: var(--quote-bg); padding: .6rem .75rem; border-radius: 6px; font-style: normal; }
.quote-author { display: block; margin-top: .6rem; font-weight: 700; font-size: .9rem; color: var(--text-color); }
.case-ctas { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin-top: .5rem; }
.case-ctas .btn { padding: 10px 18px; font-size: .95rem; border-radius: 10px; }
.case-ctas .btn-primary {
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F0 100%);
    color: #062018;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
}
.case-ctas .btn-primary:hover, .case-ctas .btn-primary:focus {
    background: linear-gradient(180deg, #FFFFFF 0%, #E4E9E6 100%);
    color: #051912;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(16, 185, 129, 0.28);
}

.review-prompt { text-align: center; margin-top: 4rem; margin-bottom: -2rem; }
.review-prompt a { color: var(--accent-mint); text-decoration: none; font-weight: 520; font-size: 17px; }
.end-of-reviews-marker { display: flex; align-items: center; text-align: center; color: var(--text-color-light); margin-top: 4rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.end-of-reviews-marker::before, .end-of-reviews-marker::after { content: ''; flex-grow: 1; border-bottom: 1px solid var(--glass-border); }
.end-of-reviews-marker span { padding: 0 1.5rem; }

#pricing { padding: 6rem 0; background-color: transparent; }
.billing-cycle-toggle {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: var(--bg-color-darker);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
}

.billing-period {
    white-space: pre-line;
}

.toggle-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    background: var(--primary-gradient);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
    transition: transform var(--transition-spring), width var(--transition-spring), background var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 0;
}

/* Matches the Individual/Bespoke card's own violet treatment, instead
   of the emerald used for the One-Time/Monthly periods. */
.billing-cycle-toggle.is-individual .toggle-indicator {
    background: var(--bespoke-gradient);
    box-shadow: 0 4px 16px var(--bespoke-glow);
}

/* Monthly gets squared-off left/right edges instead of the default
   fully-rounded pill, so it visually reads as distinct from One-Time. */
.billing-cycle-toggle.is-plan .toggle-indicator {
    border-radius: 0;
}

.toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color-light);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.toggle-btn.active {
    color: var(--text-on-accent);
}

.plan-subtoggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.plan-subtoggle[hidden] { display: none; }
/* While the row opens/closes its height is animated; clip the overflow
   but leave room for the active button's glow. */
.plan-subtoggle.is-animating { overflow: clip; overflow-clip-margin: 24px; }

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.filter-btn {
    border: 1px solid var(--glass-border);
    background: rgba(16, 185, 129, 0.05);
    color: var(--text-color-light);
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.filter-btn.is-default {
    border-color: var(--accent-emerald);
    color: var(--accent-mint);
}
.filter-btn:hover:not(.active) {
    border-color: var(--accent-emerald);
    color: var(--accent-mint);
}

.subtoggle-btn {
    border: 1px solid var(--glass-border);
    background: rgba(16, 185, 129, 0.05);
    color: var(--text-color-light);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.subtoggle-btn.active {
    background: var(--primary-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.subtoggle-btn:hover:not(.active) {
    border-color: var(--accent-emerald);
    color: var(--accent-mint);
}

.pricing-cards-grid.individual-mode {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Bespoke / Individual tier — deliberately breaks into violet, the
   one intentional exception to the emerald palette, so it reads as
   the singular "by invitation" focal point of the whole section. */
.pricing-card.individual-plan {
    background: var(--bespoke-bg);
    border: 2px solid var(--bespoke-border);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.22), 0 30px 70px -18px rgba(0, 0, 0, 0.6), 0 12px 40px -8px var(--bespoke-glow);
    animation: bespokePulse 4.5s ease-in-out infinite;
}
.pricing-card.individual-plan .plan-title,
.pricing-card.individual-plan .price,
.pricing-card.individual-plan .feature-group-label { color: var(--bespoke-text-main); }
/* The base `.price` size (2.9rem) is tuned for a short number/label
   like "Custom Quote" — the ka/ru copy for this card is a longer text
   phrase instead of a number, and at that size it was wider than the
   card, so it overflowed and got clipped by `.pricing-card`'s
   `overflow: hidden` (word ending truncated). Smaller + wrap-safe. */
.pricing-card.individual-plan .price {
    font-size: clamp(1.4rem, 4.2vw, 1.9rem);
    overflow-wrap: break-word;
}
.pricing-card.individual-plan .billing-period,
.pricing-card.individual-plan .feature-item { color: var(--bespoke-text-light); }
.pricing-card.individual-plan .feature-group-label { border-bottom-color: rgba(216, 180, 254, 0.22); }
.pricing-card.individual-plan .feature-item i { color: var(--bespoke-accent-light); }
.pricing-card.individual-plan::before { background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(168, 85, 247, 0.32), transparent 70%); }
.pricing-card.individual-plan .get-started-btn {
    background: var(--bespoke-gradient);
    background-size: 200% auto;
    color: #FBF9FF;
}
.pricing-card.individual-plan .get-started-btn:hover { background-position: right center; }

@keyframes bespokePulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.22), 0 30px 70px -18px rgba(0, 0, 0, 0.6), 0 12px 40px -8px var(--bespoke-glow); }
    50% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 30px 70px -18px rgba(0, 0, 0, 0.6), 0 16px 54px -6px rgba(168, 85, 247, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card.individual-plan { animation: none; }
}

.pricing-cards-grid {
    display: grid;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    grid-template-columns: 1fr;
}

@keyframes text-update {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.price.updating,
.billing-period.updating { animation: text-update 0.3s ease-out; }

.pricing-card.hidden { display: none; }

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-md), var(--shadow-card-highlight);
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.pricing-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(16, 185, 129, 0.18), transparent 70%); transition: opacity 0.5s ease; z-index: 0; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); border-color: var(--verified-border); }
.pricing-card:hover::before { opacity: 1; }
.pricing-card.most-popular { border: 1px solid rgba(16, 185, 129, 0.5); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 25px 60px -15px rgba(16, 185, 129, 0.35); }

.popular-tag { position: absolute; top: 27px; right: -45px; background: var(--primary-gradient); color: var(--text-on-accent); padding: 6px 40px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; box-shadow: var(--shadow-sm); transform: rotate(45deg); text-align: center; z-index: 1; }
.pricing-card .plan-title { font-size: 1.7rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark-title); text-align: center; position: relative; }
.pricing-card .price { font-size: 2.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; text-align: center; position: relative; }
.pricing-card .billing-period { font-size: 0.95rem; color: var(--text-color-light); margin-bottom: 2rem; font-style: normal; text-align: center; position: relative; }
.pricing-card .features-list { list-style: none; padding: 0; position: relative; }
.pricing-card .feature-group-label { overflow-wrap: break-word; hyphens: auto; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--text-main); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.6rem; }
.pricing-card .feature-group-label:first-of-type { margin-top: 0; }
.pricing-card .feature-item { overflow-wrap: break-word; font-size: 1rem; margin-bottom: 0.85rem; display: flex; align-items: flex-start; gap: 10px; color: var(--text-color-light); line-height: 1.5; }
.pricing-card .feature-item i { color: var(--success); font-size: 1rem; margin-top: 0.2rem; flex-shrink: 0; }
.pricing-card .feature-item.fail i { color: var(--error); }
.pricing-card .get-started-btn { width: 100%; text-align: center; position: relative; }

/* "See Works" is a narrower tab tucked under the fully rounded "Get
   started" button: no top border (its sides start behind the button), a
   thin violet frame (the Individual card's accent) on the other three
   sides, transparent inside. */
.card-actions { position: relative; display: flex; flex-direction: column; align-items: center; }
.card-actions .get-started-btn { display: block; z-index: 1; }
.see-works-btn {
    --tuck: 12px;
    display: block;
    width: 84%;
    margin-top: calc(-1 * var(--tuck));
    padding: calc(var(--tuck) + 0.45rem) 0.75rem 0.5rem;
    background: transparent;
    border: 1.5px solid var(--bespoke-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: var(--bespoke-accent-light);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.see-works-btn:hover,
.see-works-btn:focus-visible { color: #F5EDFF; border-color: var(--bespoke-accent-light); background-color: rgba(168, 85, 247, 0.08); }
/* Premium has no examples yet: a "coming soon" bubble above the buttons */
.see-works-soon {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.75rem);
    z-index: 2;
    width: max-content;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: #2A1052;
    border: 1px solid var(--bespoke-border);
    color: #F5EDFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 30px -10px var(--bespoke-glow);
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.see-works-soon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #2A1052;
}
.see-works-soon:empty { display: none; }
.see-works-soon.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* ── Mini: the entry package ──────────────────────────────────────
   Last in the markup, so it comes after the three main packages
   everywhere. Phones: a normal card (the three wrappers dissolve; order:
   price → promo → what's included → buttons). From 768px: a full-width
   row under the three main packages — price | what's included, promo +
   buttons below; from 992px all three side by side in one short row. The
   promo parts show only while `.promo-active` (set by script.js until
   PRICING.miniPromoEnds). */
.pricing-card.mini .mini-summary,
.pricing-card.mini .mini-details,
.pricing-card.mini .mini-cta { display: contents; }
.pricing-card.mini .mini-promo { order: 1; }
.pricing-card.mini .features-list { order: 2; margin: 0 0 2rem; }
.pricing-card.mini .card-actions { order: 3; }

.price-old { text-align: center; font-size: 1.15rem; color: var(--text-color-light); margin-bottom: 0.15rem; position: relative; }
.price-old s { text-decoration-thickness: 2px; }
.mini-promo {
    position: relative;
    text-align: center;
    margin: -1rem 0 2rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.07);
}
.mini-promo-deadline { color: var(--accent-mint); font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.mini-promo-deadline i { margin-right: 0.3rem; }
/* "• Ends in 3d 4h" on the same line (filled in by script.js) */
/* inline-block: moves to its own line as a whole when it doesn't fit */
.mini-promo-countdown { display: inline-block; max-width: 100%; color: var(--text-main); font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-promo-countdown:not(:empty)::before { content: '•'; margin: 0 0.45em; color: var(--accent-mint); }
.mini-promo-lock { color: var(--text-color-light); font-size: 0.85rem; line-height: 1.5; margin-top: 0.35rem; }
.pricing-card.mini:not(.promo-active) .price-old,
.pricing-card.mini:not(.promo-active) .mini-promo { display: none; }
/* Very small phones: drop the grid's extra side padding (the container
   already has 2rem) so card text, e.g. "დასრულებამდე:", has room. */
@media (max-width: 400px) {
    .pricing-cards-grid { padding-left: 0; padding-right: 0; }
    .mini-promo { padding: 0.75rem 0.6rem; }
}
/* stronger than the `display: grid` below (hidden on the "Individual" tab) */
.pricing-card.mini.hidden { display: none; }

@media (min-width: 768px) {
    .pricing-card.mini {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 1.75rem 3rem;
        align-items: center;
    }
    .pricing-card.mini .mini-summary { display: flex; flex-direction: column; }
    .pricing-card.mini .mini-details { display: block; position: relative; }
    .pricing-card.mini .mini-cta { display: flex; flex-direction: column; grid-column: 1 / -1; position: relative; }
    .pricing-card.mini .billing-period { margin-bottom: 0; }
    .pricing-card.mini .features-list { margin: 0; }
    .pricing-card.mini .mini-promo { margin: 0 0 1.25rem; }
}
@media (min-width: 992px) {
    .pricing-card.mini {
        /* clear of the Pro card's scale(1.05) above it */
        margin-top: 1.25rem;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
        gap: 2.5rem;
    }
    .pricing-card.mini .mini-cta { grid-column: auto; }
}
.book-a-call-btn-wrapper { margin-top: 4rem; text-align: center; }

/* ── Works page: example sites per package ─────────────────────── */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.work-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card-highlight);
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}
.work-card:hover,
.work-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--verified-border); }
.work-card[hidden] { display: none; }
.work-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elevated); border-bottom: 1px solid var(--glass-border); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform var(--transition-smooth); }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-info { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.work-title { font-weight: 600; color: var(--dark-title); line-height: 1.4; overflow-wrap: break-word; }
.work-link { margin-top: auto; color: var(--accent-mint); font-size: 0.9rem; font-weight: 600; }
.work-link i { font-size: 0.75em; margin-left: 0.3rem; transition: transform var(--transition-fast); }
.work-card:hover .work-link i { transform: translateX(3px); }
.book-a-call { font-size: 1.1rem; font-weight: 600; }
.pricing-trust-snippet { margin-top: 2rem; color: var(--text-color-light); text-align: center; font-size: 1rem; }

.form-group { width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.contact-info { text-align: center; }
.contact-info h3 { font-size: 2rem; color: var(--dark-title); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-color-light); margin-bottom: 2rem; }
.contact-info .info-item { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.info-item i { font-size: 1.5rem; color: var(--accent-emerald); width: 25px; text-align: center; }
.info-item a, .info-item span { color: var(--text-color); text-decoration: none; font-size: 1.1rem; }
.info-item a:hover { color: var(--accent-mint); }
/* email + a small "new projects" / "support" label under it */
.info-item .info-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; text-align: left; }
.info-item .info-note { color: var(--text-color-light); font-size: 0.85rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background-color: var(--bg-color-darker); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-main); transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-color-light); opacity: 0.75; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-emerald); background-color: var(--bg-elevated); outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }
.form-button-group { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1rem; }

.review-page-section { min-height: 100vh; padding: 6rem 2rem; display: flex; align-items: center; justify-content: center; }
/* Review page: heading + intro on the left, the form on the right (stacked
   below 992px). The form sits directly on the page, no card around it. */
.review-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.review-intro { text-align: center; }
.review-page-section .section-title { margin-bottom: 1rem; }
.review-intro .review-form-subtitle { max-width: 460px; margin: 0 auto; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6; color: var(--text-color-light); }
@media (min-width: 992px) {
    .review-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 4.5rem; align-items: center; }
    .review-intro, .review-page-section .section-title { text-align: left; }
    .review-intro .review-form-subtitle { margin: 0; }
}
.horizontal-form .form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.horizontal-form .textarea-group { grid-column: 1 / -1; }
.horizontal-form .input-group { position: relative; }
.horizontal-form .input-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--border-active); z-index: 1; transition: color var(--transition-fast); }
.horizontal-form .input-group input, .horizontal-form .input-group textarea { width: 100%; padding: 1.1rem 1.1rem 1.1rem 3.5rem; background: var(--bg-color-darker); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-main); font-size: 1rem; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast); }
.horizontal-form .input-group input::placeholder, .horizontal-form .input-group textarea::placeholder { color: var(--text-color-light); opacity: 0.75; }
.horizontal-form .input-group:focus-within i { color: var(--accent-mint); }
.horizontal-form .input-group input:focus, .horizontal-form .input-group textarea:focus { outline: none; border-color: var(--accent-emerald); background-color: var(--bg-elevated); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }

.file-upload-label { position: relative; display: flex; align-items: center; width: 100%; padding: 1.1rem 1.1rem 1.1rem 3.5rem; background: var(--bg-color-darker); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-color-light); font-size: 1rem; cursor: pointer; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.file-upload-label:hover { border-color: var(--border-active); }
#review-logo:focus + .file-upload-label { outline: none; border-color: var(--accent-emerald); background-color: var(--bg-elevated); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }
#review-logo:focus + .file-upload-label i { color: var(--accent-mint); }

#logo-upload-wrapper { position: relative; min-height: 60px; }
.image-preview-container { display: none; position: relative; width: 60px; height: 60px; }
.image-preview { width: 100%; height: 100%; border-radius: 8px; border: 1px solid var(--glass-border); object-fit: cover; }
.remove-image-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background-color: var(--bg-elevated); color: var(--text-main); border: 2px solid var(--bg-color-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform var(--transition-fast), background-color var(--transition-fast); }
.remove-image-btn:hover { transform: scale(1.1); background-color: var(--danger-red); }
#logo-upload-wrapper.preview-visible .image-preview-container { display: block; }
#logo-upload-wrapper.preview-visible .file-upload-label { display: none; }

.file-upload-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.horizontal-form .textarea-group textarea { resize: vertical; min-height: 80px; }
.horizontal-form .star-rating-group { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1rem; padding: 1.1rem 1.5rem; background: var(--bg-color-darker); border: 1px solid var(--glass-border); border-radius: 10px; }
.horizontal-form .star-rating-system { display: flex; flex-direction: row-reverse; }
.horizontal-form .star-rating-system input[type="radio"] { display: none; }
.horizontal-form .star-rating-system label { font-size: 2rem; color: var(--star-empty); cursor: pointer; margin: 0 0.1rem; transition: color 0.2s ease, transform 0.2s ease; }
.horizontal-form .star-rating-system label:hover, .horizontal-form .star-rating-system label:hover ~ label, .horizontal-form .star-rating-system input:checked ~ label { color: var(--star-active); transform: scale(1.1); }
.horizontal-form .form-submit-btn { width: 100%; padding: 1rem; font-size: 1.1rem; }

.review-success-message { text-align: center; padding: 2rem; }
.review-success-message i { font-size: 3rem; color: var(--accent-emerald); margin-bottom: 1.5rem; display: inline-block; animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.review-success-message h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--dark-title); }
.review-success-message p { margin-bottom: 2rem; opacity: 0.85; color: var(--text-color-light); }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.site-footer { padding: 6rem 0 3rem 0; background-color: rgba(2, 9, 7, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; text-align: center; }
.footer-col h4 { color: var(--dark-title); margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.5px; }
.footer-col h4:not(.logo) { opacity: 0.9; }
.footer-col .logo { font-size: 1.8rem; margin-bottom: 1rem; opacity: 1; justify-content: center; }
.footer-col p { color: var(--text-color-light); line-height: 1.8; word-break: break-word; }
.footer-col .social-icons { display: flex; gap: 0.6rem; justify-content: center; }
.footer-col .social-icons a { color: var(--text-color); display: flex; align-items: center; justify-content: center; font-size: 1rem; width: 42px; height: 42px; border: 1px solid var(--glass-border); border-radius: 50%; transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-spring); background-color: rgba(16, 185, 129, 0.05); }
.footer-col .social-icons a:hover { color: var(--text-on-accent); background: var(--primary-gradient); border-color: transparent; transform: translateY(-3px); }

/* Social icons → divider: 2.5rem on phones, 3.5rem from 768px. */
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; margin-top: 2.5rem; text-align: center; color: var(--text-color-light); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-bottom p { text-wrap: balance; }
.footer-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-legal-links a { color: var(--text-color-light); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color var(--transition-fast); }
.footer-legal-links a:hover { color: var(--accent-mint); }
.centered-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-height)); justify-content: center; }
/* Stretch to the screen width: as a flex item with auto side margins the
   container otherwise sizes to its content, which on small phones was
   wider than the screen (the all-reviews cards got cut off on the right). */
.centered-page > .container { width: 100%; }

/* ================================== */
/* === All Reviews Page Styles ====== */
/* ================================== */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; min-height: 24px; flex-wrap: wrap; gap: 1rem; }
.page-header .section-title { margin-bottom: 0; text-align: left; font-size: clamp(2rem, 4vw, 2.5rem); }
.all-reviews-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }

.package-pill { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; border: 1px solid transparent; }
.package-pill.pro-package { background: var(--pro-package-bg); color: var(--pro-package-text); border-color: var(--pro-package-border); }
.package-pill.starter-package { background: var(--starter-package-bg); color: var(--starter-package-text); border-color: var(--starter-package-border); }

/* ================================== */
/* === TERMS / LEGAL PAGE =========== */
/* ================================== */
.legal-header { padding: 6.5rem 0 2.5rem; text-align: center; }
.legal-eyebrow { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-mint); margin-bottom: 1rem; }
.legal-header h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); color: var(--dark-title); margin-bottom: 0.75rem; }
.legal-header p { color: var(--text-color-light); max-width: 560px; margin: 0 auto; }
@media (min-width: 768px) { .legal-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); } }
.legal-page-section { padding-bottom: 6rem; }
.legal-content { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.legal-clause { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-card-highlight); transition: border-color var(--transition-fast), box-shadow var(--transition-smooth); }
.legal-clause:hover { border-color: var(--verified-border); box-shadow: var(--shadow-md), var(--shadow-card-highlight); }
.legal-clause-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.legal-clause-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-gradient); color: var(--text-on-accent); font-weight: 700; font-family: var(--font-heading); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.legal-clause h2 { font-size: clamp(1.1rem, 4.6vw, 1.3rem); min-width: 0; overflow-wrap: break-word; color: var(--text-main); font-weight: 600; line-height: 1.4; }
.legal-clause p { color: var(--text-color); line-height: 1.9; font-size: 1.02rem; }
.legal-footnote { text-align: center; color: var(--text-color-light); font-size: 0.9rem; margin-top: 1rem; }

/* =============================== */
/* === RESPONSIVE MEDIA QUERIES ==== */
/* =============================== */
@media (max-width: 767px) {
    .carousel-item {
        flex: 0 0 75%;
        height: 280px;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-btn {
        display: flex;
        width: 38px;
        height: 38px;
        top: auto;
        bottom: 5px;
        transform: none;
    }

    .carousel-btn--prev {
        left: 30px;
    }

    .carousel-btn--next {
        right: 30px;
    }

    .carousel-btn:hover {
        transform: scale(1.1);
    }

    .review-page-section { padding: 4rem 0rem; }
    .horizontal-form .form-grid { grid-template-columns: 1fr; }
    .horizontal-form .star-rating-group { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 420px) {
    /* Stay horizontal instead of stacking: the toggle spans the full
       container width and each button takes an equal flex share, so
       three buttons + the sliding indicator still fit at iPhone SE's
       375px without pushing the row wider than the viewport.
       `min-width: 0` stops a longer translated label from forcing its
       own button (and therefore the whole row) wider than its share. */
    .billing-cycle-toggle { width: 100%; padding: 5px; }
    .toggle-btn { flex: 1 1 auto; min-width: 0; text-align: center; padding: 0.55rem 0.4rem; font-size: 0.78rem; white-space: normal; line-height: 1.2; }
}

@media (min-width: 768px) {
    .case-meta { padding-right: 6rem; }
    section { padding: 6rem 0; }

    .case-body { flex-direction: row; }
    .screenshot-thumb { width: 240px; min-width: 240px; aspect-ratio: 16 / 9; height: auto; }
    .verified-badge { top: 0.25rem; right: 0.25rem; padding: 0.25rem .6rem; font-size: .8rem; }
    .case-top { align-items: center; }
    .case-ctas { flex-direction: row; }
    .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
    .contact-info { text-align: left; }
    .contact-info .info-item { justify-content: flex-start; }
    .form-button-group { flex-direction: row; }
    .horizontal-form .form-grid { grid-template-columns: repeat(2, 1fr); }
    /* as tall as the text inputs beside it, so the row does not stretch
       the website field (its icon sat below the text) */
    .horizontal-form .star-rating-group { flex-direction: row; padding-top: 0.45rem; padding-bottom: 0.45rem; }
    .horizontal-form .star-rating-system label { font-size: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
    .footer-col .social-icons { justify-content: flex-start; }
    .footer-col .logo { justify-content: flex-start; }
    .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 3.5rem; }
}

@media (min-width: 992px) {
    /* Scale only (no extra width): scale() grows the card evenly from its
       center, so the gaps on both sides of the Pro card stay equal. */
    .pricing-card.most-popular { transform: scale(1.05); }
    .hamburger-menu { display: none; }
    .nav-links, .language-selector { display: flex; align-items: center; gap: 2rem; }
    .language-selector .nav-links { gap: 0; }
    /* The Pro card's scale(1.05) grows it ~25px upward from its own
       center, eating into the gap below the billing toggle — the extra
       top padding keeps a clear gap above it. Padding, not margin: a margin
       here collapsed with the payment-plan row's bottom margin, so when that
       row closed the cards finished its slide with a sudden 24px jump. */
    .pricing-cards-grid { grid-template-columns: repeat(3, 1fr); padding-top: 1.75rem; }
    .plan-subtoggle { margin-bottom: 1.5rem; }
    .footer-grid { grid-template-columns: 1.5fr 1.5fr 1fr; }
    .all-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.back-link:hover { color: var(--accent-mint); border-color: var(--accent-emerald); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ================================== */
/* ==========Go Back Link   ========= */
/* ================================== */
.page-view .back-link, .standalone-back-link {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1.5rem;
    z-index: var(--z-back-link);
    background: var(--back-link-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view .back-link:hover, .standalone-back-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    color: var(--accent-mint);
    border-color: var(--accent-emerald);
}

/* terms.html's header now has a language switcher in the same top-right
   corner this link would otherwise occupy — move it to the left so the
   open dropdown never overlaps it. */
.standalone-back-link {
    left: 1.5rem;
    right: auto;
}



@media (min-width: 768px) {
    .hero-video-wrap--mobile-only {
        display: none;
    }
}