/* Code Aeternum — Premium Design System */
/* Palette inspired by the column+circuit logo: slate teal + copper/bronze */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
    --bg-dark: #0b0d10;
    --bg-card: #12151a;
    --bg-card-hover: #181c24;
    --primary: #c9956b;
    --primary-light: #ddb892;
    --primary-glow: rgba(201, 149, 107, 0.35);
    --accent: #5a7a8a;
    --accent-light: #7ba3b5;
    --text-main: #e8e6e3;
    --text-muted: #8b9098;
    --border: #1e2228;
    --border-hover: #2a3040;
    --gradient: linear-gradient(135deg, #c9956b 0%, #b87333 50%, #ddb892 100%);
    --gradient-accent: linear-gradient(135deg, #5a7a8a 0%, #7ba3b5 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(201, 149, 107, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(90, 122, 138, 0.06) 0%, transparent 50%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Utility ─── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--accent-light);
}

/* ─── Animations ─── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(201, 149, 107, 0.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Header ─── */
header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 960px;
    background: rgba(11, 13, 16, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    padding: 0.7rem 1.8rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-light);
}

.logo img {
    border-radius: 8px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--text-main);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.lang-switch {
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: var(--border-hover);
    color: white;
    border-color: var(--accent);
}

.lang-switch::after {
    display: none !important;
}

/* Social Icons in Nav */
nav a[aria-label] {
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
}

nav a[aria-label]:hover {
    opacity: 1;
    color: var(--text-main);
}

nav a[aria-label]::after {
    display: none;
}

/* ─── Hero ─── */
.hero {
    padding: 8rem 5% 6rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 149, 107, 0.12) 0%, rgba(90, 122, 138, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

/* Entrance animation */
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero>* {
    animation: hero-in 0.9s ease both;
}

.hero>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero>*:nth-child(2) {
    animation-delay: 0.25s;
}

.hero>*:nth-child(3) {
    animation-delay: 0.4s;
}

.hero>*:nth-child(4) {
    animation-delay: 0.55s;
}



.hero-badge {
    display: inline-block;
    background: rgba(201, 149, 107, 0.1);
    border: 1px solid rgba(201, 149, 107, 0.2);
    color: var(--primary-light);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero h1 br {
    display: block;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ─── Buttons ─── */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2.2rem;
    background: var(--gradient);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
}

.cta-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: none;
}

.cta-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(201, 149, 107, 0.15);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Featured Product ─── */
.featured {
    padding: 5rem 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    transition: border-color 0.3s;
}

.featured-inner:hover {
    border-color: var(--border-hover);
}

.featured-content {
    display: block;
}

.featured-badge {
    display: inline-block;
    background: rgba(90, 122, 138, 0.15);
    border: 1px solid rgba(90, 122, 138, 0.25);
    color: var(--accent-light);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.featured-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.featured-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 70px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.featured-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-screenshot img {
    width: 100%;
    max-width: 200px;
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 149, 107, 0.08);
    transition: transform 0.4s;
    animation: float 4s ease-in-out infinite;
}

.featured-screenshot img:hover {
    transform: translateY(-4px);
}

/* ─── Features Marquee ─── */
.features-marquee {
    padding: 1.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(18, 21, 26, 0.5);
}

.marquée-track,
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: scroll-x 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-item .icon {
    font-size: 1.2rem;
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── Values / About ─── */
.values {
    padding: 6rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.values h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.values>p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 149, 107, 0.3);
    box-shadow: 0 8px 32px rgba(201, 149, 107, 0.08);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 149, 107, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ─── Support / Ko-fi ─── */
.support {
    padding: 5rem 5%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.support h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.support>p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.support-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.support-btn:hover {
    transform: translateY(-2px);
}

.kofi-btn {
    background: linear-gradient(135deg, #ff5e5b, #ff7b54);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 94, 91, 0.25);
}

.kofi-btn:hover {
    box-shadow: 0 0 40px rgba(255, 94, 91, 0.35);
}

.github-btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.github-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(90, 122, 138, 0.2);
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 5%;
    margin-top: 2rem;
    background: var(--bg-card);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-col:nth-child(2) {
    text-align: center;
}

.footer-col:nth-child(3) {
    text-align: right;
    justify-self: end;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: rgba(11, 13, 16, 0.95);
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 5%;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin-left: 0.8rem;
        margin-right: 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 6rem 5% 4rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .featured-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-screenshot {
        order: -1;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        text-align: center;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .featured-content h2 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ─── Legal Pages ─── */
.legal-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.legal-content h1 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #fff;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--primary-light);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ─── Section Title (shared) ─── */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}