@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@100;300;400&display=swap');

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
    --bg:           #F3F0EA;
    --surface:      #FFFFFF;
    --surface-2:    #F8F6F1;
    --text:         #1A1816;
    --muted:        #87837C;
    --dim:          #B5B1A8;
    --border:       #D5D1C8;
    --border-light: #E5E2DA;
    --accent:       #9B7A56;
    --font-sans:    'Inter', -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --radius:       12px;
    --radius-sm:    8px;
    --space-xs:     4px;
    --space-s:      12px;
    --space-m:      24px;
    --space-l:      48px;
    --space-xl:     80px;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 40px), 960px);
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                top    0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
    width: min(calc(100vw - 40px), 400px);
}

.navbar.scrolled.menu-open {
    width: min(calc(100vw - 40px), 960px);
}

.nav-container {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: border-radius 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.menu-open .nav-container {
    border-radius: 20px;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 22px;
    height: 52px;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 100px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

.navbar.scrolled .nav-links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: var(--surface-2);
    border-color: var(--muted);
}

.navbar.scrolled .nav-cta {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover { background: var(--border-light); }

.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity  0.3s ease;
    transform-origin: center;
}

.navbar.scrolled .hamburger { display: flex; }

.navbar.menu-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar.menu-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar.menu-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-dropdown {
    display: none;
    border-top: 1px solid var(--border-light);
}

.navbar.menu-open .nav-dropdown {
    display: block;
    animation: ddSlide 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes ddSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dd-body { padding: 28px 32px 24px; }

.dd-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    display: block;
    margin-bottom: 20px;
}

.dd-nav { display: flex; flex-direction: column; }

.dd-nav a {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s, border-color 0.2s, padding-left 0.25s;
}

.dd-nav a:hover {
    color: var(--muted);
    border-bottom-color: var(--border-light);
    padding-left: 8px;
}

.dd-nav a .dd-arrow { font-size: 16px; opacity: 0; transition: opacity 0.2s; font-weight: 300; }
.dd-nav a:hover .dd-arrow { opacity: 1; }

.dd-footer {
    display: flex;
    gap: 48px;
    padding: 20px 32px 28px;
    border-top: 1px solid var(--border-light);
}

.dd-footer-col { display: flex; flex-direction: column; gap: 4px; }

.dd-footer-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dim);
}

.dd-footer-val {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

/* ═══════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════ */
.page-main {
    padding-top: 92px;
}

.page-section {
    padding: var(--space-xl) 40px;
    max-width: 1040px;
    margin: 0 auto;
}

.page-section + .page-section {
    border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dim);
    display: block;
    margin-bottom: 12px;
}

.page-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
}

.body-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* ═══════════════════════════════════════
   DATA TABLE ROWS
═══════════════════════════════════════ */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.data-row:first-child { border-top: 1px solid var(--border-light); }

.data-row:hover {
    background: var(--surface-2);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius-sm);
}

.data-row-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.data-row-value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
}

/* ═══════════════════════════════════════
   STAT GRID
═══════════════════════════════════════ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-cell {
    background: var(--surface);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s;
}

.stat-cell:hover { background: var(--surface-2); }

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 100;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted);
    font-weight: 300;
}

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-m);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   FORM INPUTS
═══════════════════════════════════════ */
.field-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.field-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.field-input:focus {
    border-color: var(--muted);
    box-shadow: 0 0 0 3px rgba(155, 122, 86, 0.08);
}

.field-input::placeholder { color: var(--dim); }

textarea.field-input {
    resize: none;
    line-height: 1.6;
}

select.field-input { cursor: pointer; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--muted);
}

.btn-full {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
}

/* ═══════════════════════════════════════
   ARTICLE / NEWS ROWS
═══════════════════════════════════════ */
.article-row {
    display: grid;
    grid-template-columns: 160px 1fr 24px;
    gap: var(--space-m);
    align-items: start;
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s;
    border-radius: var(--radius-sm);
}

.article-row:first-child { border-top: 1px solid var(--border-light); }
.article-row:last-child  { border-bottom: none; }

.article-row:hover {
    background: var(--surface-2);
    padding-left: var(--space-s);
}

.article-date {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
    line-height: 1.5;
}

.article-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-top: 4px;
}

.article-title {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

.article-arrow {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--dim);
    margin-top: 2px;
}

/* ═══════════════════════════════════════
   CHANNEL / OPTION CARDS
═══════════════════════════════════════ */
.channel-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-m);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.channel-card:hover { border-color: var(--muted); background: var(--surface-2); }

.channel-card.selected {
    border-color: var(--accent);
    background: var(--surface);
}

.channel-card.selected .channel-action {
    color: var(--accent);
}

.channel-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 3px;
}

.channel-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--dim);
}

.channel-action {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   INFO ROWS (contact page)
═══════════════════════════════════════ */
.info-row {
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row:first-child { border-top: 1px solid var(--border-light); }
.info-row:last-child  { border-bottom: none; }

.info-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.info-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

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

/* Pulse animation (status dot) */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
}

.status-dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7AAB7A;
    animation: pulse-dot 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   ABOUT — STAT TABLE
═══════════════════════════════════════ */
.about-stat-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.about-stat-row {
    background: var(--surface);
    padding: 16px var(--space-m);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.about-stat-row:hover { background: var(--surface-2); }

/* ═══════════════════════════════════════
   AWWWARDS FOOTER
═══════════════════════════════════════ */
footer {
    background: var(--text);
    color: var(--bg);
    overflow: hidden;
    position: relative;
}

.ft-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ft-strip-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ft-eu-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243,240,234,0.4);
}

.ft-eu-dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7AAB7A;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.ft-strip-link {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243,240,234,0.55);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.ft-strip-link:hover { color: var(--bg); }

.ft-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    padding: 64px 40px 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ft-display {
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--bg);
}

.ft-display em {
    font-style: italic;
    color: rgba(243,240,234,0.45);
}

.ft-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    width: 280px;
}

.ft-stat {
    background: var(--text);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-stat-num {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 100;
    letter-spacing: -0.04em;
    color: var(--bg);
    line-height: 1;
}

.ft-stat-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(243,240,234,0.35);
    line-height: 1.4;
}

.ft-wordmark-section {
    padding: 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    cursor: default;
}

.ft-wordmark {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 0.88;
    color: var(--bg);
    white-space: nowrap;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 20px 0 16px;
    user-select: none;
}

.ft-marquee {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    padding: 12px 0;
}

.ft-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ft-marquee-track span {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(243,240,234,0.25);
    white-space: nowrap;
}

.ft-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 40px;
    gap: 24px;
}

.ft-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: rgba(243,240,234,0.3);
}

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

.ft-nav a {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243,240,234,0.35);
    text-decoration: none;
    padding: 6px 14px;
    border-left: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
    white-space: nowrap;
}

.ft-nav a:last-child { border-right: 1px solid rgba(255,255,255,0.08); }
.ft-nav a:hover { color: var(--bg); }

.ft-version {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: rgba(243,240,234,0.3);
    text-align: right;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .page-section { padding: 60px 24px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }

    .ft-body {
        grid-template-columns: 1fr;
        padding: 48px 24px 40px;
        gap: 32px;
    }

    .ft-stats-grid { width: 100%; }
    .ft-strip { padding: 12px 24px; }
    .ft-wordmark-section { padding: 0 24px; }

    .ft-bottom {
        grid-template-columns: 1fr;
        padding: 16px 24px;
        gap: 14px;
    }

    .ft-nav { flex-wrap: wrap; }
    .ft-version { text-align: left; }
}

@media (max-width: 768px) {
    .article-row { grid-template-columns: 1fr; }
    .article-arrow { display: none; }
}

@media (max-width: 600px) {
    .navbar { top: 12px; }
    .nav-pill { padding: 8px 12px 8px 18px; }
    .dd-body { padding: 20px 20px 16px; }
    .dd-footer { padding: 16px 20px 20px; gap: 28px; }
    .dd-nav a { font-size: 22px; }

    .stat-grid { grid-template-columns: 1fr 1fr; }
    .ft-strip-left { gap: 12px; }
    .ft-display { font-size: 28px; }
}
