/* ============================================================
   SuperCSV — Option 7: "Full Spectrum"
   Bold teal gradient backgrounds with electric turquoise + orange
   v2.1 — 2026-04-04
   ============================================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #0a2e3e;
    overflow-y: scroll;
}

:root {
    /* Full Spectrum palette — gradient teal + electric accents */
    --bg-page:        #0a2e3e;
    --bg-card-a:      #0e3848;
    --bg-card-b:      #0c2430;
    --bg-nav:         rgba(10, 46, 62, 0.97);
    --bg-code:        #071e28;
    --bg-banner:      rgba(8, 36, 50, 0.97);

    --border-card:    rgba(18, 196, 216, 0.12);
    --border-nav:     rgba(18, 196, 216, 0.22);

    --accent-primary: #12c4d8;
    --accent-pop:     #e86520;

    --text-body:      #f0eee8;
    --text-muted:     #7aa0b0;
    --text-heading:   #f0eee8;

    --code-text:      #d4dce0;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background: linear-gradient(170deg, #0a2e3e 0%, #0c1e1e 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------ NAV ------ */
.menu-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 46, 62, 0.97);
    padding: 0.75rem 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(18, 196, 216, 0.22);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.menu-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0eee8;
    letter-spacing: 0.02em;
}

.menu-logo .csv-highlight {
    background: linear-gradient(135deg, #e86520, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.menu-links {
    display: flex;
    gap: 1.75rem;
    justify-content: flex-end;
}

.menu-links a {
    color: #7aa0b0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.menu-links a:hover {
    color: #12c4d8;
}

.menu-links a.nav-spec {
    color: #f0eee8;
}

.menu-links a.nav-spec:hover {
    color: #12c4d8;
}

.menu-links a.nav-about {
    background: linear-gradient(135deg, #e86520, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 1rem;
}

.menu-links a.nav-about:hover {
    background: linear-gradient(135deg, #f5a623, #e86520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.menu-links a.nav-github {
    color: #f0eee8;
}

.menu-links a.nav-github:hover {
    color: #12c4d8;
}

/* ------ SCROLLING BANNER ------ */
.scrolling-banner {
    background: var(--bg-banner);
    color: var(--accent-primary);
    padding: 0.25rem 0;
    overflow: hidden;
    z-index: 1000;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(18, 196, 216, 0.08);
}

.banner-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-banner 20s linear infinite;
}

.banner-content span {
    padding-right: 2rem;
}

@keyframes scroll-banner {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--banner-shift, -50%)); }
}

/* ------ LAYOUT ------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ------ HERO ------ */
.hero {
    min-height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(18, 196, 216, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(232, 101, 32, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #003845 0%, #0a2e3e 100%);
    z-index: -1;
}

.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-body);
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-body);
    font-family: 'Inter', system-ui, sans-serif;
}

.csv-highlight {
    background: linear-gradient(135deg, var(--accent-pop), #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-text .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: 'Source Serif 4', Georgia, serif;
    color: rgba(240, 238, 232, 0.85);
}

.hero-text .subtagline {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: rgba(240, 238, 232, 0.4);
    margin-top: 0.5rem;
}

.bottom-subtagline {
    padding: 1.6rem 0 1rem;
    text-align: center;
}

.bottom-subtagline .subtagline {
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: rgba(240, 238, 232, 0.5);
}

/* ------ MAIN CONTENT ------ */
main {
    position: relative;
    z-index: 1;
}

.content-section {
    padding: 0;
}

.content-section .container {
    max-width: 1200px;
    padding: 0 2rem;
}

/* ------ FEATURE ROWS (two-column) ------ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(18, 196, 216, 0.06);
}

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

.feature-text {
    padding: 1.5rem 0;
}

.feature-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    background: rgba(18, 196, 216, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.feature-text h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.feature-text p:last-child {
    margin-bottom: 0;
}

.feature-code {
    min-width: 0;
}

/* ------ FULL-WIDTH DIVIDERS ------ */
.divider-full {
    text-align: center;
    padding: 3rem 2rem;
    margin: 1rem 0;
    background: linear-gradient(135deg,
        rgba(18, 196, 216, 0.15) 0%,
        rgba(232, 101, 32, 0.06) 100%);
    border-top: 1px solid rgba(18, 196, 216, 0.1);
    border-bottom: 1px solid rgba(18, 196, 216, 0.1);
}

.divider-full h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--text-body);
    opacity: 0.9;
}

/* ------ FULL-WIDTH CODE SECTIONS ------ */
.feature-row-full {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(18, 196, 216, 0.06);
}

.feature-row-full .feature-text {
    margin-bottom: 1rem;
}

.feature-row-full .code-block {
    border-top: 2px solid;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, var(--accent-primary), var(--accent-pop)) 1;
    border-left: none;
    border-radius: 0;
}

/* ------ CODE BLOCKS ------ */
.code-block {
    background: var(--bg-code);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    max-width: 100%;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, var(--accent-primary), var(--accent-pop)) 1;
    transition: box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.code-block:hover {
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(18, 196, 216, 0.15);
}

.code-block code {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--code-text);
    white-space: pre;
    display: block;
    font-feature-settings: "liga" 0, "calt" 0;
}

.code-block .sz-sm { display: inline; font-size: 1em; }
.code-block .sz-md { display: inline; font-size: 1.15em; }
.code-block .sz-lg { display: inline; font-size: 1.32em; }

/* ------ SYNTAX HIGHLIGHTING ------ */
.scsv-column  { color: #E8E090; }
.scsv-type    { color: #12c4d8; }
.scsv-value   { color: #9CDCFE; }
.scsv-special { color: #0a98a8; }
.scsv-string  { color: #9CDCFE; }
.scsv-comment { color: #6A9955; }
.scsv-meta    { color: #808080; }
.scsv-punct   { color: #D4D4D4; }

/* ------ GO SYNTAX HIGHLIGHTING ------ */
.go-keyword   { color: #12c4d8; }
.go-type      { color: #E8E090; }
.go-string    { color: #CE9178; }
.go-comment   { color: #6A9955; }
.go-number    { color: #B5CEA8; }
.go-func      { color: #DCDCAA; }
.go-package   { color: #9CDCFE; }
.go-punct     { color: #D4D4D4; }
.go-builtin   { color: #0a98a8; }

/* ------ FOOTER ------ */
footer {
    background: rgba(7, 24, 34, 0.6);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(18, 196, 216, 0.08);
    font-size: 0.9rem;
}

footer p + p {
    margin-top: 0.25rem;
    opacity: 0.6;
}

/* ------ SCROLLBAR ------ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: rgba(18, 196, 216, 0.25);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 196, 216, 0.25) var(--bg-page);
}

/* ------ HAMBURGER TOGGLE ------ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-body);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ------ RESPONSIVE ------ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-container {
        flex-wrap: wrap;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding: 0.75rem 0;
        text-align: center;
    }

    .menu-links.open {
        display: flex;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .code-block {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-text {
        padding-top: 2rem;
    }
}

/* ------ PORTRAIT ORIENTATION ------ */
@media (max-width: 480px) and (orientation: portrait) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text .tagline {
        font-size: 1rem;
    }

    .hero-text {
        padding-top: 1.5rem;
        min-height: 35vh;
    }

    .code-block code {
        font-size: 0.65rem;
    }

    .feature-text h3 {
        font-size: 1.1rem;
    }
}

/* ------ SMOOTH SCROLL + FADE ------ */
html {
    scroll-behavior: smooth;
}
