/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --bg:          #0a0a08;
    --bg-2:        #131310;
    --bg-3:        #1c1c18;
    --line:        #26261f;
    --line-bright: #3a3a30;
    --fg:          #f4f1e8;
    --fg-dim:      #a8a59a;
    --fg-muted:    #6b6960;
    --accent:      #d4ff2d;
    --accent-deep: #a8d800;
    --accent-ink:  #0a0a08;
    --warn:        #ff5a1f;
    --serif:       'Archivo Black', Impact, sans-serif;
    --sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:        'JetBrains Mono', ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
}

.site-footer { margin-top: auto; }

.page-content {
    padding: 80px 0 120px;
}

/* ==========================================================================
   SECTION HEADERS (shared)
   ========================================================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-light {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.section-num {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-num::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(48px, 5.6vw, 88px);
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: -.03em;
}

.section-title .accent { color: var(--accent); }

.section-meta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 1024px) {
    .wrap { padding: 0 32px; }
}

/* Step hover — subtle number, highlighted title */
.steps .step:hover .step-num { color: rgba(212, 255, 45, .08); }
.steps .step .step-title { transition: color .2s ease; }
.steps .step:hover .step-title { color: var(--accent); }

/* FAB — smooth fade */
body .fab { transition: transform .18s ease, opacity .4s ease; }

/* Hamburger → X animation when nav is open */
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Why grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.why-item {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .2s ease;
}

.why-item:hover { border-color: var(--accent); }

.why-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .08em;
}

.why-title {
    font-family: var(--serif);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--fg);
}

.why-body {
    font-size: 14px;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-top: auto;
}

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

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

/* Steps — 4 columns */
.section .steps { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 900px) {
    .hero-grid .hero-card { order: 1; }
    .section .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 20px; }
    .section { padding: 80px 0; }
    .section-head { grid-template-columns: 1fr; gap: 24px; }
    .section-meta { text-align: left; }
}
