/*
  AppTestSite landing site styles
  © 2026 Roger Pingleton. All Rights Reserved.
*/

:root {
  --bg: #0b0817;
  --bg-2: #120c24;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.34);

  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --magenta: #d946ef;
  --pink: #f472b6;
  --cyan: #34e3e0;

  --text: #ece9f6;
  --text-muted: #ada3cf;
  --text-dim: #766e98;

  --grad: linear-gradient(135deg, #a78bfa 0%, #d946ef 60%, #f472b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(217, 70, 239, 0.14));

  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.45);
  --glow-magenta: 0 0 60px rgba(217, 70, 239, 0.35);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Layered atmospheric background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(139, 92, 246, 0.30), transparent 60%),
    radial-gradient(55% 45% at 88% 14%, rgba(217, 70, 239, 0.22), transparent 62%),
    radial-gradient(70% 60% at 50% 100%, rgba(52, 227, 224, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

/* Slow drifting glow orbs */
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.orb.a { width: 480px; height: 480px; top: -120px; left: -90px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7), transparent 70%);
  animation: drift 22s ease-in-out infinite; }
.orb.b { width: 420px; height: 420px; top: 10%; right: -120px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.55), transparent 70%);
  animation: drift 28s ease-in-out infinite reverse; }
.orb.c { width: 520px; height: 520px; bottom: -200px; left: 30%;
  background: radial-gradient(circle, rgba(52, 227, 224, 0.28), transparent 70%);
  animation: drift 34s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

/* Fine grain overlay for depth */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  padding: 26px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  box-shadow: var(--glow-violet);
  display: grid; place-items: center;
  position: relative;
}
.brand .mark::after {
  content: ""; width: 13px; height: 13px; border-radius: 4px;
  background: var(--bg);
}
.nav-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--text-muted); text-decoration: none;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-cta:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }

/* Hero */
.hero { position: relative; z-index: 2; padding: 64px 0 88px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-bright);
  padding: 7px 15px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface);
  margin-bottom: 30px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  max-width: 16ch;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 56px rgba(217, 70, 239, 0.45);
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 40px;
}

/* Email form */
.signup {
  max-width: 540px; margin: 0 auto;
}
.signup .row {
  display: flex; gap: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--glow-violet);
}
.signup input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px;
}
.signup input[type="email"]::placeholder { color: var(--text-dim); }
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  color: #14081f; cursor: pointer; white-space: nowrap;
  border: none; border-radius: 10px;
  padding: 13px 24px;
  background: var(--grad);
  transition: transform .15s ease, box-shadow .25s ease, filter .2s;
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.35);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 10px 40px rgba(217, 70, 239, 0.55); }
.btn:active { transform: translateY(0); }

.signup .extra {
  margin-top: 14px; text-align: left;
}
.signup .extra label { display: block; font-size: 0.82rem; color: var(--text-dim); margin: 0 4px 7px; font-family: var(--font-display); font-weight: 500; }
.signup textarea {
  width: 100%; min-height: 0; height: 46px; resize: vertical;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  padding: 11px 14px; outline: none; transition: border-color .2s;
}
.signup textarea:focus { border-color: var(--border-strong); }
.signup .reassure { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }
.signup .error { display: none; margin-top: 12px; color: var(--pink); font-size: 0.88rem; font-weight: 600; }
.signup.invalid .error { display: block; }
.signup.invalid .row { border-color: var(--pink); box-shadow: 0 0 30px rgba(244, 114, 182, 0.3); }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Section shell */
section.block { position: relative; z-index: 2; padding: 70px 0; }
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 50px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(167, 139, 250, 0.18), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 18px 50px rgba(76, 29, 149, 0.4); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  box-shadow: var(--glow-violet);
}
.card .icon svg { width: 23px; height: 23px; stroke: var(--violet-bright); fill: none; stroke-width: 1.8; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; margin-bottom: 11px; position: relative; }
.card p { color: var(--text-muted); font-size: 0.97rem; position: relative; }
.card .metric {
  display: inline-block; margin-top: 18px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  color: var(--cyan); padding: 6px 12px; border-radius: 8px;
  background: rgba(52, 227, 224, 0.08); border: 1px solid rgba(52, 227, 224, 0.22);
}

/* Value strip */
.value { position: relative; z-index: 2; padding: 24px 0 8px; }
.value .panel {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.value .item h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 9px; }
.value .item p { color: var(--text-muted); font-size: 0.95rem; }
.value .item .bar { width: 34px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 16px; box-shadow: var(--glow-magenta); }

/* Final CTA */
.final { position: relative; z-index: 2; padding: 80px 0 64px; text-align: center; }
.final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.final p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 36px; font-size: 1.05rem; }

/* Footer */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 34px 0 44px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .tag { font-family: var(--font-display); font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.site-footer .tag span { color: var(--violet-bright); }
.site-footer .copy { font-size: 0.85rem; color: var(--text-dim); }

/* Confirmation page */
.confirm { position: relative; z-index: 2; min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.confirm .inner { max-width: 600px; }
.check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 34px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  box-shadow: var(--glow-magenta);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.check svg { width: 44px; height: 44px; stroke: var(--cyan); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.confirm h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.confirm p { color: var(--text-muted); font-size: 1.12rem; max-width: 50ch; margin: 0 auto 14px; }
.confirm .you { color: var(--violet-bright); font-weight: 600; }
.confirm .back {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 30px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; color: #14081f;
  padding: 14px 28px; border-radius: 12px; background: var(--grad);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.35);
  transition: transform .15s, filter .2s, box-shadow .25s;
}
.confirm .back:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 10px 40px rgba(217, 70, 239, 0.55); }

/* Entrance animation */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2, .7, .3, 1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .30s; }
.reveal.d4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .value .panel { grid-template-columns: 1fr; gap: 26px; padding: 32px 26px; }
}
@media (max-width: 560px) {
  .signup .row { flex-direction: column; }
  .btn { width: 100%; }
  .hero { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .check { animation: none; }
  html { scroll-behavior: auto; }
}

