/* ArcoPraxis marketing site */

:root {
  --bg: #08080f;
  --bg-elevated: #11111c;
  --bg-card: #161622;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f0f5;
  --text-muted: #9898ae;
  --text-dim: #6b6b82;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-soft: rgba(99, 102, 241, 0.12);
  --success: #34d399;
  --danger: #f87171;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 48px));
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 15, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a[href="privacy.html"] {
  color: var(--text-dim);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 18px !important;
  background: var(--accent);
  color: white !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Typography helpers */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section {
  padding: 120px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-head h2,
.philosophy h2,
.detection-copy h2,
.story-copy h2,
.roadmap h2,
.tutorial h2,
.pricing-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(124, 58, 237, 0.12), transparent),
    var(--bg);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges li {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Device frame */
.device-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  justify-items: center;
  padding-bottom: 6%;
  padding-right: 8%;
}

.device-frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a3a, #1a1a28);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
}

.device-frame-ipad {
  width: 100%;
  max-width: 560px;
  z-index: 1;
}

.device-frame-iphone {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 34%;
  max-width: 180px;
  padding: 8px;
  border-radius: 28px;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.55);
}

.device-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #0c0c14;
  aspect-ratio: 4 / 3;
}

.device-screen-phone {
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Placeholders */
.placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card), #1e1e30);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.placeholder::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: center;
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.placeholder-sm {
  min-height: 120px;
}

.placeholder-wide {
  min-height: 280px;
}

.placeholder-portrait {
  aspect-ratio: 4 / 5;
  min-height: 320px;
}

/* App Store marketing embeds */
.app-icon-link {
  --app-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 230.5 230.5'%3E%3Cpath fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='1.4' clip-rule='evenodd' d='M158.2 230H64.1a320 320 0 0 1-7-.1c-5 0-10-.5-15-1.3a50.8 50.8 0 0 1-14.4-4.8 48.2 48.2 0 0 1-21-21 50.9 50.9 0 0 1-4.8-14.4 100.7 100.7 0 0 1-1.3-15v-7l-.1-8.2V64.1a320 320 0 0 1 .1-7c0-5 .5-10 1.3-15a50.7 50.7 0 0 1 4.8-14.4 48.2 48.2 0 0 1 21-21 51 51 0 0 1 14.4-4.8c5-.8 10-1.2 15-1.3a320 320 0 0 1 7 0l8.2-.1h94.1a320 320 0 0 1 7 .1c5 0 10 .5 15 1.3a52 52 0 0 1 14.4 4.8 48.2 48.2 0 0 1 21 21 50.9 50.9 0 0 1 4.8 14.4c.8 5 1.2 10 1.3 15a320 320 0 0 1 .1 7v102.3l-.1 7c0 5-.5 10-1.3 15a50.7 50.7 0 0 1-4.8 14.4 48.2 48.2 0 0 1-21 21 50.8 50.8 0 0 1-14.4 4.8c-5 .8-10 1.2-15 1.3a320 320 0 0 1-7 0l-8.2.1z'/%3E%3C/svg%3E");
  position: relative;
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  overflow: hidden;
  vertical-align: middle;
}

.app-icon-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: var(--app-icon-mask);
  -webkit-mask-image: var(--app-icon-mask);
}

.app-icon-link svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
}

.app-store-badge {
  display: inline-block;
  margin-bottom: 12px;
  line-height: 0;
}

.app-store-badge img {
  width: 200px;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
}

/* Philosophy */
.philosophy {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.philosophy .lead {
  margin: 20px 0 48px;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.phil-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.phil-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.phil-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.phil-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.phil-card-no {
  background: rgba(248, 113, 113, 0.04);
  border-color: rgba(248, 113, 113, 0.15);
}

.phil-card-no h3 {
  color: var(--danger);
}

.phil-card-no li::before {
  background: var(--danger);
  opacity: 0.6;
}

.phil-card-yes {
  background: var(--accent-soft);
  border-color: rgba(99, 102, 241, 0.25);
}

.phil-card-yes h3 {
  color: var(--accent-light);
}

.phil-card-yes li::before {
  background: var(--accent);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.feature-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 1.15fr);
  gap: 28px;
  align-items: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-card-wide .feature-icon {
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c14;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-shot-phone {
  max-width: 280px;
  margin-inline: auto;
  border-radius: 28px;
}

.feature-shot-phone img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.feature-shot-diagram {
  background: #0e0e18;
  padding: 20px 16px;
}

.feature-shot-diagram img {
  width: 100%;
  height: auto;
}

.import-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.import-tags span {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* Detection */
.detection {
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(99, 102, 241, 0.08), transparent),
    var(--bg);
}

.detection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detection-copy .lead {
  margin: 20px 0 32px;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-list li {
  padding: 20px 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.stat-list span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.detection-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detection-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detection-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c14;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.detection-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.detection-shot figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.detection-shot-sm {
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Flow */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.flow-step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  opacity: 0;
  transition: opacity 0.3s;
}

.flow-step:hover::before {
  opacity: 1;
}

.flow-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}

.flow-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 12px 0 8px;
}

.flow-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Tutorial video */
.tutorial .section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.tutorial .lead {
  margin-top: 12px;
  color: var(--text-muted);
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c14;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Story */
.story {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.story-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.story-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.story-prose p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.story-prose strong {
  color: var(--text);
}

.story-quote {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.story-quote p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-light);
  line-height: 1.5;
}

/* Roadmap */
.roadmap {
  text-align: center;
}

.roadmap .lead {
  margin: 20px auto 36px;
}

.roadmap-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.roadmap-items span {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.roadmap-items span:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text);
}

/* Pricing */
.pricing-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 56px;
  background: linear-gradient(160deg, var(--bg-card), #1a1a2e);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.pricing-copy p {
  margin: 20px 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-perks svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--success);
}

.pricing-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* Legal / privacy pages */
.legal {
  padding-top: calc(var(--header-h) + 64px);
  min-height: 60vh;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 8px;
}

.legal-updated {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.legal-prose {
  margin-top: 40px;
}

.legal-prose .lead {
  margin-bottom: 40px;
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-prose p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.legal-prose p + p {
  margin-top: 12px;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact form */
.contact .section-head {
  text-align: left;
  margin-bottom: 32px;
}

.contact .section-head .lead {
  margin-top: 12px;
  max-width: none;
}

.contact .section-head .lead a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact .section-head .lead a:hover {
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error:empty,
.contact-status:empty {
  display: none;
}

.field-error {
  font-size: 0.85rem;
  color: var(--danger);
}

.contact-status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.contact-status-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Launch sale banner */
[hidden] {
  display: none !important;
}

.sale-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  animation: sale-drop 0.5s var(--ease-out) both;
}

@keyframes sale-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.sale-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 40px 10px 0;
}

.sale-banner-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.sale-banner-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sale-banner-cta {
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: #3b2f8f;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.sale-banner-cta:hover {
  background: #f4f2ff;
  transform: translateY(-1px);
}

.sale-banner-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.sale-banner-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

.sale-banner-close svg {
  width: 18px;
  height: 18px;
}

/* Layout offsets while the banner is on screen */
body.sale-active .site-header {
  top: var(--banner-h, 0px);
}

body.sale-active .hero {
  padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 48px);
}

body.sale-active .legal {
  padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 64px);
}

.sale-flag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(219, 39, 119, 0.25));
  border: 1px solid rgba(219, 39, 119, 0.45);
  color: #f9d3e6;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .sale-banner {
    animation: none;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .detection-grid,
  .story-grid,
  .pricing-card,
  .philosophy-cards {
    grid-template-columns: 1fr;
  }

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

  .feature-card-wide {
    grid-template-columns: auto 1fr;
  }

  .feature-card-wide .feature-shot {
    grid-column: 1 / -1;
  }

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

  .stat-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 560px;
    margin-inline: auto;
    padding-bottom: 12%;
  }

  .device-frame-iphone {
    right: 0;
    bottom: 0;
    width: 32%;
  }

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

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .sale-banner-inner {
    padding-right: 34px;
  }

  .sale-banner-text {
    font-size: 0.85rem;
  }

  body.sale-active .nav-links {
    top: calc(var(--header-h) + var(--banner-h, 0px));
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: rgba(8, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .hero-scroll-hint {
    display: none;
  }
}
