/* =========================================================
 *  TrangorgeOS — styles.css
 *  Token system
 *  Color:
 *    --void:        #030308  (page base)
 *    --star:        #f3eefc  (primary text)
 *    --dim:         #a99fc4  (secondary text)
 *    --violet:      #8b5cf6  (accent, link gradient start)
 *    --plasma:      #c471ff  (accent, link gradient end)
 *    --ion:         #35e0e0  (rare cool accent, sparingly)
 *    --line:        #241a44  (hairlines)
 *  Type:
 *    display: 'Space Grotesk' (headings, technical/geometric)
 *    body: 'Inter' (paragraphs)
 *    mono: 'JetBrains Mono' (labels, eyebrows, links)
 *
 *  Layout note: this page reads top to bottom as continuous
 *  text — no card grids, no boxed panels. The only background
 *  imagery is a single fixed galaxy photo behind the whole page.
 *  The only gradient in the whole system is the one used for
 *  clickable links (dark violet → magenta text).
 *  ========================================================= */

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

:root{
  --void: #030308;
  --star: #f3eefc;
  --dim: #a99fc4;
  --violet: #8b5cf6;
  --plasma: #c471ff;
  --ion: #35e0e0;
  --line: #241a44;
  --max-w: 760px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  position: relative;
  margin: 0;
  background: var(--void);
  color: var(--star);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{ background: var(--violet); color: var(--void); }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

h1,h2,h3,h4{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--star);
}

.eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plasma);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: '';
  width: 18px;
  height: 1px;
  background: var(--plasma);
  display: inline-block;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* readable measure for running text, centered under the wide wrap */
.prose{
  max-width: var(--max-w);
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--ion);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
 *  Single site-wide background photo (fixed, behind everything)
 *  ========================================================= */
.bg-photo{
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.4;
}
.bg-photo::after{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--void);
  opacity: 0.72;
}

/* =========================================================
 *  Gradient link — the one deliberate gradient in the system.
 *  Used for every clickable action on the page instead of buttons.
 *  ========================================================= */
.link-grad{
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(100deg, var(--violet), var(--plasma));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid rgba(196,113,255,0.35);
  padding-bottom: 2px;
  transition: border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.link-grad:hover{ border-color: var(--plasma); opacity: 0.85; }
.link-grad-lg{ font-size: 1rem; }

/* =========================================================
 *  Nav
 *  ========================================================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(3,3,8,0.6);
  border-bottom: 1px solid var(--line);
}
.nav .wrap{
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand img{ height: 30px; width: auto; }
.nav-links{
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  color: var(--dim);
}
.nav-links a{ transition: color .2s ease; }
.nav-links a:hover{ color: var(--star); }
.nav-cta{
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================================================
 *  Hero
 *  ========================================================= */
.hero{
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
#constellation{
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero-inner{
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero .eyebrow{ justify-content: center; margin-bottom: 22px; }
.hero h1{
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  text-wrap: balance;
}
.hero h1 em{
  font-style: normal;
  color: var(--plasma);
}
.hero-sub{
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--dim);
  font-size: 1.08rem;
}
.hero-actions{
  margin-top: 42px;
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-facts{
  margin-top: 64px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* =========================================================
 *  Section shell — continuous flowing text, no card chrome
 *  ========================================================= */
section{ position: relative; padding: 96px 0; }

section h2{
  margin-top: 16px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}
section .prose > p{
  margin-top: 16px;
  color: var(--dim);
  font-size: 1.02rem;
}
section .prose > h3{
  margin-top: 44px;
  font-size: 1.2rem;
}
section .prose > h3 + p{ margin-top: 10px; }
section .prose > h4{
  margin-top: 40px;
  font-size: 1rem;
  color: var(--plasma);
}
section .prose > h4 + p{ margin-top: 10px; }
section .prose strong{ color: var(--star); }

.divider{
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0 auto;
  max-width: var(--max-w);
}

/* =========================================================
 *  Footer
 *  ========================================================= */
footer{
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.footer-brand img{ height: 26px; }
.footer-tag{
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.88rem;
  max-width: 320px;
}
.support-links{
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom{
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.8rem;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
}
.footer-bottom a:hover{ color: var(--star); }

/* =========================================================
 *  Responsive
 *  ========================================================= */
@media (max-width: 880px){
  .nav-links{ display: none; }
  .footer-top{ flex-direction: column; }
}

@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .hero{ padding: 140px 0 80px; }
  section{ padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
