/* ---------- Tokens ---------- */
:root{
  --bg: #080b16;
  --bg-panel: #0e1424;
  --bg-panel-2: #121a30;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.05);
  --text: #edeff5;
  --text-muted: #8992a8;
  --blue: #4c8dff;
  --gold: #e8b04b;
  --radius: 10px;
  --font-display: "Urbanist", sans-serif;
  --font-body: "Urbanist", sans-serif;
  color-scheme: dark;
}

[data-theme="light"]{
  --bg: #f6f7fb;
  --bg-panel: #ffffff;
  --bg-panel-2: #eef1f8;
  --line: rgba(16,19,31,0.10);
  --line-soft: rgba(16,19,31,0.06);
  --text: #10131f;
  --text-muted: #565f78;
  --blue: #2f5fc9;
  --gold: #8a5f12;
  color-scheme: light;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
h1,h2{ font-family: var(--font-display); margin:0; letter-spacing: -0.01em; }
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }

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

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor:pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--blue);
  color: #06070d;
  font-weight: 600;
}
.btn-primary:hover{ background: #6ba1ff; }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: rgba(255,255,255,0.25); }
.link-muted{ color: var(--text-muted); font-size:0.95rem; }
.link-muted:hover{ color: var(--text); }

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  padding: 1.25rem 1.5rem 0;
}
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display:flex;
  align-items:center;
  gap: 2.5rem;
  background: rgba(8,11,22,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
[data-theme="light"] .nav-inner{
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 30px rgba(16,19,31,0.10);
}
.wordmark{
  display:flex;
  align-items:center;
}
.logo-mark{
  display:block;
  width: 124px;
  height: 34px;
  background-color: var(--text);
  -webkit-mask: url('../assets/img/logo-dark.png') no-repeat left center / contain;
  mask: url('../assets/img/logo-dark.png') no-repeat left center / contain;
}
.footer-brand .logo-mark{ width: 113px; height: 31px; }
.nav-links{
  display:flex;
  gap: 2rem;
  margin-right: auto;
}
.nav-links a{
  font-size:0.95rem;
  color: var(--text-muted);
}
.nav-links a:hover{ color: var(--text); }
.nav-actions{ display:flex; align-items:center; gap:1.2rem; }
.nav-actions .btn{ padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.nav-toggle{ display:none; }

.theme-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 36px; height: 36px;
  padding:0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor:pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover{ color: var(--text); border-color: rgba(255,255,255,0.25); }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--line-soft);
}
#constellation{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.hero-inner{
  position:relative;
  z-index:2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width:100%;
}
.eyebrow{
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.hero h1{
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 14ch;
}
.hero-sub{
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-actions{
  margin-top: 2.2rem;
  display:flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- Facts strip ---------- */
.facts{
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-panel);
}
.facts-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.fact span{
  color: var(--text-muted);
  font-size: 0.92rem;
}
.fact-divider{
  width:1px; height:14px;
  background: var(--line);
}

/* ---------- Product spotlight ---------- */
.product{ padding: 6.5rem 1.5rem; }
.product-inner{
  max-width: 1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items:center;
}
.label{
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.product-copy h2{
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
}
.product-desc{
  margin-top: 1.2rem;
  color: var(--text-muted);
  max-width: 50ch;
  font-size: 1.03rem;
}
.feature-list{
  margin: 1.8rem 0 2.2rem;
  display:flex;
  flex-direction:column;
  gap: 0.75rem;
}
.feature-list li{
  position:relative;
  padding-left: 1.7rem;
  font-size: 0.98rem;
  color: var(--text);
}
.feature-list li::before{
  content:"";
  position:absolute;
  left:0; top:0.42em;
  width: 9px; height: 9px;
  border-radius:50%;
  border: 1.5px solid var(--blue);
}

.product-visual{
  display:flex;
  align-items:center;
  justify-content:center;
}
.doc-stack{
  position:relative;
  width: 300px;
  height: 300px;
}
.doc-sheet{
  position:absolute;
  width: 190px;
  height: 250px;
  left:50%;
  top:50%;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.doc-1{ transform: translate(-70%,-58%) rotate(-9deg); }
.doc-2{ transform: translate(-50%,-52%) rotate(4deg); }
.doc-3{ transform: translate(-38%,-46%) rotate(-2deg); background: var(--bg-panel-2); border-color: rgba(76,141,255,0.35); }
.doc-grid{
  position:absolute;
  right: 6px;
  bottom: 10px;
  width: 150px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.doc-grid span{
  width: 100%;
  padding-top: 100%;
  border-radius: 4px;
  background: rgba(76,141,255,0.12);
  border: 1px solid rgba(76,141,255,0.4);
  display:block;
}
.doc-grid span:nth-child(3n+2){ background: rgba(232,176,75,0.12); border-color: rgba(232,176,75,0.45); }

/* ---------- Growing / company ---------- */
.growing{
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-panel);
}
.growing-inner{
  max-width: 720px;
  margin:0 auto;
  padding: 5rem 1.5rem;
  text-align:center;
}
.growing h2{ font-size: clamp(1.6rem,3vw,2.1rem); font-weight:700; }
.growing p{ margin-top:1rem; color: var(--text-muted); font-size:1.03rem; }

.company{ padding: 6.5rem 1.5rem; }
.company-inner{ max-width: 780px; margin:0 auto; }
.company h2{ font-size: clamp(1.7rem,3.2vw,2.3rem); font-weight:700; max-width: 22ch; }
.company p{ margin-top: 1.4rem; color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact{
  border-top: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 6.5rem 1.5rem;
}
.contact-inner{
  max-width: 1080px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
.contact-copy h2{ font-size: clamp(1.8rem,3.2vw,2.3rem); font-weight:700; max-width: 16ch; }
.contact-copy p{ margin-top:1rem; color: var(--text-muted); max-width: 40ch; }

.contact-form{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display:flex;
  flex-direction:column;
  gap: 1.1rem;
}
.form-row{ display:flex; flex-direction:column; gap:0.4rem; }
.form-row label{ font-size:0.88rem; color: var(--text-muted); }
.form-row input, .form-row textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--blue);
}
.contact-form .btn{ align-self:flex-start; }
.form-note{ font-size: 0.9rem; color: var(--gold); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer{ border-top: 1px solid var(--line-soft); }
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand p{ margin-top:0.6rem; color: var(--text-muted); font-size:0.92rem; }
.footer-links{ display:flex; gap:1.8rem; }
.footer-links a{ color: var(--text-muted); font-size:0.92rem; }
.footer-links a:hover{ color: var(--text); }
.footer-bottom{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 2.2rem;
}
.footer-bottom p{ color: var(--text-muted); font-size:0.85rem; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .product-inner{ grid-template-columns: 1fr; }
  .product-visual{ order: -1; }
  .contact-inner{ grid-template-columns: 1fr; }

  .nav{ padding: 1rem 1rem 0; }
  .nav-inner{
    backdrop-filter: none;
    background: rgba(8,11,22,0.94);
    border-radius: 22px;
    gap: 0.75rem;
    padding: 0.7rem 1.1rem;
    flex-wrap: wrap;
  }
  [data-theme="light"] .nav-inner{ background: rgba(246,247,251,0.94); }
  .nav-actions{ gap: 0.8rem; }
  .logo-mark{ width: 106px; height: 29px; }

  .nav-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width: 44px; height: 44px;
    background:none; border:none;
    cursor:pointer;
    touch-action: manipulation;
    margin-left:auto;
  }
  .nav-toggle span{
    display:block;
    width: 22px;
    height:1.5px;
    background: var(--text);
    border-radius:2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle.active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2){ opacity:0; }
  .nav-toggle.active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links{
    display:none;
    order: 3;
    width:100%;
    flex-direction:column;
    gap: 0.9rem;
    padding-top: 1rem;
    margin-right: 0;
  }
  .nav-links.open{ display:flex; }
}
@media (max-width: 640px){
  .nav-actions .btn{ display:none; }
  .facts-inner{ flex-direction:column; }
  .fact-divider{ display:none; }
  .doc-stack{ width: 240px; height: 240px; }
  .doc-sheet{ width:150px; height:200px; }
}
