/* =========================================================
   Tessix — shared styles
   Dark theme inspired by SignalBloom: deep navy bg, teal
   accent with glow, gradient display text, structured cards.
   Theme tokens at the top so re-skinning is one place.
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #0a0e1a;
  --bg-elevated: #131a2a;
  --bg-card: #131a2acc;
  --bg-overlay: rgba(10, 14, 26, 0.88);

  /* Text */
  --text: #f8fafc;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-faint: #475569;

  /* Borders */
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);
  --border-soft: rgba(148, 163, 184, 0.08);

  /* Accent (teal/mint) */
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-tint: rgba(45, 212, 191, 0.10);
  --accent-tint-strong: rgba(45, 212, 191, 0.18);
  --accent-border: rgba(45, 212, 191, 0.32);
  --accent-glow: 0 0 24px rgba(45, 212, 191, 0.28), 0 0 4px rgba(45, 212, 191, 0.5);

  /* Gradient text (teal → blue, like SignalBloom) */
  --gradient-text: linear-gradient(95deg, #2dd4bf 0%, #38bdf8 55%, #60a5fa 100%);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0; }

::selection { background: var(--accent-tint-strong); color: var(--text-strong); }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== NAV ============== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px;
  gap: 24px;
  position: relative;
  z-index: 50;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent);
  box-shadow: var(--accent-glow);
}
.brand-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: none;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px;
}
@media (min-width: 768px) {
  .nav-links { display: inline-flex; }
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-strong); background: rgba(148, 163, 184, 0.06); }
.nav-links a.active {
  color: var(--text-strong);
  background: rgba(148, 163, 184, 0.08);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  color: var(--accent);
  background: var(--accent-tint);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--accent-tint-strong); box-shadow: var(--accent-glow); }

/* ============== EYEBROWS / PILLS ============== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  padding: 6px 14px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
  color: var(--text-strong);
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Buttons */
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #042f2c;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover {
  background: #5eead4;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(45, 212, 191, 0.4), 0 0 6px rgba(45, 212, 191, 0.6);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  color: var(--text-strong);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--border-strong); background: #1a2236; }

/* ============== STAT STRIP ============== */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(45, 212, 191, 0.02) 100%);
}
.stat-strip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .stat-strip-row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.stat-figure {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-strong);
  line-height: 1;
}
.stat-figure .gradient-text { font-size: inherit; }
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
}
.stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
}
.stat-source a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ============== GENERIC SECTION ============== */
section { padding: 96px 0; }
.section-h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 720px;
  color: var(--text-strong);
}
.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ============== PARALLAX USE-CASE SECTIONS ============== */
.parallax-section {
  position: relative;
  padding: 140px 24px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Direction varies per section for visual rhythm */
.parallax-section.from-left::before {
  background: linear-gradient(90deg,
    rgba(10, 14, 26, 0.97) 0%,
    rgba(10, 14, 26, 0.85) 45%,
    rgba(10, 14, 26, 0.55) 100%);
}
.parallax-section.from-right::before {
  background: linear-gradient(90deg,
    rgba(10, 14, 26, 0.55) 0%,
    rgba(10, 14, 26, 0.85) 55%,
    rgba(10, 14, 26, 0.97) 100%);
}
.parallax-section.center::before {
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 26, 0.6) 0%, rgba(10, 14, 26, 0.95) 70%);
}

.parallax-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.parallax-section.from-right .parallax-content { justify-items: end; }
.parallax-section.from-right .parallax-content > * { text-align: right; }

.uc-block {
  max-width: 580px;
  background: rgba(19, 26, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.uc-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.uc-h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin-bottom: 16px;
  line-height: 1.1;
}
.uc-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.uc-stat-row {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.uc-stat-fig {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.uc-stat-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.uc-stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
}
.uc-stat-source a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

/* Mobile: parallax fixed-attachment is bad on iOS, fall back */
@media (max-width: 768px) {
  .parallax-section { background-attachment: scroll; padding: 80px 24px; }
}

/* ============== STEPS ============== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-strong);
}
.step-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== VALUE PROPS (Why Us) ============== */
.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.value-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: 0; }
.value-item:first-child { padding-top: 0; }
@media (min-width: 768px) {
  .value-item { grid-template-columns: 240px 1fr; gap: 64px; }
}
.value-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.value-h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-strong);
}
.value-body {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
}

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
}
.contact-value:hover { color: var(--accent); }
.contact-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
}

/* Email-template helper */
.email-template {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  margin-top: 24px;
  overflow-x: auto;
}

/* ============== CTA BLOCK ============== */
.cta-block {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(45, 212, 191, 0.18) 0%, transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  max-width: 720px;
  position: relative;
}
.cta-block p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 620px;
  line-height: 1.65;
  position: relative;
}
.cta-block .cta-row { justify-content: flex-start; position: relative; }

/* ============== FOOTER ============== */
footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  max-width: 1100px;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--accent); }

/* ============== RESPONSIVE ============== */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .cta-block { padding: 40px 28px; }
  .cta-block h3 { font-size: 24px; }
  .uc-block { padding: 28px 24px; }
  .nav { padding: 18px 20px; }
  .stat-figure { font-size: 36px; }
}
