/* Face Aura — static site styles */

:root {
  --bg: #0a0e17;
  --bg-elev: #101725;
  --bg-elev-2: #151d2e;
  --surface: #131b2b;
  --border: #22304a;
  --border-soft: #1a2438;
  --text: #eef3fb;
  --text-muted: #9fb0cc;
  --text-dim: #6f8099;
  --brand: #2f7bff;
  --brand-2: #4f9bff;
  --brand-strong: #1f6bff;
  --brand-glow: rgba(47, 123, 255, 0.35);
  --white: #ffffff;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --shadow: 0 20px 60px -20px rgba(3, 9, 22, 0.8);
  --shadow-soft: 0 10px 40px -18px rgba(3, 9, 22, 0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(47, 123, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(47, 123, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 8px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), filter 0.18s var(--ease);
  box-shadow: 0 8px 24px -8px var(--brand-glow);
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px -8px var(--brand-glow);
}

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

.btn-lg {
  padding: 18px 34px;
  min-height: 60px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  --btn-bg: transparent;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-elev-2);
  filter: none;
}

.btn-header {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 21px;
  font-weight: 700;
}

.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(47, 123, 255, 0.12);
  border: 1px solid rgba(47, 123, 255, 0.3);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-2), #8fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 60%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent);
  filter: blur(30px);
  z-index: -1;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}

.step {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px 18px 18px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(47, 123, 255, 0.14);
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Feature list with dots */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.15);
}

/* How it works — explainer */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-row .label {
  color: var(--text-muted);
}

.metric-row .vals {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-row .vals b {
  color: var(--brand-2);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.plan.featured {
  border-color: rgba(47, 123, 255, 0.5);
  box-shadow: 0 24px 60px -24px var(--brand-glow);
}

.plan-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(47, 123, 255, 0.12);
  border: 1px solid rgba(47, 123, 255, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-price .amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price .cur {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-meta {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.plan .feature-list {
  margin-bottom: 26px;
  flex: 1 1 auto;
}

.plan .feature-list li {
  font-size: 15px;
}

/* ---------- Support ---------- */
.support-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(120deg, var(--bg-elev-2), var(--surface));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list .k {
  color: var(--text-dim);
  font-size: 15px;
}

.info-list .v {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(47, 123, 255, 0.2), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band .lead {
  margin: 0 auto 28px;
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elev);
  padding: 48px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Legal / document pages ---------- */
.doc {
  padding: 48px 0 24px;
}

.doc-head {
  max-width: 760px;
  margin-bottom: 8px;
}

.doc-head h1 {
  font-size: clamp(28px, 4.4vw, 40px);
}

.doc-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 28px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 84px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.toc strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.toc a {
  color: var(--text-muted);
  font-size: 13.5px;
}

.toc a:hover {
  color: var(--text);
}

.doc-body {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.doc-body section {
  padding: 0 0 30px;
  scroll-margin-top: 84px;
}

.doc-body h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-top: 8px;
}

.doc-body h2 .n {
  color: var(--brand-2);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.doc-body p,
.doc-body li {
  color: var(--text-muted);
}

.doc-body p {
  margin: 0 0 12px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.doc-body strong {
  color: var(--text);
}

.callout {
  background: rgba(47, 123, 255, 0.08);
  border: 1px solid rgba(47, 123, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 16px;
  font-size: 15px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table a {
  overflow-wrap: anywhere;
}

.data-table th {
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
}

.data-table td {
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- Documents index (/docs) ---------- */
.doc-links {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-top: 28px;
}

.doc-link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.doc-link-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(47, 123, 255, 0.5);
  box-shadow: 0 22px 50px -24px var(--brand-glow);
}

.doc-link-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(47, 123, 255, 0.12);
  border: 1px solid rgba(47, 123, 255, 0.28);
  color: var(--brand-2);
}

.doc-link-icon svg {
  width: 24px;
  height: 24px;
}

.doc-link-body {
  display: grid;
  gap: 5px;
}

.doc-link-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc-link-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-link-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-dim);
  font-size: 22px;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.doc-link-card:hover .doc-link-arrow {
  color: var(--brand-2);
  transform: translateX(4px);
}

/* ---------- Scroll-reveal animations (JS-gated, motion-safe) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hover polish on interactive surfaces */
.card,
.step,
.plan {
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover,
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 123, 255, 0.35);
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 123, 255, 0.4);
  box-shadow: 0 26px 60px -28px var(--brand-glow);
}

.toc a.is-active {
  color: var(--brand-2);
  font-weight: 600;
}

/* Ambient hero glow — gentle breathing */
.hero-visual::after {
  animation: heroGlow 7s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page .code {
  font-size: clamp(72px, 16vw, 130px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand-2), #8fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .explainer-grid {
    grid-template-columns: 1fr;
  }
  .support-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 52px 0;
  }
  .nav {
    display: none;
  }
  .header-cta .btn {
    padding: 9px 16px;
  }
  .grid-3,
  .grid-2,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .plan-price .amount {
    font-size: 38px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cta-band {
    padding: 40px 20px;
  }
  .info-list li {
    flex-direction: column;
    gap: 2px;
  }
  .info-list .v {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
