:root {
    --bg: #0b0b0b;
    --fg: #f5f5f5;
    --muted: #9a9a9a;
    --accent: #d0ff5c;
    --maxw: 1200px;
    --site-maxw: 1100px;
    --divider: rgba(255, 255, 255, 0.08); /* Border color for top bar and footer */
    font-family: system-ui, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

html,
body {
    height: 100%;
      scroll-behavior: smooth;
}

body {
    margin: 0; /* By default some browser use 8px */
    background: var(--bg);
    color: var(--fg);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
    position: fixed; /* sticky for it to disapear */
    top: 0;
    width: 100%;
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--divider);
    z-index: 100;
}

.topbar-content {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
}

.logo img {
    border-radius: 8px;
}

nav a {
    color: var(--fg);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent);
}


.split {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: .5rem;
    justify-content: center;
    /* center the two tracks */
    width: 100%;
    box-sizing: border-box;
}

.hero {
    min-height: 70vh;
    align-items: center;
    justify-items: center;
    max-width: var(--site-maxw);
    margin: 0 auto;
    /*padding-top: 2vh; 
    /*padding: 2rem 1rem;*/
}

.pane {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left: image pushed to the right edge of its half */
.left {
    justify-content: flex-end;
    padding-right: .5rem;
    /* slightly less padding to shrink visual size */
}

.hero-img {
    max-height: 40vh;
    max-width: min(38vw, 520px);
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}

/* Right: stacked text */
.right {
    align-items: flex-start;
    justify-content: center;
    padding-left: .5rem;
}

.stack-lines {
    display: flex;
    flex-direction: column;
    gap: .15em;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.stack-lines span {
    font-weight: 800;
    font-size: clamp(1.6rem, 5.5vw, 3.5rem);
    text-align: left;
    white-space: nowrap;
}

.lead {
    color: var(--muted);
    max-width: 42ch;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* CTA below hero */
.cta-block {
    display: flex;
    justify-content: center;
    /* padding: 1.5rem 1rem 2.25rem; */
}

.btn {
    color: var(--fg);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 1.3rem 1.1rem;
    border-radius: 999px;
}

.btn:hover {
    border-color: var(--fg)
}


/* ---------- Scroll Arrow ---------- */
.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1rem;
    color: var(--muted);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-arrow a,
.scroll-arrow a:visited {
    color: var(--muted);
    text-decoration: none;
}


.scroll-arrow:hover {
    opacity: 1;
    color: var(--accent);
}

.scroll-arrow svg {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* Explanations section */
.about {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 2.75rem;
}


/* Fonts */
.prose {
    max-width: 820px;
}

.prose h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.prose h3 {
    margin: 1.25rem 0 .5rem;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.prose p {
    margin: .85rem 0;
    color: var(--fg);
    line-height: 1.65;
}

.prose ul {
    margin: .5rem 0 0 1.1rem;
    line-height: 1.6;
}

.prose li {
    margin: .2rem 0
}

/* Footer */
/* ---------- Footer ---------- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem 2.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--divider);
}

.footer .legal {
    margin: 0;
    font-size: 0.85rem;
}

.footer .links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer .links a {
    color: var(--fg);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer .links a:hover {
    opacity: 1;
}


/* Responsive */
/*
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
  .hero{ min-height:unset; padding:1rem }
  .left{ justify-content:center; padding-right:0 }
  .right{ padding-left:0 }
  .hero-img{ max-width:min(90vw, 420px); max-height:52vh }
  .stack-lines span{ white-space:normal }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer .links {
    justify-content: center;
  }
}*/