/* Advanced Dental — marketing / splash landing.
   Reuses the addentalapp.com design language (dark, Geist, blue/teal accent) and
   showcases REAL screenshots of the live app. Static, zero-build, self-contained. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg:        #0b0d13;
  --bg-2:      #11141b;
  --surface:   #161a22;
  --surface-2: #1c212b;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #f3f6fa;
  --muted:     #9aa3b2;
  --muted-2:   #6b7280;
  --teal:      #19c2b3;
  --blue:      #3b82f6;
  --coral:     #e86a4e;
  --ok:        #34d399;
  --grad:      linear-gradient(135deg, #19c2b3 0%, #3b82f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(25,194,179,.16), rgba(59,130,246,.16));
  --radius:    16px;
  --maxw:      1180px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
  --font:      'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:      'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.eyebrow {
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--font); padding: 13px 22px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -8px rgba(25,194,179,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(59,130,246,.55); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(11,13,19,.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #04121a; font-weight: 800; box-shadow: 0 6px 18px -4px rgba(25,194,179,.6); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.preview-pill {
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral); border: 1px solid rgba(232,106,78,.4); background: rgba(232,106,78,.1);
  padding: 6px 10px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero { padding: 86px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-bg::before { width: 620px; height: 620px; left: -180px; top: -200px; background: radial-gradient(circle, rgba(25,194,179,.5), transparent 60%); }
.hero-bg::after  { width: 700px; height: 700px; right: -220px; top: -120px; background: radial-gradient(circle, rgba(59,130,246,.42), transparent 62%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 0; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); margin: 20px 0 0; max-width: 33em; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--muted-2); font-size: 13.5px; }
.hero-trust b { color: var(--text); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✦"; color: var(--teal); }

/* browser-chrome frame */
.frame { position: relative; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.frame .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4b; }
.frame .dot.r { background: #ff5f57; } .frame .dot.y { background: #febc2e; } .frame .dot.g { background: #28c840; }
.frame .url { margin-left: 12px; font: 500 12px/1 var(--mono); color: var(--muted-2); background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 7px; flex: 1; }
.frame img { width: 100%; height: auto; display: block; }
.hero-visual { position: relative; }
.hero-visual .frame { transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg); transition: transform .5s ease; }
.hero-visual:hover .frame { transform: perspective(1600px) rotateY(-2deg); }

/* offline failover dialog MOCKUP (overlaid on hero) */
.offline-mock {
  position: absolute; right: -14px; bottom: -22px; width: min(340px, 78%); z-index: 3;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 30px 70px -18px rgba(0,0,0,.85); padding: 18px; animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.offline-mock .om-head { display: flex; align-items: center; gap: 10px; }
.offline-mock .om-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(232,106,78,.16); display: grid; place-items: center; font-size: 17px; }
.offline-mock h4 { font-size: 15.5px; font-weight: 700; }
.offline-mock p { font-size: 13px; color: var(--muted); margin: 11px 0 15px; }
.offline-mock .om-btns { display: flex; gap: 9px; }
.offline-mock .om-btns button { flex: 1; font: 600 13px var(--font); padding: 9px; border-radius: 9px; border: 1px solid var(--border-2); background: transparent; color: var(--text); cursor: default; }
.offline-mock .om-btns .go { background: var(--grad); color: #04121a; border: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(232,106,78,.7); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,106,78,.6);} 70%{ box-shadow: 0 0 0 9px rgba(232,106,78,0);} 100%{ box-shadow:0 0 0 0 rgba(232,106,78,0);} }
.mock-tag { position: absolute; top: -11px; left: 14px; z-index: 4; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); background: var(--bg-2); border: 1px solid var(--border); padding: 5px 9px; border-radius: 999px; }

/* ---------- section heading ---------- */
.shead { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.shead h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; font-weight: 800; margin-top: 14px; }
.shead p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.section-pad { padding: 96px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-stage { position: relative; border-radius: 18px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.slide .frame { transform: none; }
.slide-cap { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; justify-content: center; text-align: left; flex-wrap: wrap; }
.slide-cap .num { font: 600 13px var(--mono); color: var(--teal); padding-top: 3px; }
.slide-cap h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.slide-cap p { color: var(--muted); font-size: 15px; max-width: 52ch; margin-top: 4px; }
.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.dots { display: flex; gap: 9px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border-2); cursor: pointer; transition: all .25s; padding: 0; }
.dots button.on { background: var(--grad); width: 28px; border-radius: 5px; }
.arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: 17px; cursor: pointer; transition: all .2s; display: grid; place-items: center; }
.arrow:hover { background: var(--surface-2); transform: scale(1.08); }
.autop { font: 500 11px var(--mono); color: var(--muted-2); letter-spacing: .06em; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; font-size: 21px; margin-bottom: 15px; }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }

/* ---------- always-online band ---------- */
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.band ul { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.band li b { color: var(--text); font-weight: 600; }
.band li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-top: 1px; }

/* ---------- registration form ---------- */
.reg { background: radial-gradient(900px 500px at 50% -10%, rgba(59,130,246,.12), transparent 60%); }
.reg-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.reg-card .formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  font: 400 15px var(--font); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,194,179,.18); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.reg-submit { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.reg-note { font-size: 12.5px; color: var(--muted-2); text-align: center; }
/* PORTAL-08 P3e — demo disclaimer, optional-consent hint, submit error. */
.demo-disclaimer { margin-top: 18px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); border: 1px solid rgba(240, 180, 90, 0.35); background: rgba(240, 180, 90, 0.08); border-radius: 8px; }
.consent a { color: var(--teal); text-decoration: underline; }
.consent .opt { color: var(--muted-2); }
.reg-error { display: none; margin-top: 16px; padding: 10px 12px; font-size: 13px; color: #ffd7d7; border: 1px solid rgba(240, 90, 90, 0.4); background: rgba(240, 90, 90, 0.1); border-radius: 8px; }
.reg-error.show { display: block; }
.success { display: none; text-align: center; padding: 26px 10px; }
.success.show { display: block; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.4); color: var(--ok); display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px; }
.success h3 { font-size: 22px; font-weight: 700; }
.success p { color: var(--muted); margin-top: 8px; }
form.hidden { display: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted-2); font-size: 13.5px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; opacity: .9; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .band .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual .frame { transform: none; }
  .offline-mock { position: relative; right: 0; bottom: 0; width: 100%; margin-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .reg-card .formgrid { grid-template-columns: 1fr; }
  .section-pad { padding: 70px 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav .brand span.full { display: none; }
  .reg-card { padding: 26px; }
}

/* PORTAL-08 P4c — legal (privacy/terms) DRAFT pages. */
.legal { max-width: 760px; margin: 0 auto; padding: 44px 22px 72px; color: var(--text); line-height: 1.65; }
.legal h1 { font-size: 30px; margin: 10px 0 6px; color: var(--text); }
.legal h2 { font-size: 18px; margin: 28px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal); text-decoration: underline; }
.legal-draft { border: 1px solid rgba(240, 180, 90, 0.4); background: rgba(240, 180, 90, 0.1); padding: 12px 14px; border-radius: 8px; color: #f2d9a8; }
.legal-back { display: inline-block; margin: 16px 0 4px; color: var(--muted-2); text-decoration: none; font-size: 13px; }
.legal-meta { color: var(--muted-2); font-size: 13px; }
.legal-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.legal code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; }

/* PORTAL-08 P4c — cookie/consent banner (privacy-preserving default). */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 760px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(16, 18, 26, 0.96); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1 1 320px; font-size: 13px; color: var(--muted); }
.cookie-text a { color: var(--teal); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
