/* ============================================================
   Everwick — Global Stylesheet
   Modern dark IT theme · gradients · glass · motion
   ============================================================ */

:root {
    --bg: #070b16;
    --bg-2: #0b1122;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eaf0ff;
    --text-muted: #9aa7c7;
    --text-dim: #6c7998;

    --brand: #4f7cff;
    --brand-2: #7c4dff;
    --accent: #23e0c8;
    --accent-2: #ff5da2;
    --warn: #ffb545;

    --grad-brand: linear-gradient(120deg, #4f7cff 0%, #7c4dff 55%, #23e0c8 130%);
    --grad-text: linear-gradient(100deg, #8fb0ff 0%, #23e0c8 60%, #b18cff 120%);
    --grad-card: linear-gradient(160deg, rgba(79,124,255,0.10), rgba(124,77,255,0.02));

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 24px 60px -20px rgba(6, 12, 30, 0.8);
    --shadow-glow: 0 0 0 1px rgba(79,124,255,0.25), 0 18px 50px -14px rgba(79,124,255,0.45);

    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    color-scheme: dark;
}

/* ============================================================
   Light theme
   ============================================================ */
:root[data-theme="light"] {
    --bg: #eef1fa;
    --bg-2: #ffffff;
    --surface: rgba(16, 24, 48, 0.035);
    --surface-2: rgba(16, 24, 48, 0.06);
    --border: rgba(16, 24, 48, 0.10);
    --border-strong: rgba(16, 24, 48, 0.18);
    --text: #131a2e;
    --text-muted: #4a5670;
    --text-dim: #78859f;

    --grad-card: linear-gradient(160deg, rgba(79,124,255,0.10), rgba(124,77,255,0.03));
    --grad-text: linear-gradient(100deg, #3a63e6 0%, #12b5a0 55%, #7b45e0 120%);
    --shadow: 0 24px 60px -24px rgba(30, 50, 100, 0.26);
    --shadow-glow: 0 0 0 1px rgba(79,124,255,0.28), 0 18px 50px -18px rgba(79,124,255,0.32);

    color-scheme: light;
}

/* Scoped overrides for elements that hardcode dark surfaces */
:root[data-theme="light"] body::before {
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(79,124,255,0.14), transparent 60%),
        radial-gradient(700px 500px at 100% 0%, rgba(124,77,255,0.12), transparent 55%),
        radial-gradient(600px 600px at 50% 120%, rgba(35,224,200,0.10), transparent 60%);
}
:root[data-theme="light"] .orb { opacity: 0.16; }
:root[data-theme="light"] .orb-3 { opacity: 0.10; }
:root[data-theme="light"] .site-header { background: rgba(255,255,255,0.62); }
:root[data-theme="light"] .site-header.scrolled { background: rgba(255,255,255,0.92); }
:root[data-theme="light"] .site-footer { background: rgba(255,255,255,0.6); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: rgba(255,255,255,0.85); }
:root[data-theme="light"] .float-badge { background: rgba(255,255,255,0.92); }
:root[data-theme="light"] .search-backdrop { background: rgba(20,30,60,0.35); }
:root[data-theme="light"] .search-kbd,
:root[data-theme="light"] .search-foot kbd,
:root[data-theme="light"] .search-close kbd { background: rgba(16,24,48,0.05); }
/* Keep the hero "code" card dark so the terminal stays readable in both themes */
:root[data-theme="light"] .hero-card {
    background: linear-gradient(160deg, #0b1122, #0d1428);
    border-color: rgba(255,255,255,0.09);
    color: #eaf0ff;
}

/* Smooth cross-fade when switching themes */
body, .site-header, .site-footer, .card, .price-card, .nav-list, .search-panel, .field input, .field select, .field textarea {
    transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

/* While the theme is changing, drop backdrop-filter/blur so the compositor
   can't leave stale "ghost" tiles behind the header and background orbs. */
:root.theme-switching .site-header,
:root.theme-switching .float-badge,
:root.theme-switching .search-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
:root.theme-switching .orb {
    animation-play-state: paused;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(79,124,255,0.16), transparent 60%),
        radial-gradient(700px 500px at 100% 0%, rgba(124,77,255,0.14), transparent 55%),
        radial-gradient(600px 600px at 50% 120%, rgba(35,224,200,0.10), transparent 60%);
    z-index: -3;
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

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

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

/* ---------- Floating background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 18s var(--ease) infinite; }
.orb-1 { width: 460px; height: 460px; background: #4f7cff; top: -120px; left: -80px; }
.orb-2 { width: 520px; height: 520px; background: #7c4dff; bottom: -160px; right: -120px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #23e0c8; top: 40%; left: 55%; animation-delay: -11s; opacity: 0.28; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(0.96); }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 22, 0.55);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
    background: rgba(7, 11, 22, 0.9);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-name { letter-spacing: -0.03em; }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list a {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}
.nav-list a:hover { color: var(--text); background: var(--surface); }
.nav-list a.active { color: var(--text); }
.nav-list a.active::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
    background: var(--grad-brand); border-radius: 2px;
}
.nav-cta {
    background: var(--grad-brand);
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 28px -10px rgba(79,124,255,0.7);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Search trigger button ---------- */
.search-trigger {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 12px 8px 13px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: .25s var(--ease);
}
.search-trigger:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.search-trigger-label { line-height: 1; }
.search-kbd, .search-foot kbd, .search-close kbd {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
    padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); color: var(--text-dim); line-height: 1;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; transition: .25s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { transition: transform .4s var(--ease), opacity .2s var(--ease); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
.theme-toggle:hover svg { transform: rotate(20deg) scale(1.08); }


/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; }
.search-overlay[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(4,7,16,0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s var(--ease); }
.search-overlay.open .search-backdrop { opacity: 1; }
.search-panel {
    position: relative; width: min(660px, calc(100vw - 32px)); margin-top: 12vh;
    background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    opacity: 0; transform: translateY(-14px) scale(0.98); transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.search-overlay.open .search-panel { opacity: 1; transform: none; }

.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.search-input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-family: var(--font-body); font-size: 1.08rem; }
.search-input::placeholder { color: var(--text-dim); }
.search-close { background: none; border: 0; cursor: pointer; padding: 0; }

.search-results { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.search-hint, .search-empty { padding: 26px 18px; color: var(--text-dim); font-size: 0.95rem; text-align: center; }
.search-result {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tag title" "tag snip";
    gap: 2px 12px; padding: 12px 14px; border-radius: 12px; align-items: start;
    transition: background .15s var(--ease); cursor: pointer;
}
.search-result:hover, .search-result.active { background: var(--surface-2); }
.search-result.active { box-shadow: inset 0 0 0 1px var(--border-strong); }
.sr-tag {
    grid-area: tag; align-self: center; font-family: var(--font-head); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
    background: rgba(35,224,200,0.1); border: 1px solid rgba(35,224,200,0.22);
    padding: 5px 9px; border-radius: 8px; white-space: nowrap;
}
.sr-title { grid-area: title; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--text); }
.sr-snippet { grid-area: snip; font-size: 0.85rem; color: var(--text-dim); line-height: 1.45; }
.search-results mark { background: rgba(79,124,255,0.28); color: #dbe6ff; border-radius: 3px; padding: 0 2px; }
.search-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.78rem; }
.search-foot span { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 720px) {
    .search-trigger-label, .search-kbd { display: none; }
    .search-trigger { padding: 8px; margin-right: 2px; }
    .search-panel { margin-top: 8vh; }
    .search-foot { display: none; }
}


/* ============================================================
   Buttons & chips
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 12px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
    cursor: pointer; border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 16px 40px -14px rgba(79,124,255,0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -16px rgba(124,77,255,0.75); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); border-color: var(--brand); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 100px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
    letter-spacing: 0.02em;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 88px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; margin: 22px 0 22px; }
.hero p.lead { font-size: 1.16rem; color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: 0.86rem; color: var(--text-dim); }

.hero-visual { position: relative; }
.hero-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.hero-visual .float-badge {
    position: absolute; padding: 12px 16px; border-radius: 14px;
    background: rgba(11,17,34,0.85); border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px); box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600;
    animation: float 7s var(--ease) infinite;
}
.float-badge .ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--grad-brand); }
.float-badge.b1 { top: -18px; right: 18px; }
.float-badge.b2 { bottom: -18px; left: -22px; animation-delay: -3s; }

/* Terminal mock inside hero card */
.terminal { font-family: 'SF Mono', ui-monospace, monospace; font-size: 0.82rem; }
.terminal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; color: var(--text-dim); font-size: 0.75rem; }
.terminal-line { display: flex; gap: 10px; padding: 3px 0; opacity: 0; transform: translateY(6px); animation: lineIn .5s var(--ease) forwards; }
.terminal-line .pfx { color: var(--accent); }
.terminal-line .k { color: #8fb0ff; }
.terminal-line .ok { color: var(--accent); }
.terminal-line:nth-child(2) { animation-delay: .3s; }
.terminal-line:nth-child(3) { animation-delay: .7s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.5s; }
.terminal-line:nth-child(6) { animation-delay: 1.9s; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Marquee (trusted logos)
   ============================================================ */
.marquee { padding: 40px 0; border-block: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text-dim); white-space: nowrap; letter-spacing: -0.01em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   Cards grids
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card::before {
    content: ""; position: absolute; inset: 0;
    background: var(--grad-card); opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card .ic-box {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-card); border: 1px solid var(--border-strong); margin-bottom: 20px;
    transition: transform .4s var(--ease);
}
.card:hover .ic-box { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.card .card-link:hover { color: var(--accent); }

/* feature list */
.feature-list { display: grid; gap: 12px; margin-top: 6px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.96rem; }
.feature-list .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(35,224,200,0.14); color: var(--accent); display: grid; place-items: center; font-size: 0.75rem; margin-top: 2px; }

/* ============================================================
   Industries strip
   ============================================================ */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ind-item {
    padding: 22px 16px; border-radius: var(--radius-sm); text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    transition: .35s var(--ease); cursor: default;
}
.ind-item:hover { background: var(--surface-2); transform: translateY(-4px); border-color: var(--brand); }
.ind-item .ic { font-size: 1.6rem; margin-bottom: 8px; }
.ind-item span { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }

/* ============================================================
   Process timeline
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 8px;
}
.step .bar { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--border); overflow: hidden; }
.step .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--grad-brand); }
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band { background: var(--grad-card); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-big b { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stat-big span { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; }
.pricing-toggle button { padding: 9px 20px; border-radius: 100px; border: 0; background: none; color: var(--text-muted); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: .3s var(--ease); }
.pricing-toggle button.active { background: var(--grad-brand); color: #fff; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 34px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.featured { border-color: transparent; background: var(--grad-card); box-shadow: var(--shadow-glow); }
.price-card.featured::after {
    content: "Most popular"; position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
    background: var(--grad-brand); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 5px 42px; font-family: var(--font-head);
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price-card .tier-desc { color: var(--text-dim); font-size: 0.9rem; min-height: 42px; }
.price-amount { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 4px; }
.price-amount .cur { font-size: 1.2rem; color: var(--text-muted); font-family: var(--font-head); font-weight: 600; }
.price-amount .num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.price-amount .per { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 6px; }
.price-card .feature-list { margin: 22px 0 26px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.price-table th { font-family: var(--font-head); color: var(--text); font-weight: 600; }
.price-table td.price { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.price-table tbody tr:hover, .price-table tr:hover { background: var(--surface); }
.price-note { color: var(--text-dim); font-size: 0.86rem; margin-top: 16px; }

/* ============================================================
   Testimonials
   ============================================================ */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.quote-card p { font-size: 1.02rem; color: var(--text); margin-bottom: 20px; }
.quote-card .who { display: flex; align-items: center; gap: 13px; }
.quote-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote-card .who b { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.quote-card .who span { font-size: 0.82rem; color: var(--text-dim); }
.stars { color: var(--warn); letter-spacing: 2px; margin-bottom: 14px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; }
.cta-inner {
    background: var(--grad-card); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 66px 40px; position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Forms
   ============================================================ */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; font-family: var(--font-head); color: var(--text-muted); }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 11px;
    background: rgba(7,11,22,0.6); border: 1px solid var(--border-strong); color: var(--text);
    font-family: var(--font-body); font-size: 0.96rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,124,255,0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,93,162,0.14); }
.field .err-msg { color: var(--accent-2); font-size: 0.8rem; display: none; }
.field.error .err-msg { display: block; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-muted); margin: 4px 0 22px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }

.alert { padding: 15px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 0.94rem; display: flex; gap: 10px; align-items: center; }
.alert-success { background: rgba(35,224,200,0.16); border: 1px solid rgba(20,160,140,0.45); color: #0b6b5c; }
.alert-error { background: rgba(255,93,162,0.14); border: 1px solid rgba(200,40,110,0.45); color: #a11b58; }

/* contact info side */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-item .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-card); border: 1px solid var(--border-strong); display: grid; place-items: center; }
.info-item b { font-family: var(--font-head); display: block; margin-bottom: 3px; }
.info-item span { color: var(--text-muted); font-size: 0.94rem; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { padding: 70px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 16px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }

/* breadcrumb / accordion for FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .sign { transition: transform .3s var(--ease); color: var(--brand); font-size: 1.3rem; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.96rem; }

/* value/about grid */
.about-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--grad-card); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 66px 0 30px; margin-top: 40px; background: rgba(7,11,22,0.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 0.94rem; max-width: 260px; }
.footer-tagline.muted { color: var(--text-dim); margin-top: 8px; }
.footer-col h4 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; margin-top: 40px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-dim); }

.muted { color: var(--text-dim); }

/* back to top */
.to-top {
    position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: .3s var(--ease); z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .industries { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .price-card.featured { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        background: rgba(9,14,28,0.98); backdrop-filter: blur(16px); padding: 18px 24px 28px;
        border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 99;
    }
    :root[data-theme="light"] .nav-list { background: rgba(255,255,255,0.98); }
    .nav-list.open { transform: translateY(0); }
    .nav-list a { padding: 14px 12px; font-size: 1rem; }
    .nav-list a.active::after { display: none; }
    section { padding: 68px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .industries { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cta-inner { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}
