/* digitalforms.ai — landing page styles
   Dark by default, light via prefers-color-scheme. Fluid, no build step. */

:root {
  --bg:            #07070b;
  --bg-elev:       #0e0e15;
  --bg-card:       rgba(255, 255, 255, 0.035);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #f2f3f7;
  --text-muted:    #a2a4b4;
  --text-dim:      #70728a;
  --accent:        #7c6cff;
  --accent-2:      #38d9c4;
  --accent-text:   #a99dff;
  --on-accent:     #0a0a12;
  --danger:        #ff7a85;
  --ring:          rgba(124, 108, 255, 0.55);

  --radius:    18px;
  --radius-sm: 11px;

  /* Fluid shell: content grows with the viewport instead of sitting in a
     fixed column with dead space on either side. */
  --maxw:   1460px;
  --gutter: clamp(18px, 4.2vw, 68px);

  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            #fbfbfd;
    --bg-elev:       #ffffff;
    --bg-card:       rgba(10, 10, 30, 0.025);
    --border:        rgba(10, 10, 40, 0.10);
    --border-strong: rgba(10, 10, 40, 0.18);
    --text:          #12131a;
    --text-muted:    #545769;
    --text-dim:      #7c7f92;
    --accent:        #5b47f5;
    --accent-2:      #0e9e8b;
    --accent-text:   #4b38e0;
    --on-accent:     #ffffff;
    --danger:        #c62b3c;
    --ring:          rgba(91, 71, 245, 0.45);
    --shadow-lg:     0 30px 70px -34px rgba(20, 20, 60, 0.35);
  }
}

:root[data-theme="light"] {
  --bg:            #fbfbfd;
  --bg-elev:       #ffffff;
  --bg-card:       rgba(10, 10, 30, 0.025);
  --border:        rgba(10, 10, 40, 0.10);
  --border-strong: rgba(10, 10, 40, 0.18);
  --text:          #12131a;
  --text-muted:    #545769;
  --text-dim:      #7c7f92;
  --accent:        #5b47f5;
  --accent-2:      #0e9e8b;
  --accent-text:   #4b38e0;
  --on-accent:     #ffffff;
  --danger:        #c62b3c;
  --ring:          rgba(91, 71, 245, 0.45);
  --shadow-lg:     0 30px 70px -34px rgba(20, 20, 60, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 0.5vw + 14.5px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.tld {
  background: linear-gradient(100deg, var(--accent-text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.blob-1 {
  width: min(58vw, 680px); aspect-ratio: 1;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.85), transparent 68%);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: min(48vw, 560px); aspect-ratio: 1;
  top: -6vw; right: -10vw;
  background: radial-gradient(circle, rgba(56, 217, 196, 0.5), transparent 68%);
  animation: drift-2 32s ease-in-out infinite alternate;
}
.blob-3 {
  width: min(64vw, 760px); aspect-ratio: 1;
  top: 46%; left: 32%;
  background: radial-gradient(circle, rgba(255, 91, 168, 0.25), transparent 70%);
  animation: drift-3 38s ease-in-out infinite alternate;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .blob { opacity: 0.35; }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: clamp(44px, 4.5vw, 72px) clamp(44px, 4.5vw, 72px);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 12%, transparent 72%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .grid {
    background-image:
      linear-gradient(to right, rgba(10,10,40,0.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(10,10,40,0.06) 1px, transparent 1px);
  }
}

@keyframes drift-1 { to { transform: translate3d(6vw, 70px, 0) scale(1.14); } }
@keyframes drift-2 { to { transform: translate3d(-7vw, 50px, 0) scale(1.1); } }
@keyframes drift-3 { to { transform: translate3d(-5vw, -90px, 0) scale(0.9); } }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
  flex: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: none;
}
.mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin-inline: auto;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.nav-links a { text-decoration: none; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; }
.nav-links ~ .nav-cta { margin-left: 0; }

/* ---------- buttons ---------- */

.btn {
  --btn-py: 11px;
  --btn-px: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  color: #fff;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px color-mix(in srgb, var(--accent) 85%, transparent); }

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-text); }

.btn-sm  { --btn-py: 8px;  --btn-px: 16px; font-size: 0.88rem; }
.btn-lg  { --btn-py: 15px; --btn-px: 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero { padding: clamp(44px, 7vw, 104px) 0 clamp(48px, 8vw, 104px); }

.hero-grid {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  box-shadow: 0 8px 26px -14px color-mix(in srgb, var(--accent) 85%, transparent);
  font-size: clamp(0.92rem, 0.3vw + 0.85rem, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  /* Scales off the column, so it fills the width at every size. */
  font-size: clamp(2.7rem, 7.6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  overflow-wrap: break-word;
}

.lede {
  max-width: 58ch;
  font-size: clamp(1.04rem, 0.55vw + 0.92rem, 1.32rem);
  color: var(--text-muted);
}
.lede em { color: var(--text); font-style: normal; font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

/* hero side panel */

.hero-panel {
  border: 1px solid var(--border-strong);
  border-radius: clamp(var(--radius), 2vw, 24px);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 2.4vw, 30px);
}
.panel-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.panel-list { margin: 0 0 22px; display: grid; }
.panel-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.panel-list > div:last-child { border-bottom: 0; }
.panel-list dt { color: var(--text-muted); font-size: 0.92rem; }
.panel-list dd {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  text-align: right;
}

/* ---------- sections ---------- */

.section { padding: clamp(52px, 7.5vw, 112px) 0; }

.section-head { max-width: 62ch; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.7rem, 3.1rem);
  margin-bottom: 18px;
}

.section-lede {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.14rem);
}

/* two-column section (heading beside content) */

.split {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split .chips { margin-top: 4px; }
}

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(34px, 4vw, 56px);
}
/* 2x2 rather than a 3 + 1 orphan row on mid-size screens. */
@media (min-width: 620px) and (max-width: 1199px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card h3 { font-size: clamp(1.06rem, 0.3vw + 1rem, 1.2rem); margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.card-icon svg { width: 21px; height: 21px; }

/* chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.chips li:hover { color: var(--text); border-color: var(--border-strong); }

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  /* set below: three across from tablet up, so step 3 never orphans */
  gap: clamp(14px, 1.6vw, 24px);
  list-style: none;
  padding: 0;
  margin: clamp(34px, 4vw, 52px) 0 0;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1.1rem; margin-bottom: 9px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

.fineprint {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.89rem;
  max-width: 76ch;
}

/* ---------- offer ---------- */

.offer-section { padding-bottom: clamp(60px, 8vw, 120px); }

.offer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
}
@media (min-width: 940px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr); }
}

.offer-intro h2 { font-size: clamp(1.75rem, 2.4vw + 0.7rem, 2.9rem); }

.assurances {
  list-style: none;
  padding: 0;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  display: grid;
  gap: 12px;
}
.assurances li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.assurances li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.assurances li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.72em;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--accent-text);
  border-bottom: 1.8px solid var(--accent-text);
  transform: rotate(-45deg);
}

.offer-card {
  container-type: inline-size;
  border: 1px solid var(--border-strong);
  border-radius: clamp(var(--radius), 2.6vw, 24px);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 42px);
}

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }

/* Stacked by default; two-up only when the card itself is wide enough,
   so the inputs never get squeezed in the narrow two-column layout. */
.field-row { display: grid; gap: 0; }
@container (min-width: 430px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 0 18px; }
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.optional { color: var(--text-dim); font-weight: 400; }

input, textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }
textarea { resize: vertical; min-height: 108px; }

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

.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-weight: 600;
  pointer-events: none;
}
.input-prefix input { padding-left: 30px; }

.error {
  color: var(--danger);
  font-size: 0.84rem;
  margin-top: 6px;
}
.error:empty { display: none; }

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.direct {
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--border);
}
.direct-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 12px;
}
.direct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.direct-email {
  font-weight: 600;
  font-size: clamp(0.98rem, 0.4vw + 0.88rem, 1.12rem);
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  overflow-wrap: anywhere;
}
.direct-email:hover { border-bottom-color: currentColor; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: clamp(32px, 4vw, 52px) 0;
  background: color-mix(in srgb, var(--bg) 92%, #000);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .footer { background: color-mix(in srgb, var(--bg) 92%, #000 3%); }
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-mark { font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.footer-note { color: var(--text-muted); font-size: 0.9rem; max-width: 52ch; }
.footer-meta { color: var(--text-dim); font-size: 0.85rem; }
.footer-meta a { color: var(--text-muted); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

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

@media (max-width: 560px) {
  .cta-row .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: start; }
}

/* Very wide screens: let the shell keep growing (individual text columns
   are already capped in ch, so lines stay readable). */
@media (min-width: 1700px) {
  :root { --maxw: 1800px; --gutter: clamp(68px, 4.2vw, 96px); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}

@media print {
  .aurora, .nav, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
