/* ChakraSpace — site stylesheet (dark, space theme) */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --panel: rgba(16, 22, 36, 0.72);
  --panel-solid: #101624;
  --line: rgba(160, 180, 220, 0.14);
  --line-strong: rgba(160, 180, 220, 0.28);
  --text: #e8ecf4;
  --muted: #9aa5b8;
  --faint: #6b7588;
  --accent: #e5484d;
  --accent-soft: rgba(229, 72, 77, 0.14);
  --glow: #6f8cff;
  /* Letterhead fonts: Georgia for the wordmark and headings, Palatino for text */
  --head: Georgia, "Times New Roman", serif;
  --body: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "TeX Gyre Pagella", Georgia, serif;
  --max: 72rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Space background: canvas starfield + nebula glow, fixed behind everything */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}
.nebula {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(80, 100, 220, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(229, 72, 77, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(120, 80, 200, 0.06), transparent 70%);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

a { color: var(--text); text-underline-offset: 0.18em; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.eyebrow {
  font-family: var(--head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}
/* Wordmark, as on the letterhead: Georgia, bold "Chakra" + regular "Space" */
.name {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.name b { font-weight: 700; }
nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
nav a[aria-current="page"] { color: var(--text); }
nav a.nav-cta { color: #fff; background: var(--accent); margin-left: 0.4rem; }
nav a.nav-cta:hover { background: #f05a5f; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #f05a5f; color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.07); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 10rem;
}
.hero > .wrap { width: 100%; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; margin: 0 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Planet horizon at the bottom of the hero */
.horizon {
  position: absolute;
  left: 50%;
  bottom: -165vw;
  width: 200vw;
  height: 200vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #121a2e 0%, #070a12 30%, var(--bg) 60%);
  box-shadow:
    0 -2px 0 0 rgba(140, 170, 255, 0.35),
    0 -20px 60px -10px rgba(111, 140, 255, 0.35),
    0 -60px 160px -20px rgba(111, 140, 255, 0.18);
  pointer-events: none;
}
@media (min-width: 900px) { .horizon { bottom: -190vw; } }

/* Hero layout: text left, illustration right */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; display: block; max-width: 30rem; margin-left: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 22rem; margin: 0 auto; }
}

/* Illustration motion: the satellite floats, the coils pulse, the light blinks */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .float { animation: float 6s ease-in-out infinite; }
  .hero-art .coil { animation: pulse 4s ease-in-out infinite; }
  .hero-art .blink { animation: blink 2.4s steps(1) infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.2; } }

/* Sections */
section { padding: 6rem 0; position: relative; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  backdrop-filter: blur(6px);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.card h3 { font-size: 1.45rem; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 0.6rem; color: var(--text); font-weight: 500; text-decoration: none; }
.card .more:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

/* Photo placeholder (swap for <img> when photos are ready) */
.photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(111, 140, 255, 0.10), rgba(229, 72, 77, 0.06)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo:has(img) { background: var(--bg-2); }
.photo.framed { overflow: hidden; }
.photo.framed { border: 1px solid var(--line); border-radius: var(--radius); }
.photo.portrait { aspect-ratio: 1 / 1; }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.feature {
  padding: 1.6rem;
  border-top: 1px solid var(--line-strong);
}
.feature .num { font-family: var(--head); color: var(--accent); font-size: 0.9rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 120% at 50% 120%, rgba(229, 72, 77, 0.18), transparent 70%),
    var(--panel);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); margin: 0 auto 2rem; max-width: 34rem; }

/* Page header (inner pages) */
.page-head { padding: 5rem 0 3rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.page-head .lead { color: var(--muted); font-size: 1.15rem; max-width: 40rem; margin: 0; }
.crumbs { font-size: 0.88rem; color: var(--faint); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Product detail */
.product-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .product-top { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 0.8rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.thumbs .photo { aspect-ratio: 4 / 3; font-size: 0.7rem; }
.prose p { color: var(--muted); margin: 0 0 1rem; }
.prose h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: var(--text); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.spec-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .spec-wrap { grid-template-columns: 1fr; } }
.spec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.spec h3 { font-size: 1.05rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.8rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: none; }
th { font-weight: 400; color: var(--muted); padding-right: 1rem; width: 50%; }
td { font-family: var(--head); font-weight: 400; }
.fine { font-size: 0.85rem; color: var(--faint); margin-top: 1.25rem; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.app {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.02);
}
.app h4 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.app p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.member { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.member .card-body { gap: 0.4rem; }
.member h3 { font-size: 1.25rem; }
.member .role { color: var(--accent); font-size: 0.9rem; margin: 0; }
.member p { color: var(--muted); margin: 0.4rem 0 0; font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.info-list .label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.info-list .value { color: var(--text); }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--accent); }

form.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.opt { color: var(--faint); }
input, textarea, select {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 7, 13, 0.6);
  width: 100%;
}
select option { background: var(--panel-solid); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.2); }
.hp { display: none; }
form .btn { justify-self: start; }
.form-status { margin: 0; color: var(--text); }
.form-status:empty { display: none; }
.privacy { margin: 0; font-size: 0.85rem; color: var(--faint); }
.privacy a { color: var(--muted); }

/* Legal */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.45rem; margin: 3rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal table th { width: 40%; }
.legal table td { font-family: var(--body); font-weight: 400; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.85);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .name { font-size: 1.35rem; color: var(--text); }
.foot-grid p { margin: 0.6rem 0 0; max-width: 22rem; }
.legal-line { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.8rem; color: var(--faint); }
.legal-line p { margin: 0.2rem 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0 8rem; min-height: auto; }
  nav a { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
  nav a.hide-sm { display: none; }
}
