/* Colony website: the app's midnight-neon look (lib/theme/tokens.dart, CFDark). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #050816;
  --bg-2: #0a1030;
  --surface: rgba(20, 28, 70, 0.55);
  --surface-solid: #10173d;
  --border: rgba(120, 150, 255, 0.16);
  --border-strong: rgba(130, 160, 255, 0.34);
  --text: #f3f5ff;
  --text-2: #b6bfe6;
  --muted: #8790bd;
  --blue: #2f7bff;
  --violet: #7c4dff;
  --cyan: #3fd3ff;
  --grad: linear-gradient(100deg, #3a8bff 0%, #6d5cff 55%, #9a4dff 100%);
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(47, 123, 255, 0.30), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(124, 77, 255, 0.20), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(77, 92, 255, 0.16), transparent 70%);
  background-repeat: no-repeat;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
/* The app's neon wave, fading out instead of ending in a line. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: max(1100px, 100vw);
  background: url("/assets/art/midnight_neon_wave.webp") top center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  z-index: -2;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
/* The glow illustrations sit on near-black; screen blending drops that box. */
.mascot, .web-card img, .center img { mix-blend-mode: screen; }
section[id] { scroll-margin-top: 80px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-solid); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.center { text-align: center; display: grid; justify-items: center; gap: 18px; }
.muted { color: var(--muted); font-size: 14px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(5, 8, 22, 0.62); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 14px; }
.lang:hover { text-decoration: none; background: var(--surface); }
.lang .ico { width: 17px; height: 17px; }

/* ── Shared bits ── */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(124, 77, 255, 0.16); border: 1px solid rgba(150, 120, 255, 0.35); color: #cfc4ff; font-weight: 600; font-size: 14px; }
.pill .ico { width: 16px; height: 16px; color: var(--cyan); }
.pill.hot { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); border: 0; color: #fff; white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 19px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; color: #fff; }
.btn:hover { text-decoration: none; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); box-shadow: 0 10px 40px rgba(77, 92, 255, 0.45); }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; }
.g1 { width: 420px; height: 420px; background: rgba(47, 123, 255, 0.35); top: 40px; right: -80px; }
.g2 { width: 380px; height: 380px; background: rgba(124, 77, 255, 0.30); top: 280px; left: -120px; }
.tick { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 3px; }

/* ── Hero ── */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; }
.hero h1 span { display: block; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 15px; }
.trust li { display: inline-flex; gap: 8px; }
.hero-art { position: relative; min-height: 640px; }
.phone { margin: 0; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, rgba(110, 140, 255, 0.5), rgba(60, 40, 160, 0.35)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(77, 92, 255, 0.35); }
.phone img { border-radius: 36px; }
.phone-main { position: absolute; width: 300px; right: 150px; top: 0; z-index: 2; }
.phone-side { position: absolute; width: 250px; right: 0; top: 90px; opacity: 0.92; transform: rotate(5deg); }
.mascot { position: absolute; width: 150px; left: -40px; bottom: -20px; z-index: 3; }

/* ── Sections ── */
.section { padding: 84px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; display: grid; gap: 12px; }
.sec-head.left { text-align: left; margin: 0 0 30px; }
.sec-head h2, .web-card h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.sec-head p { color: var(--text-2); font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; display: grid; gap: 12px; align-content: start; transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature h3 { font-size: 20px; }
.feature p { color: var(--text-2); font-size: 16px; }
.feature-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, rgba(58, 139, 255, 0.3), rgba(154, 77, 255, 0.3)); border: 1px solid var(--border-strong); color: var(--cyan); }
.feature-ico .ico { width: 24px; height: 24px; }

.how-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grad); }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: 16px; }
.phone-how { width: 290px; justify-self: center; }

.plans { align-items: stretch; }
.plan { position: relative; padding: 32px 28px; display: grid; gap: 10px; align-content: start; }
.plan h3 { font-size: 24px; }
.plan-min { font-weight: 700; color: var(--cyan); }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; }
.plan li { display: flex; gap: 10px; }
.plan-hot { border-color: rgba(140, 110, 255, 0.7); box-shadow: 0 0 0 1px rgba(140, 110, 255, 0.4), 0 20px 60px rgba(77, 92, 255, 0.25); }

.web-card { display: flex; align-items: center; gap: 30px; padding: 36px 40px; background: linear-gradient(120deg, rgba(47, 123, 255, 0.18), rgba(124, 77, 255, 0.18)); border-color: var(--border-strong); }
.web-card img { width: 150px; flex: none; }
.web-card p { color: var(--text-2); margin-top: 10px; font-size: 18px; }

/* ── Documents (privacy, support) ── */
.doc { position: relative; padding: 64px 0 90px; isolation: isolate; }
.doc-head { display: grid; gap: 16px; justify-items: start; margin-bottom: 36px; }
.doc-head h1, .center h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.legal { display: grid; gap: 14px; }
.legal-item, .contact { padding: 24px 26px; }
.legal-item h2, .contact h2 { font-size: 19px; margin-bottom: 8px; }
.legal-item p, .contact p { color: var(--text-2); font-size: 16px; }
.contact { margin-top: 24px; border-color: var(--border-strong); }
.faq-title { font-size: 24px; margin: 8px 0 16px; }
.faqs { display: grid; gap: 12px; }
.faq { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 24px 22px; color: var(--text-2); font-size: 16px; }
.center img { width: 170px; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; background: rgba(5, 8, 22, 0.6); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand p { color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-nav a { color: var(--text-2); font-size: 15px; }
.foot-legal { color: var(--muted); font-size: 13px; margin-top: 26px; }

/* ── Small screens ── */
@media (max-width: 960px) {
  .hero-in, .how-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone-main { right: auto; left: 50%; transform: translateX(-62%); width: 270px; }
  .phone-side { width: 220px; right: 4%; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .phone-how { width: 260px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 44px; }
  .lead { font-size: 17px; }
  .hero-art { min-height: 470px; }
  .phone-main { width: 230px; transform: translateX(-70%); }
  .phone-side { width: 180px; top: 70px; right: 0; }
  .mascot { display: none; }
  .grid3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .web-card { flex-direction: column; text-align: center; padding: 30px 22px; }
  .btn { width: 100%; }
  .ctas { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature { transition: none; }
}
