*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #0e1114;
    --surface: #181d23;
    --text: #f1f3f5;
    --muted: #aeb8b2;
    --accent: #99d4af;
    --border: rgba(125, 157, 133, 0.2);
    --mono: 'JetBrains Mono', monospace;
    --heading: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#99d4af 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.035;
    z-index: 0;
}

::selection { background: #387052; color: var(--text); }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap {
    width: min(100% - 3rem, 1132px);
    margin: 0 auto;
}

main, footer { position: relative; }
section { padding: clamp(5rem, 9vw, 8rem) 0; scroll-margin-top: 5rem; }
p { margin: 0 0 1.25rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

h1, h2, h3 { font-family: var(--heading); color: var(--text); }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; }

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 17, 20, 0.88);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

header .wrap { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--heading); font-size: 1.125rem; font-weight: 500; letter-spacing: 0.22em; text-decoration: none; }
.wordmark:hover, nav a:hover { color: var(--accent); }
.header-right, nav { display: flex; align-items: center; }
.header-right { gap: clamp(1rem, 3vw, 2.5rem); }
nav { gap: clamp(1rem, 2.4vw, 1.75rem); }
nav a, .lang-btn {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
nav a { color: #c0c9c0; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.lang-btn { border: 0; border-radius: 4px; padding: 0.5rem 0.7rem; background: #272a2d; color: var(--accent); cursor: pointer; }
.lang-btn:hover { background: #323538; }
.menu-toggle { display: none; }

#hero, #contact {
    background: linear-gradient(transparent 35%, rgba(56, 112, 82, 0.16));
}
#hero { padding: clamp(6rem, 10vw, 8rem) 0; }
.tag, .label, .card-num, .card-footer, .fit-note {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    background: #1d2023;
    color: var(--accent);
    margin-bottom: 2rem;
}
.tag::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
h1 {margin-bottom: 2rem; font-size: clamp(2.5rem, 5.2vw, 3.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
h1 em { color: var(--accent); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(153, 212, 175, 0.4); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.hero-sub { max-width: 42rem; margin-bottom: 3rem; font-size: 1.125rem; line-height: 1.9; }
.hero-sub em { color: var(--text); }
.btn { display: inline-block; padding: 0.9rem 2rem; border-radius: 4px; background: var(--accent); color: #003821; font: 600 0.8125rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.btn:hover { background: #b4f0ca; }

#about, #nfe { background: rgba(24, 29, 35, 0.6); }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.label { margin-bottom: 2.5rem; color: var(--accent); line-height: 1.5; }
#about h2 { margin-bottom: 1.5rem; }
#about .two-col > div:last-child { padding-top: 4rem; font-size: 1.125rem; line-height: 1.75; }
.insight, .card, .fit-card, .contact-details {
    border-radius: 0.5rem;
    background: linear-gradient(145deg, #121614, #0d100e);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.insight { padding: 1.5rem; }
.insight-title { color: var(--accent); font: 500 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.insight p:last-child { font-size: 0.875rem; line-height: 1.65; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card { display: flex; flex-direction: column; padding: 2rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.card-num { margin: 0; padding: 0.3rem 0.6rem; border-radius: 4px; background: rgba(56, 112, 82, 0.2); color: var(--accent); letter-spacing: 0.06em; }
.card-icon { color: #7ea68d; font: 500 1.3rem var(--mono); }
.card h3 { margin-bottom: 1rem; font-size: 1.5rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.card > p { color: #b8c7be; }
.card-footer { margin-top: auto; padding-top: 2rem; color: var(--accent); letter-spacing: 0.06em; }
.card-footer span { display: block; border-top: 1px solid rgba(56, 112, 82, 0.25); padding-top: 1.5rem; }

.nfe-intro { max-width: 48rem; margin-bottom: 3rem; }
.nfe-intro .label { margin-bottom: 1rem; }
.nfe-intro h2 { margin-bottom: 1.5rem; }
.nfe-desc { font-size: 1.125rem; line-height: 1.75; }
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.fit-card { display: flex; flex-direction: column; padding: clamp(2rem, 3.5vw, 2.5rem); }
.fit-card .label { margin-bottom: 2rem; }
.fit-card-muted .label { color: #98a6a0; }
.nfe-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.nfe-list li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.nfe-list li::before { content: '✗'; position: absolute; left: 0; color: #98a6a0; }
.yes-list li { color: var(--text); }
.yes-list li::before { content: '✓'; color: var(--accent); }
.fit-note { margin: 2.5rem 0 0; padding: 1rem; border-radius: 4px; background: rgba(56, 112, 82, 0.18); color: var(--accent); line-height: 1.5; letter-spacing: 0.08em; }
.fit-card-muted .fit-note { background: rgba(24, 29, 35, 0.6); color: #98a6a0; }

.contact-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-inner .label { margin-bottom: 1rem; }
.contact-inner h2 { margin-bottom: 1rem; }
.contact-desc { font-size: 1.125rem; line-height: 1.75; }
.contact-details { margin-top: 2.5rem; padding: clamp(2rem, 4vw, 2.5rem); text-align: left; }
.contact-line { margin-bottom: 1.5rem; font: 500 clamp(1.15rem, 3vw, 1.5rem) var(--heading); overflow-wrap: anywhere; }
.contact-line a { color: var(--accent); text-decoration: none; }
.contact-line a:hover, .contact-bottom a:hover { color: #b4f0ca; }
.contact-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font: 0.8125rem var(--mono); }
.contact-bottom a { color: var(--text); text-decoration: none; }

footer { padding: 2rem 0; box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font: 500 1rem var(--heading); letter-spacing: 0.12em; }
.footer-reg { color: #98a6a0; font: 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.5rem; height: 2.5rem; padding: 0.6rem; border: 0; border-radius: 4px; background: var(--surface); cursor: pointer; }
    .menu-toggle span { display: block; height: 2px; width: 100%; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
    header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
    header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #14181d; box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); }
    header.nav-open nav { display: flex; }
    nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
    .two-col, .three-col, .fit-grid { grid-template-columns: 1fr; }
    #about .two-col > div:last-child { padding-top: 0; }
    .two-col, .three-col, .fit-grid { gap: 1.5rem; }
}

@media (max-width: 420px) {
    .wrap { width: calc(100% - 2rem); }
    .wordmark { font-size: 0.95rem; letter-spacing: 0.16em; }
    .header-right { gap: 0.5rem; }
    .tag { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
