/* ============================
   TOKENS -- DARK (blue-violet night)
   ============================ */
:root {
    --bg-0: #07071a;
    --bg-1: #0c0c24;
    --bg-2: #12122e;
    --bg-3: #1a1a3a;
    --border: #252550;
    --border-subtle: #1c1c40;
    --text: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #606088;
    --accent: #7c3aed;
    --accent-soft: #a78bfa;
    --accent-dim: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.12);
    --accent-glow-strong: rgba(124, 58, 237, 0.3);
    --stat-color: #a78bfa;
    --stat-bg: rgba(167, 139, 250, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--accent);
    --gradient-hero: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124,58,237,0.1) 0%, transparent 70%);
}

/* ============================
   TOKENS -- LIGHT (orange-yellow solar)
   ============================ */
@media (prefers-color-scheme: light) {
    :root {
        --bg-0: #fffcf7;
        --bg-1: #fff7ee;
        --bg-2: #fff1e0;
        --bg-3: #ffe8cc;
        --border: #e8d5b8;
        --border-subtle: #f0e0c8;
        --text: #2a1f0e;
        --text-secondary: #6b5a3e;
        --text-muted: #a89070;
        --accent: #c2410c;
        --accent-soft: #ea580c;
        --accent-dim: #9a3412;
        --accent-glow: rgba(194, 65, 12, 0.08);
        --accent-glow-strong: rgba(194, 65, 12, 0.18);
        --stat-color: #b45309;
        --stat-bg: rgba(180, 83, 9, 0.08);
        --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px var(--border-subtle);
        --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px var(--accent);
        --gradient-hero: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(251,191,36,0.1) 0%, transparent 70%);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   NAV
   ============================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(7, 7, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

@media (prefers-color-scheme: light) {
    .nav { background: rgba(255, 252, 247, 0.85); }
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-center {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-soft);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav .lang-toggle {
    position: static;
    z-index: auto;
}

/* ============================
   LANGUAGE TOGGLE
   ============================ */
.lang-toggle {
    display: flex;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 14px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-toggle button.active {
    background: var(--accent);
    color: #fff;
}

.lang-toggle button:hover:not(.active) {
    color: var(--text);
}

/* ============================
   LAYOUT
   ============================ */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-alt {
    background: var(--bg-1);
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 16px;
    text-align: center;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}

/* ============================
   HERO
   ============================ */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 60px;
    padding-top: 120px;
    background: var(--gradient-hero);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

.hero-badge .by {
    color: var(--text-muted);
    font-size: 11px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 520px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-expand {
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.hero-scroll {
    margin-top: 48px;
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.hero-scroll::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { opacity: 0.3; top: 6px; }
    50% { opacity: 1; top: 18px; }
}

/* ============================
   PROBLEM
   ============================ */
.problem {
    padding: 80px 24px;
    text-align: center;
}

.problem h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 28px;
}

.problem-body {
    max-width: 600px;
    margin: 0 auto;
}

.problem-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: left;
}

.problem-body .punchline {
    color: var(--text);
    font-weight: 500;
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 2px solid var(--accent);
    background: var(--accent-glow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: left;
}

/* ============================
   WHAT IS
   ============================ */
.what-is {
    padding: 72px 24px;
    text-align: center;
}

.what-is h2 {
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.nots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.nots span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    padding: 4px 10px;
    background: var(--bg-2);
    border-radius: 6px;
}

.definition {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.definition strong {
    color: var(--accent-soft);
}

.platform-stack {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    padding: 5px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

.platform-pill svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ============================
   LETTERS
   ============================ */
.letters {
    padding: 72px 24px;
}

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

.letter-card {
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.letter-card:hover {
    background: var(--bg-3);
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

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

.letter-head {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 10px;
}

.letter-char {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-soft);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.letter-word {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.letter-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.letter-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.letter-hover {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--accent-soft);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.letter-card:hover .letter-hover {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   BUILT FOR
   ============================ */
.built-for {
    padding: 72px 24px;
    text-align: center;
}

.built-for h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 36px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.audience-item {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-2);
    text-align: center;
}

.audience-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.audience-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================
   COMPARISON
   ============================ */
.comparison {
    padding: 72px 24px;
    text-align: center;
}

.comparison h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 36px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-col {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.comparison-col-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.comparison-col-header.old { color: var(--text-muted); }
.comparison-col-header.new { color: var(--accent-soft); }

.comparison-rows {
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.comparison-row {
    padding: 14px 20px;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-col.old .comparison-row {
    color: var(--text-muted);
    background: var(--bg-1);
}

.comparison-col.new .comparison-row {
    color: var(--text);
    font-weight: 500;
    background: var(--bg-2);
}

/* ============================
   STORY
   ============================ */
.story {
    padding: 72px 24px;
    text-align: center;
}

.story-block {
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 32px;
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.story-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.story-block p:last-child { margin-bottom: 0; }

.story-block .highlight {
    color: var(--text);
    font-weight: 500;
}

.story-block .stat {
    color: var(--stat-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: var(--stat-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================
   CTA
   ============================ */
.cta {
    padding: 80px 24px 100px;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.cta-tiers {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-button {
    display: inline-block;
    padding: 14px 44px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 2px 12px var(--accent-glow-strong);
}

.cta-button:hover {
    background: var(--accent-soft);
    box-shadow: 0 4px 24px var(--accent-glow-strong);
    transform: translateY(-1px);
}

.cta-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-link:hover {
    color: var(--accent-soft);
}

.cta-link span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================
   FOOTER
   ============================ */
footer {
    text-align: center;
    padding: 32px 24px 48px;
    border-top: 1px solid var(--border-subtle);
}

footer .logo-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

footer .tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

footer .copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
}

/* ============================
   COMING SOON
   ============================ */
.coming-soon {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.coming-soon h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.coming-soon a {
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.coming-soon a:hover {
    color: var(--accent);
}

/* ============================
   PORTAL -- Homepage specific
   ============================ */
.portal-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    background: var(--gradient-hero);
}

.portal-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.portal-hero .tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
}

.portal-section {
    padding: 72px 24px;
}

.portal-section h2 {
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.portal-section > p {
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}

.portal-card {
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-card:hover {
    background: var(--bg-3);
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.portal-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.portal-card .tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent-soft);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: auto;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portal-cta {
    text-align: center;
    margin-top: 32px;
}

.portal-cta a {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 12px var(--accent-glow-strong);
}

.portal-cta a:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* ============================
   AUTHOR PAGE
   ============================ */
.author-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    background: var(--gradient-hero);
}

.author-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.author-hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.author-hero .location {
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.author-bio {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.author-bio p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.author-bio p:last-child {
    margin-bottom: 0;
}

.author-bio .highlight {
    color: var(--text);
    font-weight: 500;
}

.trait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.trait-card {
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
}

.trait-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-soft);
    margin-bottom: 10px;
}

.trait-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================
   PUBLICATIONS PAGE
   ============================ */
.pub-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    background: var(--gradient-hero);
}

.pub-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.pub-hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
}

.pub-card-extended {
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 28px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pub-card-extended:hover {
    background: var(--bg-3);
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.pub-card-extended h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.pub-card-extended .pub-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.pub-card-extended .pub-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-card-extended .tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent-soft);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pub-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-soft);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 14px 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px var(--accent-glow-strong);
}

.contact-form button:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.contact-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.contact-email a {
    color: var(--accent-soft);
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--accent);
}

/* ============================
   HAMBURGER MENU
   ============================ */
.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s;
    border-radius: 1px;
}

.nav.open .nav-burger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav.open .nav-burger span:nth-child(2) {
    opacity: 0;
}

.nav.open .nav-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================
   FOCUS STYLES (accessibility)
   ============================ */
:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-link:focus-visible,
.portal-card:focus-visible,
.pub-card-extended:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .letters-grid { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .comparison-row { padding: 10px 12px; font-size: 0.8rem; }
    .comparison-col-header { padding: 10px 12px; font-size: 10px; }
    .portal-grid { grid-template-columns: 1fr 1fr; }
    .trait-grid { grid-template-columns: 1fr 1fr; }
    .audience-item span { font-size: 0.85rem; }
    .hero-badge { flex-wrap: wrap; justify-content: center; }

    /* Hamburger visible */
    .nav-burger { display: block; }
    .nav-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-1);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        flex-direction: column;
        gap: 4px;
    }
    .nav.open .nav-center { display: flex; }
    .nav-link {
        font-size: 14px;
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Touch targets: lang toggle */
    .lang-toggle button {
        padding: 10px 18px;
        font-size: 12px;
        min-height: 44px;
        min-width: 44px;
    }

    /* letter-hover visible on mobile */
    .letter-hover {
        opacity: 0.7;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .letters-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .story-block { padding: 20px; }
    .hero { min-height: 85vh; }
    .nav { padding: 12px 16px; }
    .portal-grid { grid-template-columns: 1fr; }
    .trait-grid { grid-template-columns: 1fr; }

    /* Full-width button on mobile */
    .contact-form button { width: 100%; }
}

/* ============================
   LANGUAGE
   ============================ */
body [data-lang="fr"] { display: none !important; }
body.fr [data-lang="fr"] { display: revert !important; }
body.fr [data-lang="en"] { display: none !important; }

body.fr strong[data-lang="fr"] { display: block !important; }

body.fr .nots[data-lang="fr"],
body.fr .platform-stack[data-lang="fr"] { display: flex !important; }

body.fr .comparison-grid[data-lang="fr"] { display: grid !important; }

body.fr .cta-buttons[data-lang="fr"] { display: flex !important; }
