/* ============================================================
   ADSC Community — Liquid Glass design system
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-soft: #0a0e1c;
  --ink: #eef2ff;
  --ink-dim: rgba(238, 242, 255, 0.62);
  --ink-faint: rgba(238, 242, 255, 0.38);

  --accent-1: #6366f1; /* indigo   */
  --accent-2: #a855f7; /* violet   */
  --accent-3: #22d3ee; /* cyan     */

  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-highlight: rgba(255, 255, 255, 0.22);

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --danger: #fb7185;
  --success: #34d399;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ---------- Ambient background: aurora orbs + grid ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(50% 45% at 10% 90%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}

.orb-1 { width: 480px; height: 480px; top: -140px; left: -120px;
         background: radial-gradient(circle, var(--accent-1), transparent 70%); }
.orb-2 { width: 420px; height: 420px; top: 30%; right: -160px;
         background: radial-gradient(circle, var(--accent-2), transparent 70%);
         animation-delay: -7s; animation-duration: 28s; }
.orb-3 { width: 380px; height: 380px; bottom: -120px; left: 30%;
         background: radial-gradient(circle, var(--accent-3), transparent 70%);
         animation-delay: -14s; animation-duration: 25s; opacity: 0.4; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Glass primitives ---------- */

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-dim);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  border-color: var(--glass-border);
  background: var(--glass);
}

/* icon-only website link */
.nav-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink-dim);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.nav-icon:hover {
  color: var(--ink);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

/* ---------- Layout ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
}

/* ---------- Hero (left column) ---------- */

.hero { position: sticky; top: 110px; }
@media (max-width: 900px) { .hero { position: static; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  margin: 22px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  background: linear-gradient(100deg, var(--accent-3), var(--accent-1) 45%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  color: var(--ink-dim);
  font-size: 16.5px;
  max-width: 46ch;
}

.hero-points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.hero-points li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-points .icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-points strong { display: block; font-size: 14.5px; font-weight: 600; }
.hero-points span   { font-size: 13px; color: var(--ink-dim); }

/* ---------- Form card (right column) ---------- */

.card {
  border-radius: var(--radius-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.card::before {
  /* liquid specular sweep across the top edge */
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

@media (max-width: 520px) { .card { padding: 24px 20px; } }

.card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card .sub {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin: 4px 0 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='rgba(238,242,255,0.5)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.field select option { background: var(--bg-soft); color: var(--ink); }

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

.field input:focus,
.field select:focus {
  border-color: rgba(99, 102, 241, 0.75);
  background: rgba(99, 102, 241, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 4px rgba(99, 102, 241, 0.18);
}

.field.invalid input,
.field.invalid select { border-color: rgba(251, 113, 133, 0.7); }

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

.field.invalid .error { display: block; }

/* ---------- Interest chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 9px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.18s ease;
  user-select: none;
}

.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }

.chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.75));
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 16px rgba(99, 102, 241, 0.35);
}

/* ---------- Submit button ---------- */

.btn {
  width: 100%;
  margin-top: 24px;
  padding: 15px 24px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 60%, var(--accent-3) 130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 36px rgba(99, 102, 241, 0.5);
}

.btn:active { transform: translateY(0) scale(0.99); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn .shine {
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% { left: -80%; }
  100% { left: 130%; }
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
}

.form-alert {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.10);
  color: #fecdd3;
}

.form-alert.show { display: block; }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Success state ---------- */

.success {
  display: none;
  text-align: center;
  padding: 40px 10px 24px;
}

.success.show { display: block; animation: rise 0.5s ease both; }

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

.success .ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
  background: radial-gradient(circle at 30% 25%, rgba(52, 211, 153, 0.35), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.success p { color: var(--ink-dim); font-size: 14.5px; max-width: 38ch; margin: 0 auto; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 26px auto 0;
  padding: 12px 24px;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.35);
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.5);
}

/* ---------- Footer ---------- */

.footer {
  max-width: 1120px;
  margin: 24px auto 36px;
  padding: 0 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover { color: var(--ink); }
