/* ============================================================
   Capital Funding Node — custom stylesheet
   Design language: "Midnight Meridian"
   Near-black canvas, hairline architecture, mint signal color,
   Space Grotesk display type, mono micro-labels.
   ============================================================ */

:root {
    --bg: #05080f;
    --bg-2: #070c16;
    --surface: #0a1120;
    --surface-2: #0d1628;
    --line: rgba(140, 175, 225, 0.14);
    --line-strong: rgba(140, 175, 225, 0.3);
    --ink: #edf3fc;
    --muted: #93a5c2;
    --accent: #3de0a4;
    --accent-soft: rgba(61, 224, 164, 0.12);
    --accent-2: #7fa8ff;
    --accent-deep: #0b3d2e;
    --danger: #ff8a7a;
    --ok: #3de0a4;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    --header-h: 76px;
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ambient background: fine grid + two soft light pools */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(140, 175, 225, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 175, 225, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(720px 480px at 88% -6%, rgba(61, 224, 164, 0.1), transparent 65%),
        radial-gradient(820px 620px at -10% 42%, rgba(127, 168, 255, 0.07), transparent 65%),
        radial-gradient(900px 700px at 55% 115%, rgba(61, 224, 164, 0.05), transparent 70%);
    pointer-events: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(61, 224, 164, 0.32);
    color: #fff;
}

/* ---------- typography ---------- */

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

h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
}

h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

p {
    color: var(--muted);
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 62ch;
}

.accent-text {
    color: var(--accent);
}

/* ---------- layout helpers ---------- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 26px;
}

section {
    position: relative;
    padding: 104px 0;
}

.sec-head {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 56px;
}

.sec-head .lead {
    padding-bottom: 6px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.rule {
    border: 0;
    border-top: 1px solid var(--line);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
}

.btn svg {
    flex: none;
    transition: transform 0.25s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #29c48d);
    color: #03130c;
    box-shadow: 0 0 0 1px rgba(61, 224, 164, 0.35), 0 14px 34px -12px rgba(61, 224, 164, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(61, 224, 164, 0.5), 0 20px 44px -12px rgba(61, 224, 164, 0.7);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

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

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.88rem;
}

.btn[disabled],
.btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(3, 19, 12, 0.35);
    border-top-color: #03130c;
    animation: btnspin 0.7s linear infinite;
}

@keyframes btnspin {
    to {
        transform: rotate(360deg);
    }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    transition: gap 0.25s var(--ease);
}

.link-arrow:hover {
    gap: 13px;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(5, 8, 15, 0.9);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.brand .mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.brand .mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand em {
    font-style: normal;
    color: var(--accent);
}

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

.main-nav a {
    position: relative;
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
    color: var(--ink);
    background: rgba(140, 175, 225, 0.07);
}

.main-nav a.active {
    color: var(--accent);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1px;
    background: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(7, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 18px 26px 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-of-type {
    border-bottom: 0;
}

.mobile-nav a.active {
    color: var(--accent);
}

.mobile-nav .btn {
    width: 100%;
    margin-top: 18px;
}

/* ---------- hero ---------- */

.hero {
    padding: 92px 0 88px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 .stroke {
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}

.hero .lead {
    font-size: 1.12rem;
    max-width: 46ch;
    margin-bottom: 36px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero-trust div {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-trust svg {
    color: var(--accent);
    flex: none;
}

.hero-visual {
    position: relative;
}

.hero-visual .frame {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.hero-visual .frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 15, 0.55));
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.hero-visual .offset {
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 1px solid rgba(61, 224, 164, 0.4);
    border-radius: 20px;
    z-index: -1;
}

.hero-badge {
    position: absolute;
    left: -28px;
    bottom: 34px;
    background: rgba(10, 17, 32, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 18px 22px;
    min-width: 218px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

.hero-badge .k {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.hero-badge .v {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-badge .v span {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
}

.hero-badge .d {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------- marquee ---------- */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    overflow: hidden;
    background: rgba(10, 17, 32, 0.5);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.marquee-track span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---------- stat band ---------- */

.stat-band {
    border-bottom: 1px solid var(--line);
    padding: 0;
}

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

.stat-cell {
    padding: 44px 34px;
    border-right: 1px solid var(--line);
}

.stat-cell:first-child {
    padding-left: 0;
}

.stat-cell:last-child {
    border-right: 0;
}

.stat-cell .k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.stat-cell .v {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}

.stat-cell .v em {
    font-style: normal;
    color: var(--accent);
}

.stat-cell .v .pct {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-left: 2px;
}

.stat-cell .v.long {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.stat-cell .d {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 10px;
}

/* ---------- category quick nav (services page) ---------- */

.cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.cat-nav a {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cat-nav a:hover {
    color: var(--accent);
    border-color: rgba(61, 224, 164, 0.45);
    background: var(--accent-soft);
}

.svc-item h3 .wnum {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

/* ---------- about ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-copy {
    position: sticky;
    top: calc(var(--header-h) + 40px);
}

.about-copy h2 {
    margin-bottom: 22px;
}

.about-copy p + p {
    margin-top: 18px;
}

.about-copy .btn {
    margin-top: 32px;
}

.principle-list {
    display: flex;
    flex-direction: column;
}

.principle {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
    transition: padding-left 0.3s var(--ease);
}

.principle:last-child {
    border-bottom: 1px solid var(--line);
}

.principle:hover {
    padding-left: 10px;
}

.principle .num {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--accent);
    padding-top: 4px;
}

.principle h3 {
    margin-bottom: 10px;
}

.principle p {
    font-size: 0.97rem;
}

/* ---------- services overview (home) ---------- */

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

.svc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.svc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 224, 164, 0.45);
    background: linear-gradient(180deg, rgba(61, 224, 164, 0.06), rgba(255, 255, 255, 0.01));
}

.svc-card .idx {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}

.svc-card h3 {
    font-size: 1.18rem;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.svc-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(140, 175, 225, 0.12);
}

.svc-card ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.svc-card .s-name {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.svc-card .s-desc {
    display: block;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
}

.svc-foot {
    margin-top: 46px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 34px;
    background: rgba(13, 22, 40, 0.55);
}

.svc-foot p {
    max-width: 62ch;
    font-size: 0.98rem;
}

/* ---------- why us ---------- */

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

.why-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006));
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 224, 164, 0.45);
}

.why-card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 224, 164, 0.35);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 22px;
}

.why-card h3 {
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.95rem;
}

/* ---------- reviews ---------- */

.reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 56px;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 24px;
    background: rgba(13, 22, 40, 0.55);
}

.rating-badge .score {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.rating-badge .stars {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.95rem;
}

.rating-badge .count {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 5px;
}

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

.review-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006));
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 224, 164, 0.4);
}

.review-card .stars {
    color: var(--accent);
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.review-card blockquote {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 24px;
    flex: 1;
}

.review-card .who {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.review-card .avatar {
    width: 42px;
    height: 42px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 224, 164, 0.25), rgba(127, 168, 255, 0.22));
    border: 1px solid rgba(61, 224, 164, 0.4);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
}

.review-card .who .n {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.review-card .who .r {
    font-size: 0.83rem;
    color: var(--muted);
}

.review-card .who .rate {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

/* ---------- faq ---------- */

.faq-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
    background: rgba(13, 22, 40, 0.4);
    transition: border-color 0.25s var(--ease);
}

.faq-item[open] {
    border-color: rgba(61, 224, 164, 0.4);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .plus {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--accent);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item[open] summary .plus {
    transform: rotate(45deg);
    background: var(--accent-soft);
}

.faq-item .a {
    padding: 0 26px 24px;
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 72ch;
}

.faq-cta {
    margin-top: 48px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 46px 34px;
    background:
        radial-gradient(500px 200px at 50% 0%, rgba(61, 224, 164, 0.09), transparent 75%),
        rgba(13, 22, 40, 0.55);
}

.faq-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.faq-cta p {
    margin-bottom: 24px;
}

/* ---------- cta band ---------- */

.cta-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(760px 300px at 20% 0%, rgba(61, 224, 164, 0.12), transparent 70%),
        radial-gradient(600px 300px at 90% 100%, rgba(127, 168, 255, 0.1), transparent 70%),
        rgba(10, 17, 32, 0.6);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.cta-inner h2 {
    max-width: 18ch;
}

.cta-inner p {
    max-width: 46ch;
    margin-top: 14px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- inner page hero ---------- */

.page-hero {
    padding: 84px 0 72px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(680px 320px at 15% 0%, rgba(61, 224, 164, 0.09), transparent 70%),
        radial-gradient(560px 320px at 92% 10%, rgba(127, 168, 255, 0.08), transparent 70%);
}

.crumbs {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.crumbs a {
    color: var(--muted);
    transition: color 0.2s var(--ease);
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs .sep {
    margin: 0 10px;
    color: var(--line-strong);
}

.crumbs .cur {
    color: var(--accent);
}

.page-hero h1 {
    max-width: 22ch;
    margin-bottom: 20px;
}

.page-hero .lead {
    max-width: 64ch;
}

/* ---------- services detail page ---------- */

.cat-block {
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
}

.cat-block:last-of-type {
    border-bottom: 0;
}

.cat-head {
    display: flex;
    align-items: baseline;
    gap: 22px;
    margin-bottom: 44px;
}

.cat-head .idx {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.cat-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    white-space: nowrap;
}

.cat-head .line {
    flex: 1;
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
}

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

.svc-detail-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.svc-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006));
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.svc-item:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 224, 164, 0.4);
}

.svc-item.wide {
    grid-column: span 3;
}

.svc-detail-grid.cols-2 .svc-item.wide {
    grid-column: span 2;
}

.svc-item h3 {
    font-size: 1.22rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-item h3::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    flex: none;
}

.svc-item p {
    font-size: 0.95rem;
}

.svc-item p + p {
    margin-top: 12px;
}

.svc-item .go {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.svc-item.wide .go {
    margin-top: auto;
}

/* ---------- about page extras ---------- */

.story-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 64px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.story-visual .frame {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.story-visual img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.story-visual .offset {
    position: absolute;
    inset: -20px 20px 20px -20px;
    border: 1px solid rgba(61, 224, 164, 0.4);
    border-radius: 20px;
    z-index: -1;
}

.story-copy h2 {
    margin-bottom: 22px;
}

.story-copy p + p {
    margin-top: 18px;
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 54px;
}

.value-strip .v-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    background: rgba(13, 22, 40, 0.45);
}

.value-strip .v-item .k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.value-strip .v-item p {
    font-size: 0.9rem;
}

/* ---------- contact page ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
    padding: 42px 40px;
}

.panel h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.panel .panel-sub {
    font-size: 0.98rem;
    margin-bottom: 34px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.field.full {
    grid-column: span 2;
}

.field label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: rgba(5, 8, 15, 0.65);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 13px 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    appearance: none;
}

.field textarea {
    resize: vertical;
    min-height: 128px;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a5c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
    cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(147, 165, 194, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(61, 224, 164, 0.16);
    background: rgba(5, 8, 15, 0.9);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.12);
}

.form-actions {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.check-row {
    grid-column: span 2;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.check-row input {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.check-row label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    line-height: 1.55;
    cursor: pointer;
}

.dock {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 36px;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(61, 224, 164, 0.1), transparent 70%),
        rgba(13, 22, 40, 0.6);
}

.dock h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.dock > p {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.info-row:last-child {
    padding-bottom: 0;
}

.info-row .icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 224, 164, 0.35);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.info-row .k {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.info-row .val {
    font-weight: 500;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-row a.val:hover {
    color: var(--accent);
}

/* ---------- newsletter / unsubscribe ---------- */

.narrow-panel {
    max-width: 660px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 52px 48px;
    background:
        radial-gradient(520px 260px at 50% 0%, rgba(61, 224, 164, 0.11), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
    text-align: center;
}

.narrow-panel .nl-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 224, 164, 0.4);
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
}

.narrow-panel h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 16px;
}

.narrow-panel > p {
    max-width: 52ch;
    margin: 0 auto 36px;
}

.narrow-panel form {
    text-align: left;
}

.narrow-panel .form-grid {
    gap: 18px;
}

.narrow-panel .form-actions {
    justify-content: center;
    margin-top: 10px;
}

.nl-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 44px;
    text-align: left;
}

.nl-perks .perk {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 18px;
    background: rgba(13, 22, 40, 0.5);
}

.nl-perks .perk svg {
    color: var(--accent);
    margin-bottom: 12px;
}

.nl-perks .perk .t {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.nl-perks .perk .d {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
    transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.back-link:hover {
    color: var(--accent);
    gap: 14px;
}

/* ---------- legal pages ---------- */

.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    background: rgba(13, 22, 40, 0.5);
}

.legal-toc .t {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.legal-toc a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.87rem;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-toc a:hover {
    color: var(--ink);
    background: rgba(140, 175, 225, 0.06);
}

.legal-toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-soft);
}

.legal-body {
    max-width: 780px;
}

.legal-sec {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 30px);
}

.legal-sec:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-sec h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
}

.legal-sec h2 .n {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    padding-top: 5px;
    flex: none;
}

.legal-sec p {
    font-size: 1rem;
    line-height: 1.75;
}

.legal-note {
    margin-top: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    background: rgba(13, 22, 40, 0.5);
    font-size: 0.92rem;
    color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 12, 22, 0.85);
    padding: 74px 0 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding-bottom: 58px;
}

.foot-brand .brand {
    margin-bottom: 20px;
}

.foot-brand p {
    font-size: 0.93rem;
    max-width: 34ch;
}

.site-footer h5 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.foot-links li {
    margin-bottom: 13px;
}

.foot-links a {
    font-size: 0.93rem;
    color: var(--muted);
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
    display: inline-block;
}

.foot-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.foot-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.5;
}

.foot-contact svg {
    color: var(--accent);
    flex: none;
    margin-top: 4px;
}

.foot-contact a:hover {
    color: var(--accent);
}

.foot-bottom {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.foot-bottom p {
    font-size: 0.86rem;
}

.foot-bottom .made {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- toasts ---------- */

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(370px, calc(100vw - 44px));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(13, 22, 40, 0.97);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    border-radius: 13px;
    padding: 16px 18px 16px 16px;
    box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.95);
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast .t-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.toast.error .t-icon {
    background: rgba(255, 138, 122, 0.14);
    color: var(--danger);
}

.toast .t-body {
    flex: 1;
    min-width: 0;
}

.toast .t-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 3px;
}

.toast .t-msg {
    font-size: 0.87rem;
    line-height: 1.5;
    color: var(--muted);
}

.toast .t-close {
    flex: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.toast .t-close:hover {
    color: var(--ink);
    background: rgba(140, 175, 225, 0.12);
}

.toast .t-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform-origin: left;
    animation: toastbar 5s linear forwards;
}

.toast.error .t-bar {
    background: var(--danger);
}

@keyframes toastbar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* ---------- reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal.d1 {
    transition-delay: 0.08s;
}

.reveal.d2 {
    transition-delay: 0.16s;
}

.reveal.d3 {
    transition-delay: 0.24s;
}

.reveal.d4 {
    transition-delay: 0.32s;
}

/* ---------- skip link ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--accent);
    color: #03130c;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-cell {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 34px 26px;
    }

    .stat-cell:nth-child(odd) {
        padding-left: 0;
    }

    .stat-cell:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc .toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .svc-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 960px) {
    .main-nav,
    .header-cta .btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-copy {
        position: static;
    }

    .hero-visual img {
        height: 380px;
    }

    .hero-badge {
        left: 18px;
    }

    .hero-visual .offset {
        display: none;
    }

    .sec-head {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    section {
        padding: 76px 0;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-cell {
        padding: 30px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat-cell:last-child {
        border-bottom: 0;
    }

    .svc-grid,
    .why-grid,
    .review-grid,
    .svc-detail-grid,
    .svc-detail-grid.cols-2,
    .value-strip,
    .nl-perks {
        grid-template-columns: 1fr;
    }

    .svc-item.wide,
    .svc-detail-grid.cols-2 .svc-item.wide {
        grid-column: span 1;
    }

    .cat-head {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cat-head h2 {
        white-space: normal;
    }

    .cat-head .line {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full,
    .form-actions,
    .check-row {
        grid-column: span 1;
    }

    .panel,
    .dock,
    .narrow-panel {
        padding: 30px 22px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .toast-stack {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
