@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@200;300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050505;
  --panel-a: #0f0f0f;
  --panel-b: #111111;
  --border: #1e1e1e;
  --text: #f0ede8;
  --muted: #999990;
  --dim: #666660;
  --vdim: #3a3a3a;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  cursor: url('cosmos_cursor.png') 16 16, crosshair;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CANVAS */
#cosmos-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* CONTENT LAYER */
.site-wrapper {
  position: relative;
  z-index: 1;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo img { width: 110px; display: block; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  transition: border-color 0.2s, color 0.2s;
}

.nav-cta:hover { border-color: var(--muted); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--vdim);
}

/* ── BUTTONS ── */
.btn-mono {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.6rem;
  transition: border-color 0.2s, color 0.2s;
  cursor: url('cosmos_cursor.png') 16 16, crosshair;
}

.btn-mono:hover { border-color: var(--muted); }

.btn-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.btn-text:hover { color: var(--text); }

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--vdim);
  margin-bottom: 2rem;
}

/* ── DIVIDER ── */
.rule { width: 1px; height: 60px; background: var(--border); margin: 2rem auto; }

/* ── TICKER ── */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  padding: 0 2.5rem;
}

.ticker-item::after {
  content: '·';
  margin-left: 2.5rem;
  color: var(--vdim);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ══════════════════════════
   INDEX
══════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 5% 6rem;
}

.hero-logo { width: 480px; max-width: 90%; display: block; margin: 0 auto; }

.hero-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 2rem 0 1.5rem;
}

.hero-copy { margin-bottom: 0.5rem; }

.hero-copy p {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  animation: pulse-line 2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--vdim);
  writing-mode: vertical-rl;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* About strip */
.about-strip {
  border-top: 1px solid var(--border);
  padding: 7rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.about-statement {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.about-body p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-values {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.value-line {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.value-line .prefix { color: var(--vdim); margin-right: 0.6rem; }

.about-cta-wrap {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding-top: 3rem;
  text-align: center;
}

/* ══════════════════════════
   SERVICES
══════════════════════════ */

.page-hero {
  padding: 14rem 5% 6rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-hero .subline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
}

.services-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.service-row {
  border-bottom: 1px solid var(--border);
  cursor: url('cosmos_cursor.png') 16 16, crosshair;
  transition: background 0.2s;
}

.service-row:hover { background: #0c0c0c; }

.service-row-header {
  display: grid;
  grid-template-columns: 52px 1fr 1.1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.service-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--vdim);
}

.service-name {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s;
}

.service-row:hover .service-name { color: var(--text); }

.service-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.6;
}

.service-price {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* Drawer */
.service-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-drawer.open { max-height: 500px; }

.drawer-inner {
  padding: 0 0 2rem 52px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}

.drawer-item-name {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.drawer-item-price {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--vdim);
  white-space: nowrap;
}

/* Cosmos break */
.cosmos-break {
  height: 300px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.cosmos-break-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 4rem);
  letter-spacing: 0.25em;
  color: rgba(240,237,232,0.04);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.services-cta {
  border-top: 1px solid var(--border);
  padding: 6rem 5%;
  text-align: center;
}

.services-cta h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.services-cta .cta-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════
   PRICING
══════════════════════════ */

.page-hero-cta { margin-top: 2.5rem; }

.pricing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 5%;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.pricing-section:first-of-type { border-top: none; }

.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 0.8rem; }

.section-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--muted);
}

.pkg-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pkg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pkg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pkg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.pkg-card {
  background: var(--bg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pkg-card.featured {
  background: var(--panel-b);
  box-shadow: inset 0 0 0 1px var(--dim);
}

.pkg-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--vdim);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.pkg-card.featured .pkg-tag { color: var(--muted); }

.pkg-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pkg-price {
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.price-unit {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

.pkg-note {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.pkg-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0.9rem 0 1.6rem;
  flex: 1;
}

.pkg-sep {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.8rem;
}

.pkg-cta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  text-align: center;
  display: block;
  transition: color 0.2s, border-color 0.2s;
}

.pkg-cta:hover { color: var(--text); border-color: var(--muted); }

/* Bundle savings badge */
.save-badge {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--muted);
  padding: 0.3rem 0.55rem;
}

/* Marketing sub-groups */
.subgroup-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1.2rem;
}

.subgroup-label:first-of-type { margin-top: 0; }

.marketing-note {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--vdim);
  margin-top: 2rem;
}

/* ══════════════════════════
   SERVICES — drawer link
══════════════════════════ */
.drawer-link {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  margin-top: 1rem;
  display: inline-block;
  transition: color 0.2s;
}

.drawer-link:hover { color: var(--text); }

/* ══════════════════════════
   HOME — service pillars
══════════════════════════ */
.pillars-strip {
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
}

.pillars-strip .eyebrow { margin-bottom: 3rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: var(--bg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  min-height: 190px;
  transition: background 0.2s;
}

.pillar:hover { background: #0c0c0c; }

.pillar-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--vdim);
}

.pillar-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.pillar-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.pillar-arrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--dim);
  transition: color 0.2s;
}

.pillar:hover .pillar-arrow { color: var(--text); }

/* ══════════════════════════
   CONTACT
══════════════════════════ */

.contact-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 5% 6rem;
}

.contact-hero h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-hero .subline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Form */
.contact-form-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 4rem 5%;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.6rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  cursor: url('cosmos_cursor.png') 16 16, crosshair;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666660'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1rem;
}

.form-field select option { background: var(--bg); }

.form-field textarea {
  resize: none;
  height: 100px;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--muted);
}

.form-field .optional {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--vdim);
}

.btn-submit {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 1rem;
  cursor: url('cosmos_cursor.png') 16 16, crosshair;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 1rem;
}

.btn-submit:hover { border-color: var(--muted); }

/* Confirmation */
.form-confirm {
  display: none;
  text-align: center;
  padding: 3rem 0;
}

.form-confirm .confirm-check {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1rem;
}

.form-confirm .confirm-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Info strip */
.contact-info-strip {
  border-top: 1px solid var(--border);
  padding: 4rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.info-col h4 {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.info-col p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══════════════════════════
   MOBILE
══════════════════════════ */

@media (max-width: 860px) {

  .nav-links { display: none; }

  .hero-logo { width: min(320px, 85vw); }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .service-row-header {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }

  .service-desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .service-price {
    text-align: left;
    grid-column: 2;
    align-self: center;
  }

  .pkg-grid.cols-2,
  .pkg-grid.cols-3,
  .pkg-grid.cols-4 { grid-template-columns: 1fr; }

  .pillars-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr; gap: 2rem; }

  footer { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

  .footer-copy { align-self: flex-start; }
}

/* Tablet: 4-up grids drop to 2 columns before stacking */
@media (min-width: 861px) and (max-width: 1024px) {
  .pkg-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
