/* Jarvis dial landing — draft for Cloudflare Pages */

:root {
  --bg: #070b14;
  --bg-elevated: #0f1728;
  --ink: #eef2ff;
  --muted: #9aa6c2;
  --faint: #6b7794;
  --gold: #e8c47a;
  --gold-soft: rgba(232, 196, 122, 0.18);
  --gold-glow: rgba(232, 196, 122, 0.45);
  --teal: #6ee7d8;
  --teal-soft: rgba(110, 231, 216, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 216, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(232, 196, 122, 0.14), transparent 55%),
    radial-gradient(800px 700px at 50% 100%, rgba(88, 110, 200, 0.12), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 380px;
  height: 380px;
  background: rgba(110, 231, 216, 0.28);
  top: 8%;
  left: -6%;
}

.orb-b {
  width: 460px;
  height: 460px;
  background: rgba(232, 196, 122, 0.22);
  top: 18%;
  right: -10%;
  animation-delay: -6s;
  animation-duration: 22s;
}

.orb-c {
  width: 320px;
  height: 320px;
  background: rgba(120, 140, 255, 0.2);
  bottom: 5%;
  left: 35%;
  animation-delay: -11s;
  animation-duration: 26s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40px, -30px, 0) scale(1.08); }
  66% { transform: translate3d(-30px, 25px, 0) scale(0.94); }
}

.spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* Layout chrome */
.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.brand-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  animation: spin-slow 12s linear infinite;
  border-top-color: transparent;
  border-left-color: rgba(232, 196, 122, 0.25);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold) !important;
  border: 1px solid rgba(232, 196, 122, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(232, 196, 122, 0.28);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(110, 231, 216, 0.55);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 216, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(110, 231, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 216, 0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-icon {
  display: inline-flex;
}

.btn-primary {
  background: linear-gradient(135deg, #f0d28a, #d4a84a);
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(232, 196, 122, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(232, 196, 122, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 1rem 1.45rem;
  font-size: 1.02rem;
}

.soft-hint {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.soft-cta {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.soft-cta:hover {
  transform: none;
}

/* Dial stage */
.hero-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.dial-plate {
  position: relative;
  width: min(380px, 86vw);
  height: min(380px, 86vw);
  display: grid;
  place-items: center;
}

.dial-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 122, 0.28), transparent 70%);
  filter: blur(18px);
  animation: pulse-soft 3.5s ease-in-out infinite;
}

.dial-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dial-ring-1 {
  inset: 8%;
  border-color: rgba(232, 196, 122, 0.35);
  animation: spin-slow 28s linear infinite;
  border-style: dashed;
}

.dial-ring-2 {
  inset: 18%;
  border-color: rgba(110, 231, 216, 0.22);
  animation: spin-slow 18s linear infinite reverse;
}

.dial-ring-3 {
  inset: 28%;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 40px rgba(232, 196, 122, 0.08);
}

.dial-core {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(160deg, #18233a, #0c1322);
  border: 1px solid rgba(232, 196, 122, 0.35);
  box-shadow: var(--shadow), 0 0 40px rgba(110, 231, 216, 0.12);
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
}

.waveform span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
  animation: wave 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 14px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 26px; animation-delay: 0.08s; }
.waveform span:nth-child(3) { height: 34px; animation-delay: 0.16s; }
.waveform span:nth-child(4) { height: 22px; animation-delay: 0.24s; }
.waveform span:nth-child(5) { height: 40px; animation-delay: 0.32s; }
.waveform span:nth-child(6) { height: 28px; animation-delay: 0.4s; }
.waveform span:nth-child(7) { height: 18px; animation-delay: 0.48s; }
.waveform span:nth-child(8) { height: 32px; animation-delay: 0.56s; }
.waveform span:nth-child(9) { height: 24px; animation-delay: 0.64s; }
.waveform span:nth-child(10) { height: 16px; animation-delay: 0.72s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.dial-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 40, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: float-y 5.5s ease-in-out infinite;
}

.chip-a {
  top: 8%;
  right: -2%;
  animation-delay: 0s;
}

.chip-b {
  bottom: 18%;
  left: -8%;
  animation-delay: -1.8s;
}

.chip-c {
  bottom: 4%;
  right: 4%;
  animation-delay: -3.2s;
}

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

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about .section-inner,
.privacy .section-inner {
  max-width: 720px;
  padding: 2rem 2.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.privacy strong {
  color: var(--ink);
  font-weight: 600;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 196, 122, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.1rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.95rem;
}

.cta-band {
  padding-top: 1rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(232, 196, 122, 0.18), transparent 55%),
    radial-gradient(500px 220px at 100% 100%, rgba(110, 231, 216, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 196, 122, 0.22);
  box-shadow: var(--shadow);
}

.cta-panel-form {
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
}

.cta-panel-copy h2 {
  margin-bottom: 0.35rem;
}

.cta-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.footer-brand {
  margin: 0;
  color: var(--muted);
}

.footer-note {
  margin: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

.reveal-delay-3 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb,
  .brand-ring,
  .brand-dot,
  .pulse-dot,
  .dial-glow,
  .dial-ring,
  .waveform span,
  .float-chip {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
    gap: 2rem;
  }

  .hero-stage {
    order: -1;
    min-height: 340px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topnav a:not(.nav-cta) {
    display: none;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .float-chip {
    font-size: 0.78rem;
  }

  .chip-b {
    left: -2%;
  }
}

/* --- Expanded content layout (capabilities, audiences, privacy split) --- */

.section p + p {
  margin-top: 1rem;
}

.pull-quote {
  margin-top: 1.35rem !important;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--gold-soft);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  font-style: italic;
  line-height: 1.35;
}

.about .section-inner,
.privacy .section-inner {
  max-width: 800px;
  overflow: visible;
}

.section-head {
  max-width: 42rem;
}

.section-head p {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

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

.card {
  overflow: visible;
}

.card h3,
.card p {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.card p {
  line-height: 1.55;
}

.prose-panel {
  padding: 2rem 2.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: visible;
}

.prose-panel h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose-panel h3:first-of-type,
.prose-panel > h3:first-child {
  margin-top: 1.1rem;
}

.prose-panel h3.spaced {
  margin-top: 1.6rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  margin-top: 0.5rem;
  overflow: visible;
}

.feature-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  overflow: visible;
}

.feature-list li {
  margin: 0.45rem 0;
  padding-left: 0.15rem;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.feature-list-wide {
  columns: 1;
  max-width: 40rem;
}

.audience.alt .prose-panel {
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(110, 231, 216, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-card {
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  overflow: visible;
}

.split-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.split-yes {
  border-color: rgba(110, 231, 216, 0.28);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 216, 0.06);
}

.split-no {
  border-color: rgba(232, 196, 122, 0.28);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 122, 0.06);
}

.chip-d {
  top: 42%;
  left: -12%;
  animation-delay: -4.1s;
}

.chip-e {
  top: 18%;
  left: 8%;
  animation-delay: -2.6s;
}

.card-span {
  grid-column: 1 / -1;
}

.card-span p {
  max-width: 52rem;
}

.lede {
  max-width: 38rem;
  overflow: visible;
  white-space: normal;
}

.cta-panel-copy {
  overflow: visible;
  flex: 1;
  min-width: 0;
}

.cta-panel-copy p {
  overflow: visible;
  white-space: normal;
}

.topnav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.45rem;
}

@media (max-width: 960px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .chip-d {
    left: -2%;
    top: 48%;
  }

  .chip-e {
    left: 4%;
    top: 22%;
  }
}

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

  .prose-panel {
    padding: 1.35rem 1.25rem;
  }

  .topnav a:not(.nav-cta) {
    display: none;
  }
}

/* Request-line form (#connect) */
.request-line {
  width: 100%;
  max-width: 34rem;
}

.request-form {
  display: grid;
  gap: 0.9rem;
}

.request-form-lede {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.field-label abbr {
  color: var(--gold);
  text-decoration: none;
}

.optional {
  color: var(--faint);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(232, 196, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 196, 122, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

/* Honeypot — visually + assistively hidden */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 0.25rem;
}

.request-actions .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.request-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--faint);
}

.request-status {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: #f0a8a8;
}

.request-status.is-ok {
  color: var(--teal);
}

.request-thanks {
  padding: 1.25rem 0 0.25rem;
  animation: thanksIn 0.45s ease;
}

@keyframes thanksIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.thanks-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: rgba(110, 231, 216, 0.16);
  border: 1px solid rgba(110, 231, 216, 0.35);
  color: var(--teal);
  font-size: 1.15rem;
}

.request-thanks h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.request-thanks p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  max-width: 28rem;
}

.thanks-soft {
  color: var(--faint) !important;
  font-size: 0.9rem;
}

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