:root {
  --bg: #070a12;
  --bg-elevated: #0d1220;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf5;
  --text-muted: #98a2b8;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.18);
  --accent-ink: #062622;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-width: 1120px;
  --radius: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

a {
  color: var(--accent);
}

.text-accent {
  color: var(--accent);
}

/* Eyebrow labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}

.bg-glow-1 {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -180px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 65%);
}

.bg-glow-2 {
  width: 720px;
  height: 720px;
  top: 10%;
  right: -260px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 65%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.74em;
  margin-left: 3px;
  background: var(--accent);
  animation: logo-cursor-blink 1.2s step-end infinite;
}

.logo:hover .logo-cursor {
  animation-play-state: paused;
  opacity: 1;
}

.logo-frontier {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
}

@keyframes logo-cursor-blink {
  50% {
    opacity: 0;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.btn) {
  display: none;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav > a:not(.btn):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 16px 32px;
  font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px -8px rgba(45, 212, 191, 0.6), 0 0 24px -6px rgba(45, 212, 191, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 16px 40px -8px rgba(45, 212, 191, 0.75), 0 0 32px -4px rgba(45, 212, 191, 0.65);
}

.btn-ghost {
  color: var(--text);
  padding: 15px 28px;
  font-size: 1.05rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-small {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 20px;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px -8px rgba(45, 212, 191, 0.7);
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(45, 212, 191, 0.9);
}

/* Hero */
.hero {
  padding: 84px 0 72px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .subhead {
  font-size: 1.15rem;
  max-width: 50ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.call-log {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: 0 30px 80px -40px rgba(45, 212, 191, 0.35);
  overflow: hidden;
}

.call-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.call-log-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.call-log-rows {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.call-log-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  animation: row-in 0.4s ease-out forwards;
}

.call-log-rows li:nth-child(1) { animation-delay: 0.2s; }
.call-log-rows li:nth-child(2) { animation-delay: 0.8s; }
.call-log-rows li:nth-child(3) { animation-delay: 1.5s; }
.call-log-rows li:nth-child(4) { animation-delay: 2.1s; }

.call-log-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.call-log-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
}

@keyframes row-in {
  to { opacity: 1; transform: none; }
}

/* Statement band */
.statement {
  padding: 0 0 32px;
  text-align: center;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 24ch;
  margin: 0 auto 16px;
}

.statement-sub {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section h2 {
  text-align: center;
}

/* Services & pricing */
.services {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service:hover {
  background: var(--surface-hover);
  border-color: rgba(45, 212, 191, 0.4);
}

.service-custom {
  background: transparent;
  border-style: dashed;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.service p {
  margin: 0;
  font-size: 0.97rem;
}

.service-price {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* How it works */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.97rem;
}

.price-note {
  max-width: 60ch;
  margin: 36px auto 0;
  text-align: center;
  font-size: 1.05rem;
}

.price-note strong {
  color: var(--text);
  font-family: var(--font-display);
}

/* Why me */
.why-me-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  position: relative;
}

.why-me-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.why-me-panel h2 {
  text-align: left;
}

.why-me-panel p {
  font-size: 1.05rem;
}

.why-me-panel p:last-child {
  margin-bottom: 0;
}

/* Live demo */
.demo-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(45, 212, 191, 0.16), transparent 60%),
    var(--bg-elevated);
  box-shadow: 0 30px 80px -40px rgba(45, 212, 191, 0.35);
  position: relative;
  overflow: hidden;
}

.demo-panel h2 {
  text-align: left;
}

.demo-copy p {
  font-size: 1.05rem;
}

.demo-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.5);
  background: var(--accent-soft);
  margin: 4px 0 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-number:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(45, 212, 191, 0.6);
}

.demo-note {
  font-size: 0.92rem;
  margin: 0;
}

.try-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.try-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.try-list strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.try-list li > span:last-child {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.try-check {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  position: relative;
  margin-top: 1px;
}

.try-check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* Demo: note above the try-list */
.demo-try .demo-note {
  margin-bottom: 16px;
}

/* Services: compact "also available" list */
.also-eyebrow {
  margin-top: 48px;
}

.also-list {
  margin-top: 20px;
}

/* CTA */
.cta-footer {
  padding-top: 40px;
}

.cta-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(45, 212, 191, 0.3), transparent 70%),
    radial-gradient(ellipse 60% 60% at 0% 0%, rgba(45, 212, 191, 0.18), transparent 60%),
    var(--bg-elevated);
  box-shadow: 0 30px 80px -40px rgba(45, 212, 191, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-panel p {
  font-size: 1.05rem;
  max-width: 54ch;
  margin: 0 auto 28px;
}

/* Intake form */
.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px auto 28px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.intake-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2398a2b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-hover);
}

.intake-form .btn {
  justify-self: center;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-thanks {
  display: none;
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.form-thanks:target {
  display: block;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot, .logo-cursor {
    animation: none;
  }

  .call-log-rows li {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .also-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-nav > a:not(.btn) {
    display: inline;
  }
}

/* Desktop */
@media (min-width: 860px) {
  .hero {
    padding: 110px 0 96px;
  }

  .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
  }

  .hero-copy .subhead {
    font-size: 1.25rem;
  }

  .why-me-panel {
    padding: 56px;
  }

  .service {
    grid-template-columns: 52px 1fr auto;
    padding: 28px 30px;
  }

  .service-price {
    grid-column: auto;
    justify-self: end;
    margin-top: 4px;
  }

  .demo-panel {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 56px;
  }

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

  .cta-panel {
    padding: 72px 48px;
  }
}
