/*
===============================================================
   E-Docs — Home Page
   Palette: Ledger & Brass  (deep archive-ink navy + brass seal)
===============================================================
*/

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

:root {
    /* Obsidian Plum palette */
    --ink-900: #170f1c;
    --ink-800: #2d1e2f;
    --ink-700: #4e2a4f;
    --brass: #e0a95d;
    --brass-light: #f3c98a;
    --brass-dim: #b3813c;
    --sage: #a97fae;

    --bg-body: #150e19;
    --bg-surface: #2d1e2f;
    --bg-card: rgba(224, 169, 93, 0.055);
    --bg-card-hover: rgba(224, 169, 93, 0.1);
    --border-subtle: rgba(243, 201, 138, 0.14);
    --border-strong: rgba(243, 201, 138, 0.4);

    --text-primary: #f5eef2;
    --text-secondary: #c3b3c4;
    --text-muted: #7a6a7d;

    --gradient-primary: linear-gradient(135deg, #4e2a4f 0%, #e0a95d 100%);
    --gradient-hero: radial-gradient(circle at 16% 12%, rgba(78, 42, 79, 0.55), transparent 55%),
        radial-gradient(circle at 84% 0%, rgba(224, 169, 93, 0.18), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(23, 15, 28, 0.95), transparent 60%);
    --gradient-text: linear-gradient(90deg, #f3c98a 0%, #e0a95d 45%, #c37fce 100%);

    --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 44px rgba(224, 169, 93, 0.16);

    --font-display: 'Sora', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.19, 1, 0.22, 1);

    --edge: clamp(20px, 5vw, 24px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--brass-light);
    color: #1a1305;
}

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

/* ---------------- Background layers ---------------- */
.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-body);
}

.grain {
    position: fixed;
    inset: -100px;
    z-index: -1;
    opacity: 0.045;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--gradient-hero);
    animation: meshDrift 26s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-2%, 2%, 0) scale(1.06);
    }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    transform: translateZ(0);
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: var(--brass-dim);
    animation: floatOrb 18s ease-in-out infinite;
}

.orb-2 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    right: -120px;
    background: var(--sage);
    animation: floatOrb 22s ease-in-out infinite reverse;
}

.orb-3 {
    width: 260px;
    height: 260px;
    top: 40%;
    left: 60%;
    background: var(--brass);
    opacity: 0.18;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(243, 201, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 201, 138, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

/* ---------------- Navbar (floating capsule) ---------------- */
.navbar {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 220;
    transition: all 0.4s var(--ease);
    padding: 0 var(--edge);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    border-radius: var(--radius-pill);
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(14, 23, 38, 0.82);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
    transition: all 0.4s var(--ease);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.navbar.scrolled .nav-inner {
    background: rgba(11, 18, 30, 0.88);
    border-color: var(--border-strong);
    box-shadow: 0 16px 50px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(224, 169, 93, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(179, 129, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-pill);
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 120;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #170f1c;
    z-index: 200;
    padding: 24px;
    text-align: center;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(10px);
    animation: menuLinkIn 0.3s var(--ease) forwards;
}

.mobile-menu.open a:nth-child(1) {
    animation-delay: 0.04s;
}

.mobile-menu.open a:nth-child(2) {
    animation-delay: 0.08s;
}

.mobile-menu.open a:nth-child(3) {
    animation-delay: 0.12s;
}

.mobile-menu.open a:nth-child(4) {
    animation-delay: 0.16s;
}

.mobile-menu.open a:nth-child(5) {
    animation-delay: 0.2s;
}

.mobile-menu.open a:nth-child(6) {
    animation-delay: 0.24s;
}

@keyframes menuLinkIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    transition: background 0.25s ease, color 0.25s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(224, 169, 93, 0.14);
    color: var(--brass-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #170f1c;
    box-shadow: 0 10px 30px -8px rgba(179, 129, 60, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -10px rgba(243, 201, 138, 0.6);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 168px 0 110px;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 340px;
    max-width: 100%;
    background: radial-gradient(ellipse at center, rgba(224, 169, 93, 0.25), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(224, 169, 93, 0.08);
    border: 1px solid var(--border-strong);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--brass-light);
    margin-bottom: 28px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
    cursor: default;
}

.badge-pill:hover {
    background: rgba(224, 169, 93, 0.15);
    border-color: var(--brass-light);
    transform: translateY(-1px);
}

.badge-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brass-light);
    box-shadow: 0 0 10px var(--brass-light);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.badge-pill .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(224, 169, 93, 0.2);
    font-size: 0.72rem;
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

.badge-pill:hover .arrow {
    background: var(--gradient-primary);
    transform: translateX(2px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.4vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.06;
    max-width: 780px;
    margin: 0 auto 24px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero h1 {
        white-space: normal;
    }
}

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

.hero h1 .gradient-text {
    font-weight: 800;
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto 38px;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.btn-primary .arrow-ic {
    transition: transform 0.3s var(--ease);
}

.btn-primary:hover .arrow-ic {
    transform: translateX(4px);
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-avatars {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-left: -8px;
    border: 2px solid var(--bg-body);
    background: var(--gradient-primary);
    color: #170f1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

/* Hero visual */
.hero-visual {
    text-align: left;
    position: relative;
    max-width: 940px;
    margin: 68px auto 0;
    padding: 3px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(243, 201, 138, 0.35), rgba(45, 30, 47, 0.1));
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: rgba(16, 26, 42, 0.85);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
    z-index: 3;
    animation: chipFloat 5s ease-in-out infinite;
}

.float-chip .chip-ic {
    font-size: 0.9rem;
}

.chip-1 {
    top: -22px;
    left: -20px;
    animation-delay: 0s;
}

.chip-2 {
    bottom: -18px;
    right: -16px;
    animation-delay: 1.4s;
}

.chip-3 {
    top: 36%;
    right: -30px;
    animation-delay: 2.6s;
}

@keyframes chipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 900px) {
    .float-chip {
        display: none;
    }
}

.hero-visual-inner {
    border-radius: calc(var(--radius-lg) - 3px);
    background: linear-gradient(180deg, #22162a 0%, #170f1c 100%);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.hero-visual-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.hero-visual-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.hero-visual-topbar span:nth-child(1) {
    background: #d97757;
}

.hero-visual-topbar span:nth-child(2) {
    background: var(--brass);
}

.hero-visual-topbar span:nth-child(3) {
    background: var(--sage);
}

.hero-visual-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 360px;
}

.hv-sidebar {
    border-right: 1px solid var(--border-subtle);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.hv-item.active {
    background: rgba(224, 169, 93, 0.14);
    color: var(--brass-light);
}

.hv-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.hv-main {
    padding: 20px;
    min-width: 0;
}

.hv-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

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

.hv-card {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.35s var(--ease), border-color 0.3s ease;
    min-width: 0;
}

.hv-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.hv-card .hv-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.hv-card .hv-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

.hv-card .hv-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------------- Stats strip ---------------- */
.stats {
    padding: 56px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------------- Section shared ---------------- */
.section {
    padding: clamp(70px, 12vw, 130px) 0;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 14px;
}

.section-head {
    max-width: 620px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.22;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.02rem);
}

/* ---------------- Feature grid (bento) ---------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 169, 93, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px -6px rgba(179, 129, 60, 0.55);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}

/* ---------------- Workflow / steps ---------------- */
.workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.workflow::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 12px;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(160deg, #4e2a4f, #170f1c);
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 0 6px var(--bg-body), var(--shadow-glow);
    transition: transform 0.4s var(--ease);
}

.step:hover .step-num {
    transform: scale(1.08);
}

.step h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* ---------------- Security / trust ---------------- */
.security {
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 50px);
    background: linear-gradient(150deg, rgba(224, 169, 93, 0.1), rgba(45, 30, 47, 0.5));
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.security-item .check {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #170f1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.security-item h5 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.security-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-badge {
    width: 200px;
    height: 200px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(243, 201, 138, 0.3), rgba(45, 30, 47, 0.2));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    position: relative;
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.security-badge::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed var(--border-subtle);
    animation: spinSlow 30s linear infinite;
}

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

/* ---------------- Tech stack marquee ---------------- */
.tech-strip {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    gap: 56px;
    animation: marquee 26s linear infinite;
}

.marquee span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------------- Final CTA ---------------- */
.cta-section {
    text-align: center;
    padding: clamp(56px, 9vw, 100px) clamp(24px, 5vw, 40px);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(224, 169, 93, 0.12), rgba(23, 15, 28, 0.6)), var(--bg-surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(224, 169, 93, 0.28), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(169, 127, 174, 0.22), transparent 55%);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 34px;
    position: relative;
}

.cta-section .hero-cta {
    position: relative;
}

.cta-section .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.cta-section .btn-primary {
    background: var(--gradient-primary);
    color: #170f1c;
    box-shadow: 0 10px 30px -8px rgba(179, 129, 60, 0.55);
}

/* ---------------- Footer ---------------- */
.footer {
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 46px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 30px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 16px 0 20px;
    max-width: 280px;
}

.footer-col h6 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--brass-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.footer-socials a:hover {
    border-color: var(--border-strong);
    background: rgba(224, 169, 93, 0.12);
    transform: translateY(-3px);
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="scale"] {
    transform: translateY(0) scale(0.94);
}

[data-reveal="scale"].is-visible {
    transform: translateY(0) scale(1);
}

.stagger>* {
    transition-delay: calc(var(--i, 0) * 90ms);
}

/* Back to top */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #170f1c;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s var(--ease);
    z-index: 90;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    transform: translateY(-4px);
}

/* =========================================================
   Responsive — Desktop (>1180) is the base above.
   Tablet: 981–1180 · Small tablet/large phone: 641–980 · Phone: ≤640
   ========================================================= */

/* ---- Laptop / small desktop ---- */
@media (max-width: 1180px) {
    .container {
        max-width: 100%;
    }
}

/* ---- Tablet ---- */
@media (max-width: 980px) {
    :root {
        --edge: 20px;
    }

    .hero {
        padding: 148px 0 80px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .security {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .security-item {
        text-align: left;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 12px;
    }

    .workflow {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .workflow::before {
        display: none;
    }

    .hero-visual-body {
        grid-template-columns: 1fr;
    }

    .hv-sidebar {
        display: none;
    }

    .hv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Small tablet / large phone ---- */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 760px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
    :root {
        --edge: 18px;
    }

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

    .hero-visual {
        margin-top: 48px;
        border-radius: var(--radius-md);
    }

    .hero-visual-inner {
        border-radius: calc(var(--radius-md) - 3px);
    }

    .hero-avatars {
        flex-direction: column;
        gap: 6px;
    }

    .section {
        padding: 64px 0;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 14px;
    }

    .stats {
        padding: 44px 0;
    }

    .workflow {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .footer-brand p {
        max-width: none;
    }

    .security {
        padding: 36px 22px;
    }

    .security-badge {
        width: 150px;
        height: 150px;
        font-size: 2.4rem;
    }

    .cta-section {
        padding: 48px 20px;
    }

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

    .hv-main {
        padding: 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .marquee span {
        font-size: 0.82rem;
    }

    .to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .badge-pill {
        font-size: 0.72rem;
        padding: 6px 6px 6px 12px;
    }

    .hero h1 {
        letter-spacing: -0.01em;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}