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

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface-2: #212435;
    --border: rgba(255,255,255,0.07);
    --accent: #4f7ef7;
    --accent-glow: rgba(79,126,247,0.25);
    --accent-2: #7c5cfc;
    --text: #e8eaf0;
    --text-muted: #8b90a8;
    --green: #22c55e;
    --green-bg: rgba(34,197,94,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(15,17,23,0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    background: #3a6ae4 !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,126,247,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124,92,252,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.25);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 820px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79,126,247,0.4);
}

.btn-secondary {
    color: var(--text);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.15);
}

/* ── STATS ── */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 72px;
    padding: 32px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── SECTION WRAPPER ── */
section {
    padding: 100px 20px;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-label--left {
    text-align: left;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ── FEATURES GRID ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: rgba(79,126,247,0.3);
    transform: translateY(-4px);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── ESCALATION SECTION ── */
.escalation-section {
    padding: 100px 20px;
}

.escalation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1100px;
    margin: 60px auto 0;
}

.escalation-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.escalation-intro p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.trigger-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trigger-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.9rem;
}

.trigger-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trigger-pill-dot--blue   { background: #4f7ef7; }
.trigger-pill-dot--amber  { background: #f59e0b; }
.trigger-pill-dot--red    { background: #ef4444; }
.trigger-pill-dot--purple { background: #7c5cfc; }

.trigger-pill strong {
    margin-right: 6px;
}

.trigger-pill span {
    color: var(--text-muted);
}

.escalation-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.escalation-stage {
    display: flex;
    gap: 20px;
    position: relative;
}

.stage-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.stage-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid;
}

.stage-line {
    width: 2px;
    flex-grow: 1;
    min-height: 24px;
    margin: 4px 0;
}

.escalation-stage:last-child .stage-line {
    display: none;
}

.stage-1 .stage-node { background: rgba(79,126,247,0.15); border-color: var(--accent); color: var(--accent); }
.stage-1 .stage-line { background: linear-gradient(to bottom, var(--accent), #f59e0b); }
.stage-2 .stage-node { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #f59e0b; }
.stage-2 .stage-line { background: linear-gradient(to bottom, #f59e0b, #ef4444); }
.stage-3 .stage-node { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #ef4444; }
.stage-3 .stage-line { background: linear-gradient(to bottom, #ef4444, #7c5cfc); }
.stage-4 .stage-node { background: rgba(124,92,252,0.15); border-color: var(--accent-2); color: var(--accent-2); }

.stage-body {
    padding-bottom: 28px;
    flex: 1;
}

.stage-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 6px;
}

.stage-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── BRAND STORY SECTION ── */
.brand-story-section {
    padding: 100px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brand-story-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.brand-etymology {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-oe {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.brand-oe-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-meaning {
    max-width: 620px;
}

.brand-definition {
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.brand-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
}

.brand-pillar {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: border-color 0.3s, transform 0.3s;
}

.brand-pillar:hover {
    border-color: rgba(79,126,247,0.3);
    transform: translateY(-4px);
}

.brand-pillar-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.brand-pillar h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.brand-pillar p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── SECURITY SECTION ── */
.security-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.security-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.security-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.security-badges .badge-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.badge-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
}

.badge-card .badge-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.badge-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.badge-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── CTA ── */
.cta-section {
    text-align: center;
    padding: 100px 20px;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(79,126,247,0.12), rgba(124,92,252,0.12));
    border: 1px solid rgba(79,126,247,0.25);
    border-radius: 24px;
    padding: 64px 48px;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── NAV SCROLL STATE ── */
nav.nav--scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

/* ── NAV ACTIVE LINK ── */
.nav-links a.nav-link--active {
    color: var(--text);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { padding: 16px 20px; }
    .nav-links { display: none; }
    .stats { gap: 28px; }
    .escalation-layout { grid-template-columns: 1fr; gap: 48px; }
    .security-grid { grid-template-columns: 1fr; }
    .security-badges { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 40px 28px; }
    footer { flex-direction: column; text-align: center; }
}
