/* ═══════════════════════════════════════════════
   AMURKA 2.0 — Base Styles
   ═══════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ── Grain Overlay ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Links ── */
a {
    color: var(--green);
    text-decoration: none;
    transition: color var(--tr);
}
a:hover { color: var(--green-light); }

/* ── Images ── */
img, video { max-width: 100%; display: block; }

/* ── Lists ── */
ul, ol { list-style: none; }

/* ── Selection ── */
::selection {
    background: var(--green);
    color: var(--bg);
}

/* ═══════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red   { color: var(--red); }

/* ═══════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════ */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.section {
    padding: var(--sp-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-3xl);
}

.section-header h2 {
    margin-bottom: var(--sp-md);
}

.section-header p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--fs-md);
}

/* ═══════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--tr);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--green-light);
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--green);
    padding: 8px 0;
}
.btn-ghost:hover {
    color: var(--green-light);
}
.btn-ghost::after {
    content: '→';
    transition: transform var(--tr);
}
.btn-ghost:hover::after {
    transform: translateX(4px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: var(--fs-xs);
}

/* ═══════════════════════════════════════════════
   Code / Mono
   ═══════════════════════════════════════════════ */

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(0, 200, 120, 0.1);
    color: var(--green);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   Page Transition
   ═══════════════════════════════════════════════ */

.page-content {
    opacity: 0;
    animation: pageIn 0.4s var(--ease) forwards;
}

@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
