/* ============================================
   Kalm Technologies — Brand Stylesheet
   ============================================ */

:root {
    /* Palette */
    --bg: #fbfbfd;
    --bg-elev: #ffffff;
    --bg-dark: #0b0e17;
    --ink: #0b0e17;
    --ink-2: #1f2433;
    --muted: #5b6478;
    --muted-2: #8a93a6;
    --border: #e8eaf0;
    --border-strong: #d6dae4;

    /* Brand */
    --brand: #0f172a;
    --brand-2: #1e3a8a;
    --accent: #4f46e5;
    --accent-2: #06b6d4;
    --accent-3: #22d3a8;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
    --shadow-md: 0 8px 24px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.10), 0 8px 20px rgba(15,23,42,.05);
    --shadow-glow: 0 20px 60px rgba(79,70,229,.18);

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Layout */
    --container: 1200px;
    --section-y: clamp(72px, 9vw, 120px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p { margin: 0; }

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all .25s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { transition: transform .25s ease; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(251, 251, 253, 0.92);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ink), #2b3756);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
    flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { display: inline-flex; gap: 6px; align-items: baseline; }
.logo-text span { color: var(--muted); font-weight: 600; font-size: 15.5px; }
.logo-light .logo-text span { color: rgba(255,255,255,.55); }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 24px;
}
.primary-nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    position: relative;
    transition: color .2s ease;
}
.primary-nav a:hover { color: var(--accent); }
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 120px);
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.orb-1 { width: 480px; height: 480px; background: #c7d2fe; top: -120px; left: -80px; }
.orb-2 { width: 420px; height: 420px; background: #a5f3fc; top: 20%; right: -120px; opacity: .45; }
.orb-3 { width: 380px; height: 380px; background: #bbf7d0; bottom: -120px; left: 40%; opacity: .35; }
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

.hero-inner {
    text-align: center;
    max-width: 880px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 0 rgba(34,211,168,.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,211,168,.6); }
    70% { box-shadow: 0 0 0 10px rgba(34,211,168,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,211,168,0); }
}

.hero-title {
    font-size: clamp(40px, 6.4vw, 80px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
}
.gradient-text {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 12px;
    border-top: 1px solid var(--border);
}
.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 36px);
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   Trust Strip
   ============================================ */
.trust-strip {
    padding: 36px 0 8px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
}
.trust-caption {
    text-align: center;
    color: var(--muted-2);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
}
.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    flex-wrap: wrap;
    padding-bottom: 28px;
}
.trust-logos span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--muted);
    letter-spacing: -0.01em;
    opacity: .8;
    transition: all .25s ease;
}
.trust-logos span:hover { color: var(--ink); opacity: 1; }

/* ============================================
   Sections (generic)
   ============================================ */
.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.section-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 580px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================
   Products
   ============================================ */
.products { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.product-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, rgba(79,70,229,.06), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.product-card:hover::before { opacity: 1; }

.product-card-inner {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--icon-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.product-icon svg { width: 26px; height: 26px; }

.product-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 12px;
}

.product-name {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.product-desc {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.product-features {
    margin-bottom: 28px;
    display: grid;
    gap: 10px;
}
.product-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--ink-2);
}
.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    box-shadow: 0 2px 6px rgba(34,211,168,.3);
}
.product-features li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    width: 4px;
    height: 7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-65%) rotate(45deg);
}

.product-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14.5px;
    transition: gap .25s ease, color .25s ease;
}
.product-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.product-link:hover { color: var(--accent); gap: 12px; }
.product-link:hover svg { transform: translateX(2px); }

/* ============================================
   About
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-copy .lead {
    font-size: 19px;
    color: var(--ink-2);
    margin-bottom: 18px;
    line-height: 1.55;
}
.about-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.about-copy em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.about-points {
    display: grid;
    gap: 20px;
}
.about-point {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.about-point:last-child { border-bottom: 1px solid var(--border); }
.point-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.08em;
    padding-top: 4px;
}
.about-point h4 { font-size: 17px; margin-bottom: 4px; }
.about-point p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* About Panel — clean product dashboard */
.about-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}
.about-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 0% 0%, rgba(79,70,229,.05), transparent 50%);
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc, #fff);
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.panel-dots span:nth-child(1) { background: #ff5f57; }
.panel-dots span:nth-child(2) { background: #febc2e; }
.panel-dots span:nth-child(3) { background: #28c840; }
.panel-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-2);
    letter-spacing: 0.01em;
}

.panel-body {
    padding: 12px;
    display: grid;
    gap: 4px;
}
.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--r-md);
    transition: background .25s ease, transform .25s ease;
}
.panel-row:hover {
    background: #f8f9fc;
    transform: translateX(2px);
}
.panel-row-label {
    display: flex;
    align-items: center;
    gap: 14px;
}
.row-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(15,23,42,.10);
    flex-shrink: 0;
}
.row-icon svg { width: 20px; height: 20px; }
.row-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 2px;
}
.row-sub {
    font-size: 12.5px;
    color: var(--muted-2);
}
.panel-row-value { text-align: right; }
.row-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2px;
}
.row-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
}
.row-trend.up {
    color: #16a34a;
    background: rgba(34,197,94,.10);
}
.row-trend.up::before {
    content: '';
    width: 0; height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 4px solid #16a34a;
}

.panel-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc, #f4f6fa);
}
.panel-footer-stat {
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.panel-footer-stat:last-child { border-right: 0; }
.pfs-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 6px;
}
.pfs-num span {
    color: var(--muted-2);
    font-weight: 600;
    font-size: 15px;
}
.pfs-label {
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   Services — What We Do
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: all .3s cubic-bezier(.2,.7,.2,1);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, rgba(79,70,229,.06), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--icon-bg);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(15,23,42,.10);
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.service-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* ============================================
   Approach
   ============================================ */
.approach { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.approach-item {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg);
    transition: all .3s ease;
    position: relative;
}
.approach-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.approach-num {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.approach-item h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.approach-item p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ============================================
   Why Kalm
   ============================================ */
.why { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: start;
}
.why-copy { position: sticky; top: 100px; }
.why-lead {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 8px;
}

.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 26px;
    transition: all .3s ease;
}
.why-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.10));
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}
.why-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}
.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-toggle {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: all .25s ease;
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--ink-2);
    border-radius: 1px;
    top: 50%; left: 50%;
    transition: transform .25s ease, opacity .25s ease;
}
.faq-toggle::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 2px; height: 10px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-toggle {
    background: var(--accent);
    border-color: var(--accent);
}
.faq-item[open] .faq-toggle::before { background: #fff; }
.faq-item[open] .faq-toggle::after { opacity: 0; }

.faq-body {
    padding: 0 26px 24px;
}
.faq-body p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 680px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: var(--section-y) 0;
    position: relative;
}
.cta-inner {
    position: relative;
    background: var(--bg-dark);
    border-radius: var(--r-xl);
    padding: clamp(60px, 8vw, 100px) clamp(32px, 5vw, 64px);
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 60% at 20% 30%, rgba(79,70,229,.35), transparent 70%),
        radial-gradient(60% 60% at 80% 70%, rgba(6,182,212,.28), transparent 70%),
        radial-gradient(40% 50% at 50% 100%, rgba(34,211,168,.18), transparent 70%);
}
.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
    z-index: -1;
}
.cta-inner h2 {
    color: #fff;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
}
.cta-inner p {
    color: rgba(255,255,255,.7);
    font-size: 18px;
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-inner .btn-primary {
    background: #fff;
    color: var(--ink);
}
.cta-inner .btn-primary:hover { background: #f1f5f9; }
.cta-inner .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,.25);
}
.cta-inner .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.78);
    padding-top: 72px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 56px;
}
.logo-light { color: #fff; }
.logo-light .logo-mark {
    background: linear-gradient(135deg, #fff, #d6dae4);
    color: var(--ink);
}
.logo-light .logo-text span { color: rgba(255,255,255,.5); }

.footer-brand p {
    margin-top: 16px;
    font-size: 14.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    max-width: 320px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col a,
.footer-col span {
    display: block;
    font-size: 14.5px;
    color: rgba(255,255,255,.62);
    margin-bottom: 10px;
    transition: color .2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-col span { color: rgba(255,255,255,.62); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    font-size: 13.5px;
    color: rgba(255,255,255,.45);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-meta { display: inline-flex; gap: 20px; }
.footer-meta a { color: rgba(255,255,255,.55); }
.footer-meta a:hover { color: #fff; }

/* ============================================
   Legal pages (Privacy / Terms)
   ============================================ */
.legal {
    padding: clamp(64px, 8vw, 100px) 0 var(--section-y);
}
.legal-container {
    max-width: 820px;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 32px;
    transition: color .2s ease, gap .2s ease;
}
.legal-back svg { width: 16px; height: 16px; }
.legal-back:hover { color: var(--ink); gap: 12px; }

.legal-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 12px 0 14px;
}
.legal-meta {
    font-size: 14px;
    color: var(--muted-2);
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.legal-body { color: var(--ink-2); }
.legal-body .lead {
    font-size: 18px;
    color: var(--ink-2);
    line-height: 1.65;
    margin-bottom: 36px;
}
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 40px 0 14px;
    color: var(--ink);
}
.legal-body p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 16px;
}
.legal-body ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.legal-body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}
.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid rgba(79,70,229,.2);
    transition: border-color .2s ease;
}
.legal-body a:hover { border-color: var(--accent); }

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .approach-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-copy { position: static; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .primary-nav {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all .25s ease;
        margin: 0;
    }
    .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .primary-nav a { padding: 14px 24px; width: 100%; }
    .primary-nav a::after { display: none; }
    .menu-toggle { display: flex; }
    .nav-cta { display: none; }

    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 0; }
    .stat-num { font-size: 24px; }
    .stat-label { font-size: 11px; }

    .services-grid { grid-template-columns: 1fr; }
    .approach-grid { grid-template-columns: 1fr; }
    .why-cards { grid-template-columns: 1fr; }
    .faq-item summary { padding: 18px 20px; font-size: 15.5px; }
    .faq-body { padding: 0 20px 20px; }

    .panel-footer-stat { padding: 16px 8px; }
    .pfs-num { font-size: 18px; }
    .row-num { font-size: 16px; }

    .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }
    .logo { font-size: 16px; }
    .logo-text span { font-size: 13.5px; }
}

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