/* ---------------------------------------------
   Constant Wave — design tokens
--------------------------------------------- */
:root {
  --bg:            #050708;
  --bg-alt:        #070d0e;
  --surface:       #0b1517;
  --surface-brd:   rgba(94, 234, 212, 0.16);
  --teal-deep:     #0b3d3d;
  --teal-mid:      #157069;
  --cyan:          #33e6d8;
  --cyan-soft:     #8ff3e6;
  --text:          #e9f7f5;
  --text-muted:    #86a6a2;
  --text-dim:      #4d6663;

  --font-display:  "Space Grotesk", "Inter", sans-serif;
  --font-body:     "Inter", sans-serif;
  --font-mono:     "IBM Plex Mono", monospace;

  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------
   Background canvas + atmosphere
--------------------------------------------- */
#wave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  background: radial-gradient(120% 90% at 50% 8%, #081416 0%, var(--bg) 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0px,
      rgba(0,0,0,0.08) 1px,
      rgba(0,0,0,0.0) 2px
    ),
    radial-gradient(120% 70% at 50% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%),
    radial-gradient(80% 60% at 50% 100%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}

/* ---------------------------------------------
   Page shell
--------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { display: block; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text);
}

.brand-name-thin {
  font-weight: 400;
  color: var(--cyan-soft);
  margin-left: 0.35em;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--surface-brd);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(51, 230, 216, 0.18);
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(640px, 78vh);
  padding: 40px 0 60px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
  opacity: 0.85;
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #04201d;
  background: linear-gradient(120deg, var(--cyan-soft), var(--cyan) 70%);
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 rgba(51,230,216,0);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 34px rgba(51, 230, 216, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.btn-ghost:hover { color: var(--cyan-soft); }

.arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-ghost:hover .arrow { transform: translateY(2px); }

/* ---------------------------------------------
   Capabilities — tag mesh
--------------------------------------------- */
.capabilities {
  padding: 20px 0 80px;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.cap-group .eyebrow { margin-bottom: 16px; }

.tag-mesh {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--surface-brd);
  border-radius: 8px;
  padding: 12px 18px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tag-lg {
  font-size: 15px;
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.26);
}

.tag:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan);
  background: rgba(51, 230, 216, 0.06);
  transform: translateY(-2px);
}

/* ---------------------------------------------
   Proof — recent work case cards
--------------------------------------------- */
.proof {
  padding: 8px 0 84px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.case-card {
  border: 1px solid var(--surface-brd);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  border-color: rgba(51, 230, 216, 0.4);
  background: rgba(51, 230, 216, 0.045);
  transform: translateY(-2px);
}

.case-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  margin: 0;
  text-transform: uppercase;
}

.case-line {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.case-stack {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--cyan-soft); }

.legal { color: var(--text-muted); }

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 640px) {
  .page { padding: 0 20px; }

  .site-header { padding: 20px 0; }

  .brand-name { font-size: 13px; letter-spacing: 0.14em; }

  .nav-cta {
    font-size: 11.5px;
    padding: 7px 11px;
  }

  .hero { min-height: auto; padding: 56px 0 48px; }

  .hero h1 { max-width: 100%; }

  .hero-actions { gap: 16px; }

  .capabilities { padding: 10px 0 64px; }

  .proof { padding: 4px 0 60px; }
  .case-grid { grid-template-columns: 1fr; gap: 12px; }

  .tag { font-size: 12.5px; padding: 10px 14px; }
  .tag-lg { font-size: 13.5px; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0 30px;
  }
}

@media (max-width: 380px) {
  .nav-cta { display: none; }
}

/* ---------------------------------------------
   Motion preference
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-ghost, .tag, .nav-cta { transition: none; }
}
