:root {
  --bg-cream: #faf9f6;
  --text: #0f172a;
  --muted: #64748b;
  --dark: #121212;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-muted: #94a3b8;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 3rem;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.1);
  --font-sans: "Geist", "Sora", "Manrope", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--emerald);
  z-index: 999;
}

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1rem;
  z-index: 99;
}

.nav {
  width: min(840px, 94vw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.brand-mark,
.phone-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dark), #1f2937 50%, var(--blue));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.brand-type {
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #020617;
}

.waitlist-btn {
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.waitlist-btn:hover {
  transform: translateY(-1px);
  background: #000;
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: #0f172a;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  padding: 7.5rem 2rem 2rem;
  background: #f9f9f9;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 80;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}

.mobile-menu hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 1.8rem 0;
}

.hero {
  position: relative;
  padding: 9rem 0 4rem;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
}

.hero > :not(.hero-globe) {
  position: relative;
  z-index: 1;
}

.hero-globe {
  position: absolute;
  inset: 6% auto auto 52%;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.02) 0 26%, transparent 27%),
    radial-gradient(circle at center, rgba(37, 99, 235, 0.08), transparent 56%),
    repeating-conic-gradient(
      from 18deg,
      rgba(37, 99, 235, 0.08) 0deg 1deg,
      transparent 1deg 14deg
    ),
    repeating-radial-gradient(
      circle at center,
      transparent 0 18px,
      rgba(148, 163, 184, 0.08) 19px 20px
    );
  filter: blur(0.2px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-globe::before,
.hero-globe::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-globe::after {
  inset: 18%;
  border-color: rgba(37, 99, 235, 0.16);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.6rem);
  line-height: 1.06;
  margin: 0 0 1.2rem;
  letter-spacing: -0.04em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(to right, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  margin: 0 0 2rem;
  max-width: 520px;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: var(--muted);
}

.cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-dark:hover {
  transform: translateY(-2px);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.35);
  filter: blur(90px);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.phone {
  width: min(320px, 90vw);
  height: 640px;
  background: #020617;
  border-radius: 56px;
  padding: 12px;
  position: relative;
  transform-style: preserve-3d;
  animation: floatPhone 10s ease-in-out infinite;
  box-shadow: 0 30px 90px rgba(37, 99, 235, 0.2);
}

@keyframes floatPhone {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(-10px);
  }
  50% {
    transform: rotateY(15deg) rotateX(-5deg) translateY(10px);
  }
  100% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(-10px);
  }
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(71, 85, 105, 0.5);
  border-radius: 56px;
  pointer-events: none;
}

.phone-screen {
  height: 100%;
  border-radius: 44px;
  background: #f9f9f9;
  overflow: hidden;
  position: relative;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0.85rem 1.4rem 0;
}

.phone-header {
  padding: 1.1rem 1.4rem 0.8rem;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.phone-content {
  position: relative;
  height: calc(100% - 86px);
  padding: 0 1.4rem;
}

.phone-step {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-bottom: 4.2rem;
}

.phone-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.phone-step h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.phone-step p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}

.phone-step .phone-submit {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: auto;
  width: 100%;
}

.mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.85rem;
  margin-top: 0.7rem;
}

.mobile-card.selected {
  background: #eff6ff;
  border: 2px solid #2563eb;
}

.mobile-card.faded {
  opacity: 0.55;
}

.mobile-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-card .label {
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-card .sub {
  font-size: 0.65rem;
  color: #64748b;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #f1f5f9;
}

.phone-submit {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 16px;
  text-align: center;
  padding: 0.95rem;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #cbd5e1;
}

.section-light {
  padding: 6rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.section-title {
  text-align: center;
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
}

.toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.toggle-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f1f5f9;
  display: inline-flex;
  padding: 0.3rem;
  gap: 0.3rem;
}

.toggle-pill button {
  border: 0;
  background: transparent;
  font-weight: 600;
  color: #64748b;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.toggle-pill button.active-old {
  background: #ef4444;
  color: #fff;
}

.toggle-pill button.active-new {
  background: var(--emerald);
  color: #fff;
}

.compare-box {
  width: min(420px, 94vw);
  height: 410px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
}

.compare-card {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 1.8rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}

.compare-card.traditional {
  background: #fff;
  border: 1px solid #fecaca;
}

.compare-card.globypay {
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
}

.compare-card.hidden-left {
  opacity: 0;
  transform: rotateY(-90deg);
  pointer-events: none;
}

.compare-card.hidden-right {
  opacity: 0;
  transform: rotateY(90deg);
  pointer-events: none;
}

.compare-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 0.72rem;
  margin-top: 0.75rem;
}

.compare-item small {
  color: #64748b;
  display: block;
  margin-bottom: 0.25rem;
}

.compare-item strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.45;
}

.compare-pay {
  margin-top: 1rem;
  border: 0;
  width: 100%;
  border-radius: 12px;
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem;
}

.section-dark {
  background: #09090b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem 0;
}

.waitlist-wrap {
  padding: 0 0 7rem;
}

.waitlist-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  margin-top: 1rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.waitlist-copy h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.waitlist-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.waitlist-points {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.5rem;
}

.waitlist-point {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid #e2e8f0;
}

.waitlist-point strong {
  font-size: 1rem;
}

.waitlist-point span {
  color: var(--muted);
  line-height: 1.55;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
  align-self: center;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.waitlist-field {
  display: grid;
  gap: 0.45rem;
}

.waitlist-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #64748b;
}

.waitlist-field input,
.waitlist-field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  min-height: 52px;
}

.waitlist-field input:focus,
.waitlist-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.waitlist-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dark), #0f172a);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 1.3rem;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.waitlist-submit:hover {
  transform: translateY(-1px);
}

.story-hero p,
.story-copy p,
.story-cta,
.contact-intro {
  line-height: 1.7;
}

.story-item {
  align-items: start;
}

.story-copy {
  max-width: 30rem;
}

.story-copy.align-right {
  margin-left: auto;
}

.story-copy.align-left {
  margin-right: auto;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.steps-line {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #e2e8f0;
}

.step-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: #a1a1aa;
}

.api-wrap {
  padding: 7rem 0;
}

.api-card {
  background: #0a0a0a;
  color: #fff;
  border-radius: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2.5rem;
}

.api-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(128, 128, 128, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.api-left,
.api-right {
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.25rem;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}

.api-left h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

.api-left p {
  margin: 0 0 1.5rem;
  color: #a1a1aa;
  font-size: 1.1rem;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
}

.code-editor {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: #050505;
}

.editor-head {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #71717a;
}

.dot-row {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot.red {
  background: rgba(239, 68, 68, 0.85);
}

.dot.yellow {
  background: rgba(234, 179, 8, 0.85);
}

.dot.green {
  background: rgba(34, 197, 94, 0.85);
}

.editor-head span {
  margin-left: 0.8rem;
}

.code-editor pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1.25rem;
  font-family: var(--font-mono);
  color: #d4d4d8;
  line-height: 1.55;
  font-size: 0.85rem;
}

.kw {
  color: #c084fc;
}

.fn {
  color: #60a5fa;
}

.str {
  color: #6ee7b7;
}

.num {
  color: #fb923c;
}

.com {
  color: #71717a;
}

.cta-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.3);
  filter: blur(120px);
}

.cta-card {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 3rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

.cta-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.inline-form {
  display: flex;
  gap: 0.75rem;
  width: min(520px, 100%);
  margin: 0 auto;
}

.inline-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
}

.inline-form input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.inline-form button {
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  padding: 0.95rem 1.2rem;
  white-space: nowrap;
}

.page-body {
  padding: 9.5rem 0 6rem;
}

.contact-grid {
  width: min(1440px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 8rem);
}

.contact-title {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.contact-intro {
  margin: 0 0 2.8rem;
  color: #64748b;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  max-width: 560px;
}

.contact-list h4 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.contact-list a {
  display: inline-block;
  margin-bottom: 1.3rem;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 650;
}

.contact-list a:hover {
  color: #2563eb;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 3.2rem;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  color: #0f172a;
  padding: 0.8rem 0;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0f172a;
}

.field label {
  position: absolute;
  left: 0;
  top: -1.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
}

.big-submit {
  border: 0;
  background: transparent;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  cursor: pointer;
}

.big-submit:hover {
  color: #2563eb;
}

.story-hero {
  text-align: center;
  width: min(980px, 92vw);
  margin: 0 auto 6rem;
  padding-top: 10rem;
}

.story-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.story-hero h1 span {
  color: #cbd5e1;
}

.story-hero p {
  margin: 0 auto;
  color: #64748b;
  max-width: 920px;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
}

.story-line-wrap {
  position: relative;
  width: min(980px, 92vw);
  margin: 0 auto;
}

.story-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
  overflow: hidden;
}

.story-line-fill {
  width: 100%;
  height: 0;
  background: #2563eb;
  transition: height 1.4s ease;
}

.story-line-fill.grow {
  height: 100%;
}

.story-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 6rem;
}

.story-item.reverse {
  direction: rtl;
}

.story-item.reverse .story-copy {
  direction: ltr;
  text-align: left;
}

.story-dot {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 4px solid var(--bg-cream);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.story-dot.blue {
  background: #2563eb;
}

.story-dot.black {
  background: #0f172a;
}

.story-dot.green {
  background: #10b981;
}

.story-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

.story-copy p {
  margin: 0;
  color: #64748b;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
}

.story-cta {
  text-align: center;
  margin: 5rem auto 0;
  width: min(980px, 92vw);
}

.story-cta h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  letter-spacing: -0.04em;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer h3,
.footer h4 {
  margin-top: 0;
  color: #fff;
}

.footer h3 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.footer p {
  margin: 0.2rem 0 1.2rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1e293b;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: #2563eb;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer ul a:hover {
  color: #60a5fa;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  display: inline-block;
  margin-right: 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(79, 70, 229, 0.14), transparent 32%),
    #f8fafc;
}

.legal-shell {
  min-height: calc(100vh - 120px);
  padding: 8.5rem 0 4rem;
}

.legal-stage {
  position: relative;
  overflow: hidden;
  border-radius: 2.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.82)),
    repeating-linear-gradient(
      to right,
      rgba(148, 163, 184, 0.08) 0,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px,
      transparent 28px
    );
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
}

.legal-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.legal-stage h1 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-stage p {
  margin: 0;
  max-width: 56ch;
  color: #475569;
  line-height: 1.75;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.legal-highlights {
  margin-top: 1.45rem;
  display: grid;
  gap: 0.7rem;
}

.legal-highlights div {
  padding: 0.75rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 650;
}

.legal-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.legal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border: 1px solid #dbeafe;
  background: #fff;
  color: #1d4ed8;
}

.legal-action.primary {
  border: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.legal-3d-wrap {
  position: relative;
  min-height: 320px;
  perspective: 1100px;
}

.legal-3d-orb {
  position: absolute;
  inset: 16% auto auto 10%;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(96, 165, 250, 0.22) 42%, transparent 64%),
    conic-gradient(from 40deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12), rgba(79, 70, 229, 0.18));
  filter: blur(0.2px);
  opacity: 0.92;
  animation: legalFloatOrb 7s ease-in-out infinite;
}

.legal-3d-card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  transform-style: preserve-3d;
}

.legal-3d-card.one {
  top: 20px;
  right: 44px;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.24));
  transform: rotateY(-24deg) rotateX(10deg);
  animation: legalFloatCard 6s ease-in-out infinite;
}

.legal-3d-card.two {
  bottom: 34px;
  left: 18px;
  background: linear-gradient(130deg, rgba(16, 185, 129, 0.28), rgba(37, 99, 235, 0.2));
  transform: rotateY(20deg) rotateX(-8deg);
  animation: legalFloatCardTwo 6.6s ease-in-out infinite;
}

.legal-3d-grid {
  position: absolute;
  inset: auto 12px 8px auto;
  width: 110px;
  height: 72px;
  border-radius: 0.7rem;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 1px, transparent 1px);
  background-size: 14px 14px;
}

@keyframes legalFloatOrb {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.04);
  }
}

@keyframes legalFloatCard {
  0%,
  100% {
    transform: rotateY(-24deg) rotateX(10deg) translateY(0);
  }
  50% {
    transform: rotateY(-18deg) rotateX(6deg) translateY(-9px);
  }
}

@keyframes legalFloatCardTwo {
  0%,
  100% {
    transform: rotateY(20deg) rotateX(-8deg) translateY(0);
  }
  50% {
    transform: rotateY(14deg) rotateX(-4deg) translateY(-12px);
  }
}

@media (max-width: 1120px) {
  .api-card {
    grid-template-columns: 1fr;
  }

  .api-right {
    width: min(100%, 620px);
  }

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

  .steps-line {
    display: none;
  }

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

  .compare-box {
    width: min(100%, 760px);
    height: auto;
    perspective: none;
    display: grid;
    gap: 1rem;
  }

  .compare-card {
    position: relative;
    inset: auto;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .compare-item strong {
    word-break: break-word;
  }

  .legal-stage {
    grid-template-columns: 1fr;
  }

  .legal-3d-wrap {
    min-height: 240px;
  }
}

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

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-top: 8rem;
  }

  .hero-globe {
    inset: 0 auto auto 50%;
    width: min(110vw, 720px);
    opacity: 0.24;
  }

  .phone {
    width: min(360px, 94vw);
    height: min(560px, 80vh);
  }

  .phone-screen {
    border-radius: 40px;
  }

  .phone-content {
    padding: 0 1rem;
  }

  .phone-step {
    left: 1rem;
    right: 1rem;
    padding-bottom: 3.8rem;
  }

  .phone-step h3 {
    font-size: 1.15rem;
  }

  .phone-step p {
    font-size: 0.68rem;
  }

  .mobile-card {
    padding: 0.75rem;
    margin-top: 0.6rem;
    border-radius: 16px;
  }

  .phone-submit {
    padding: 0.82rem;
    border-radius: 14px;
  }

  .inline-form {
    flex-direction: column;
  }

  .waitlist-card {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    padding: 1rem;
  }

  .story-item,
  .story-item.reverse {
    grid-template-columns: 56px 1fr;
    direction: ltr;
    gap: 1rem;
  }

  .story-line {
    left: 28px;
    transform: none;
  }

  .story-copy {
    grid-column: 2;
  }

  .story-dot {
    width: 56px;
    height: 56px;
  }

  .story-copy,
  .story-copy.align-right,
  .story-copy.align-left {
    max-width: none;
    margin: 0;
    padding: 0 !important;
    text-align: left !important;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-shell {
    padding-top: 7.5rem;
  }

  .legal-stage {
    border-radius: 1.7rem;
    padding: 1.2rem;
  }

  .legal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-action {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 7.25rem;
    gap: 1.75rem;
  }

  .hero-globe {
    opacity: 0.18;
  }

  .section-light,
  .section-dark,
  .api-wrap {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .compare-card {
    padding: 1.3rem;
    border-radius: 24px;
  }

  .waitlist-card {
    border-radius: 2rem;
  }

  .waitlist-copy p,
  .waitlist-point span {
    font-size: 0.98rem;
  }

  .story-hero {
    margin-bottom: 4rem;
    padding-top: 8.5rem;
  }

  .story-item {
    margin-bottom: 4rem;
  }

  .phone-glow {
    width: 72%;
    height: 72%;
  }

  .phone-step {
    padding-bottom: 3.2rem;
  }

  .legal-shell {
    padding-top: 6.9rem;
    padding-bottom: 3rem;
  }

  .legal-stage h1 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .legal-3d-wrap {
    min-height: 210px;
  }

  .legal-3d-orb {
    width: 180px;
    inset: 22% auto auto 10%;
  }

  .legal-3d-card {
    width: 136px;
    height: 92px;
  }
}
