﻿:root{
  --bg: #000;
  --text: #fff;
  --accent: #00CFFF;
  --sans: "Lexend", system-ui, sans-serif;
  --serif: "Bitter", serif;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

main{
  margin: 40px 0; /* breathing room around the main body content */
}

a{ color: inherit; }

.content-width{
  width: min(1200px, 95vw);
  margin: 0 auto;
}

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

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.star-logo{ width: 38px; height: 38px; }
.nav{
  display: flex;
  gap: 20px;
  padding: 6px 18px;
  font-family: "CHNO Pixel Code Pro", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.nav a{
  display: inline-block;
  padding: 6px 14px;
  text-decoration: none;
  opacity: 0.9;
}
.nav a:hover{
  opacity: 1;
  color: var(--accent);
}
.topbar-line{ height: 1px; width: 100%; background: rgba(255,255,255,0.35); }

/* Hero */
.hero{
  padding: 80px 0 40px;
  text-align: center;
}
.hero-inner{ width: min(800px, 92vw); margin: 0 auto; display: grid; gap: 2px; justify-items: center; }
.hero-logo{ width: min(320px, 70vw); height: auto; image-rendering: pixelated; }
.hero-tagline{
  font-family: "CHNO Pixel Code Pro", ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.16em;
  margin: 2px 0 0;
  opacity: 0.9;
}
.hero-lead-section{
  margin-top: 120px;
  margin-bottom: 90px;
}
.hero-lead{
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.95;
}

/* Features */
.features{ padding: 80px 0 30px; } /* more space above first split */
.feature{
  width: min(1200px, 95vw);
  margin: 0 auto 180px;
  padding: 0 32px; /* bring content in from edges on larger screens */
}

@media (min-width: 901px){
  .feature{
    margin-bottom: 220px; /* extra breathing room between desktop sections */
  }
}
.feature--split{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.feature--reverse .feature-copy{ order: 1; }
.feature--reverse .feature-media{ order: 2; }

.feature-copy{ display: grid; gap: 12px; }
.feature h2{
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
}
.feature .body{
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.95;
}
.feature ul{
  margin: 0 0 8px 18px;
  padding: 0;
}
.ul,
.ul li{
  font-family: ",Bitter" serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.feature-media{
  display: grid;
  justify-items: center;
}
.ascii-art{
  margin: 0;
  white-space: pre;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(7px, 1.4vw, 12px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.9;
}

/* Buttons */
.btn{
  display: inline-block;
  width: fit-content;
  padding: 12px 22px;
  background: transparent;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .2s ease, border-color .2s ease;
}
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: -1;
}
.btn:hover{
  color: #fff;
  border-color: var(--accent);
}
.btn:hover::before{
  transform: scaleX(1);
}

/* Contact */
.contact{
  padding: 0 0 60px;
  margin-bottom: 200px;
  text-align: center;
}
.contact-inner{
  width: min(720px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.contact h2{ margin: 0; font-size: 23px; font-weight: 500; opacity: 0.8;  }
.contact-mail{
  color: var(--accent);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 20px;
  font-size: 12px;
  opacity: 0.8;
  text-align: center;
}

.inline-toast{
  display: inline-block;
  margin-left: 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity .25s ease;
}
.inline-toast.show{
  opacity: 1;
}

@media (max-width: 640px){
  .inline-toast{
    display: block;
    margin: 8px auto 0;
    text-align: center;
    margin-left: 0;
  }
}

/* Basic mobile prep (detailed tuning later) */
@media (max-width: 900px){
  .feature--split{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature--reverse .feature-media{ order: 3; }
  .feature--reverse .feature-copy{ order: 1; }
  .feature ul{ margin-left: 16px; }
}

/* Mobile navbar: star centered, links at edges */
@media (max-width: 640px){
  .topbar-inner{
    padding: 10px 16px;
    gap: 16px;
  }
  .brand{
    position: static;
    transform: none;
    padding: 0;
  }
  .brand-name{ display: none; }
  .nav{
    margin-left: auto;
    padding: 0;
    gap: 16px;
  }
  .nav a{
    padding: 6px 10px;
  }
}

@media (max-width: 640px){
  body{ overflow-x: hidden; }
  /* Type scale tuning for small screens */
  .hero-tagline{
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .hero-lead-section{
    margin-bottom: 40px; /* reduced by ~50px for small screens */
  }
  .hero-lead{
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
  }
  .feature h2{
    font-size: 24px;
    line-height: 1.2;
  }
  .feature .body{
    font-size: 15px;
    line-height: 1.6;
  }
  .feature ul{
    font-size: 14px;
    line-height: 1.5;
  }
  .feature-copy{
    padding: 0 20px;
  }
  .feature-copy .btn{
    justify-self: center;
  }
  .feature-copy .inline-toast{
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    text-align: center;
  }
  /* Stack planet art above text in the reverse block */
  .feature--reverse .feature-media{ order: 1; }
  .feature--reverse .feature-copy{ order: 2; }
  /* Prevent horizontal overflow on feature blocks */
  .feature{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 120px; /* more breathing room on mobile */
    padding: 0 16px; /* mobile inset */
    overflow-x: hidden; /* avoid body scroll */
    overflow-y: visible;
  }
  .feature--split{
    gap: 20px;
  }

  .feature-media{
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    overflow-x: hidden; /* shrink instead of scroll */
    overflow-y: visible;
    -ms-overflow-style: none; /* hide scrollbar in IE/Edge */
    scrollbar-width: none; /* hide scrollbar in Firefox */
  }
  .feature-media::-webkit-scrollbar{ display: none; } /* hide scrollbar in WebKit */
  .ascii-art{
    display: inline-block;
    max-width: 100%;
    text-align: left;
    margin: 0;
    font-size: clamp(2.5px, 0.8vw, 6px); /* shrink further on very small screens */
    white-space: pre; /* keep ASCII spacing intact */
  }
  .nav{
    gap: 12px;
  }
  .nav a{
    font-size: 13px;
  }
  /* Contact spacing on mobile */
  .contact{
    padding: 30px 0 40px;
  }
  .contact-inner{
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .contact h2{
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.3;
  }
  .contact-mail{
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
  }
}

/* Extra safety: downscale ASCII on very small screens */
@media (max-width: 640px){
  .ascii-art{
    font-size: clamp(5px, 2vw, 10px);
  }
}
