/* Arclyte website (v2) — sleek dark theme */

:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg2: #070915;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);

  --accent: #388CFF;
  --accent2: rgba(56, 140, 255, 0.18);
  --good: #82b4ff;

  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.45);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
  --radius: 10px;
  --radius-sm: 6px;

  --wrap: 1120px;
  --g: 22px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { height: 100%; }
html {
  background: var(--bg);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Use explicit rgba(5,6,10,0) instead of transparent — iOS Safari treats transparent as black */
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(56, 140, 255, 0.12), rgba(5, 6, 10, 0) 60%),
    radial-gradient(900px 520px at 82% 0%, rgba(56, 140, 255, 0.08), rgba(5, 6, 10, 0) 62%),
    radial-gradient(700px 520px at 50% 110%, rgba(56, 140, 255, 0.06), rgba(5, 6, 10, 0) 60%);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid rgba(56, 140, 255, 0.65);
  outline-offset: 2px;
}

img, svg { display: block; }

.wrap {
  width: 100%;
  max-width: min(var(--wrap), 95vw);
  margin: 0 auto;
  padding-left: max(clamp(14px, 2.5vw, 22px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(14px, 2.5vw, 22px), env(safe-area-inset-right, 0px));
  padding-top: 0;
  padding-bottom: 0;
}

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.fineprint { color: var(--muted2); font-size: 0.86rem; line-height: 1.5; margin: 12px 0 0; }

.h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; margin: 0; }
.h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); letter-spacing: -0.02em; margin: 0; }
.h3 { font-size: 1.05rem; margin: 0 0 8px; }
.lead { font-size: 1.05rem; line-height: 1.6; margin: 14px 0 0; color: var(--muted); max-width: 56ch; }
.eyebrow { margin: 0 0 12px; color: var(--muted2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(5, 6, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  opacity: 0.7;
}
.topbar-inner { position: relative; }
@supports (backdrop-filter: blur(10px)) {
  .topbar { backdrop-filter: blur(14px); }
}
.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand--footer { opacity: 0.95; }
.brand-logo {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}
.brand-lambda { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.nav-link {
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  margin: 0 auto;
  box-shadow: 0 6px 0 rgba(255,255,255,0.85), 0 -6px 0 rgba(255,255,255,0.85);
}
.nav-mobile { display: none; }
.nav-mobile[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  border: 1px solid rgba(56, 140, 255, 0.38);
  background: rgba(56, 140, 255, 0.14);
  box-shadow: 0 10px 44px rgba(56, 140, 255, 0.08);
}
.btn-primary:hover { background: rgba(56, 140, 255, 0.20); border-color: rgba(56, 140, 255, 0.48); }
.btn-quiet { background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; }

.hero { padding: 64px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy { padding: 10px 0; }
.cta-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--muted2); font-weight: 600; }
.trust { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot-green { background: rgba(44, 230, 166, 0.95); }
.dot-blue { background: rgba(56, 140, 255, 0.95); }
.dot-purple { background: rgba(56, 140, 255, 0.95); opacity: 0.6; }

.hero-card { display: flex; justify-content: flex-end; }
.card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.12); }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.kicker { margin: 0 0 6px; color: rgba(255,255,255,0.62); font-weight: 700; font-size: 0.85rem; }
.price { text-align: right; }
.price-main { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.price-sub { color: var(--muted2); font-weight: 600; font-size: 0.92rem; margin-top: 2px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 12px; color: var(--muted); }
.checklist li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.20em;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='rgba(44,%20230,%20166,%200.95)'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2011.08V12a10%2010%200%201%201-5.93-9.14'/%3E%3Cpath%20d='m9%2011%203%203L22%204'/%3E%3C/svg%3E");
}
.checklist li::after { content: none; }

.checklist li.is-excluded { color: rgba(255, 255, 255, 0.48); }
.checklist li.is-excluded::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='rgba(255,%2099,%20132,%200.95)'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='m15%209-6%206'/%3E%3Cpath%20d='m9%209%206%206'/%3E%3C/svg%3E");
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tab:hover { background: rgba(255,255,255,0.06); }
.tab[aria-selected="true"] {
  color: rgba(255,255,255,0.92);
  border-color: rgba(56, 140, 255, 0.38);
  background: rgba(56, 140, 255, 0.10);
}
.tabpanels { margin-top: 14px; }
.media-placeholder {
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  padding: 16px;
  color: rgba(255,255,255,0.68);
}

.section { padding: 34px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(56, 140, 255, 0.10), rgba(255, 255, 255, 0.02));
}
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.footer-inner { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; }
.footer-link { color: var(--muted2); font-weight: 700; transition: color 0.15s var(--ease); }
.footer-link:hover { color: var(--text); }

/* Page layout helpers */
.page { padding: 22px 0 10px; }
.page-head { margin: 6px 0 14px; display: grid; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.74);
  font-weight: 800;
  font-size: 0.82rem;
  width: fit-content;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: grid; gap: 14px; }
.plan .price-main { font-size: 1.9rem; }
.plan-highlight { border: 1px solid rgba(56, 140, 255, 0.22); box-shadow: 0 24px 80px rgba(56, 140, 255, 0.06); }
.plan-highlight:hover { border-color: rgba(56, 140, 255, 0.35); box-shadow: 0 24px 80px rgba(56, 140, 255, 0.10); }
.plan-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-tag { font-weight: 800; color: rgba(56, 140, 255, 0.92); }

.form {
  display: grid;
  gap: 12px;
}
.field { display: grid; gap: 8px; }
.label { font-weight: 800; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input:focus {
  border-color: rgba(56, 140, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 140, 255, 0.12);
}
.input::placeholder { color: rgba(255,255,255,0.45); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.grow { flex: 1 1 auto; }

main {
  position: relative;
  z-index: 1;
  flex: 1;
}
.card { position: relative; z-index: 0; }
.glass { z-index: 1; }
.page { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }

/* Gate / access — centered column, notched devices, Turnstile host */
.page--gate,
.page--access {
  min-height: min(70vh, calc(100vh - 64px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(12px, 4vw, 28px);
  padding-bottom: clamp(16px, 5vw, max(32px, env(safe-area-inset-bottom, 0px)));
}
@supports (height: 100dvh) {
  .page--gate,
  .page--access {
    min-height: min(70vh, calc(100dvh - 64px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)));
  }
}
.page--gate .wrap,
.page--access .wrap {
  text-align: center;
  width: 100%;
}
.gate-card,
.access-card {
  width: 100%;
  max-width: min(400px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(20px, 5vw, 32px);
}
.access-card {
  text-align: left;
}
.access-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.turnstile-host {
  min-height: 65px;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gate-status {
  margin-top: 12px;
}
.gate-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 12px;
}
.gate-lead {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}

.notice {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.80);
  line-height: 1.5;
}
.notice-good {
  border-color: rgba(56, 140, 255, 0.38);
  background: rgba(56, 140, 255, 0.09);
  color: rgba(255, 255, 255, 0.93);
}
.notice-good .deliver-expiry-line strong { font-weight: 600; }
.notice-bad { border-color: rgba(255, 99, 132, 0.25); background: rgba(255, 99, 132, 0.06); color: #ff6384; }
.notice--loading { display: flex; align-items: center; gap: 14px; }
.notice--loading-text { flex: 1; min-width: 0; }
.loader { flex-shrink: 0; width: 24px; height: 24px; }
.loader--sm { width: 22px; height: 22px; }

/* Full-screen boot (gate) */
.page-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(56, 140, 255, 0.12), transparent 55%),
    rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(14px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-boot--out {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.page-boot[hidden] {
  display: none;
}
.page-boot__inner {
  text-align: center;
  max-width: 22rem;
  padding: 24px;
}
.page-boot__title {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
}
.page-boot__muted {
  margin: 0;
  opacity: 0.72;
  font-size: 0.95rem;
}
.preloader-square {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  opacity: 0.95;
}


.kv { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.kv-row:last-child { border-bottom: none; }
.kv-k { color: rgba(255,255,255,0.62); font-weight: 800; font-size: 0.9rem; }
.kv-v { color: rgba(255,255,255,0.86); font-weight: 700; word-break: break-word; }

.kv-v,
.input,
.notice { overflow-wrap: anywhere; }

/* Status badge for key info */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-good { background: rgba(56, 140, 255, 0.14); color: #b8d4ff; border: 1px solid rgba(56, 140, 255, 0.28); }

.copy-chip {
  padding: 2px 4px;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  font-size: 0;
}
.copy-chip svg {
  display: block;
  width: 13px;
  height: 13px;
}
.badge-muted { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid rgba(255,255,255,0.08); }

/* Mono text for keys/ids */
.mono { font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; font-size: 0.88em; letter-spacing: 0.02em; }

/* Very small phones */
@media (max-width: 420px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .topbar-inner { height: 60px; }
  .btn { width: 100%; }
  .cta-row { gap: 10px; }
  .card { padding: 16px; }
}

@media (min-width: 1600px) {
  :root { --wrap: 1180px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { justify-content: flex-start; }
  .pricing-grid, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-mobile {
    padding: 12px 18px 18px;
    display: grid;
    gap: 10px;
  }
  /* Match desktop colors on mobile — prevent iOS/Android from darkening */
  body { color: rgba(255, 255, 255, 0.92); }
  .card, .card.glass {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.085);
  }
  .card.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
    border-color: rgba(255,255,255,0.11);
  }
  .input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    -webkit-appearance: none;
    appearance: none;
  }
  .btn, .btn-quiet {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
  }
  .notice { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
}


@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
