@font-face { font-family: "Chakra Petch"; font-weight: 400; font-display: swap; src: url("chakra-petch-400.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("chakra-petch-600.woff2") format("woff2"); }

/* Light and neon: white, cyan and orange (the same look as the Flakey app) */
:root {
  --bg: #f2fdff;
  --cyan-rgb: 0, 188, 226;
  --cyan: rgb(var(--cyan-rgb));
  --neon: #00dcff;
  --orange: #ff7a1a;
  --text: #08283a;
  --muted: #55778a;
  --hud: "Chakra Petch", Bahnschrift, "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%2300c8ee' stroke-opacity='.2' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M0 30H50L70 50H160M30 160V110L50 90H110L130 70V0M90 160V130H160'/%3E%3C/g%3E%3Cg fill='%23fff' stroke='%23ff8a2b' stroke-opacity='.5' stroke-width='1.6'%3E%3Ccircle cx='50' cy='30' r='3.5'/%3E%3Ccircle cx='110' cy='90' r='3.5'/%3E%3Ccircle cx='90' cy='130' r='3.5'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 96% 3%, rgba(255, 186, 128, .8) 0, transparent 38%),
    radial-gradient(circle at 2% 30%, rgba(110, 232, 255, .7) 0, transparent 46%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; }
h1, h2, h3, .eyebrow, .soon-pill, nav a, .btn, .brand span, small { font-family: var(--hud); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--cyan); color: #fff; border-radius: 4px; }
.skip:focus { left: 8px; }

/* header: a floating neon capsule */
.top {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1100px, 100% - 24px);
  margin: 10px auto 0;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .7), 0 0 24px rgba(var(--cyan-rgb), .4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.brand span { font-weight: 600; font-size: 1.1rem; letter-spacing: .22em; text-transform: uppercase; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--text); background: rgba(var(--cyan-rgb), .12); }
.soon-pill { padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #ffa447, #ff5e10); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 14px rgba(255, 110, 20, .6); }

/* sections */
main { overflow-x: clip; }
.block, .hero { width: min(1100px, 100% - 40px); margin: 0 auto; }
.block { padding: 84px 0; }
.block.alt { width: 100%; padding-left: max(20px, calc((100vw - 1100px) / 2)); padding-right: max(20px, calc((100vw - 1100px) / 2)); background: rgba(255, 255, 255, .55); border-block: 1.5px solid rgba(var(--cyan-rgb), .25); }
h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--neon); box-shadow: 0 0 10px var(--neon), 0 0 22px var(--neon); }
.sub { margin: 14px 0 34px; color: var(--muted); max-width: 640px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 60px 0 40px; min-height: calc(100vh - 80px); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: .82rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.08; font-weight: 600; letter-spacing: .02em; }
h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 22px rgba(var(--cyan-rgb), .55); }
.lead { max-width: 560px; margin: 0 0 28px; color: #28475a; font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 26px; border: 0; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.btn.primary { background: linear-gradient(135deg, #ffa447, #ff5e10); color: #fff; box-shadow: 0 0 20px rgba(255, 110, 20, .6); }
.btn.primary:hover { box-shadow: 0 0 34px rgba(255, 110, 20, .9); transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, .85); color: var(--muted); box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .4); cursor: default; }
.note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; max-width: 520px; }
.note.center { text-align: center; max-width: none; margin-top: 26px; }

/* the reactor (transform-only animation: cheap on any device) */
.reactor { position: relative; display: grid; place-items: center; }
.reactor svg { width: min(100%, 440px); height: auto; overflow: visible; filter: drop-shadow(0 0 12px rgba(0, 220, 255, .75)); }
.reactor .r { fill: none; stroke: var(--cyan); stroke-width: 2; transform-origin: 200px 200px; }
.r1 { opacity: .4; }
.r2 { opacity: .6; animation: spin 40s linear infinite; }
.r3 { opacity: .55; stroke-width: 3; }
.r4 { stroke-width: 6; opacity: .95; animation: spin 18s linear infinite reverse; }
.r5 { stroke: var(--orange); opacity: .8; stroke-dasharray: 3 7; animation: spin 26s linear infinite; }
.reactor .core { fill: var(--orange); filter: drop-shadow(0 0 10px #ff9a47) drop-shadow(0 0 26px #ff9a47); animation: pulse 3.4s ease-in-out infinite; transform-origin: 200px 200px; }
.reactor .glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 160, 80, .35), transparent 70%); z-index: -1; animation: pulse 3.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .85; } }

/* feature cards: glossy neon colour (cyan and orange) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { position: relative; overflow: hidden; padding: 22px; border-radius: 22px; color: #fff; text-shadow: 0 1px 8px rgba(0, 60, 100, .28);
  background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 48%), linear-gradient(150deg, #00e5ff, #0786e0 88%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 26px rgba(0, 224, 255, .5), 0 12px 26px rgba(0, 120, 200, .25);
  transition: transform .25s, box-shadow .25s; }
.card:nth-child(3n+2) { background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 48%), linear-gradient(150deg, #ffbd66, #ff5a0c 88%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 26px rgba(255, 120, 30, .55), 0 12px 26px rgba(255, 90, 0, .25); }
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; }
.card p { margin: 0; color: rgba(255, 255, 255, .96); font-size: .96rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .6), 0 0 22px rgba(var(--cyan-rgb), .3); }
.steps b { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ffa447, #ff5e10); color: #fff; font-family: var(--hud); box-shadow: 0 0 14px rgba(255, 110, 20, .6); }
.steps h3 { margin: 0 0 4px; font-size: 1rem; letter-spacing: .04em; }
.steps p { margin: 0; color: #34566a; font-size: .94rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.checks li { position: relative; padding: 14px 16px 14px 52px; border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .55), 0 0 18px rgba(var(--cyan-rgb), .25); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #00e0ff, #0a8ee2); box-shadow: 0 0 10px rgba(0, 224, 255, .8); }
.checks li::after { content: ""; position: absolute; left: 23px; top: 22px; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* social cards: "coming soon" until socials.js has the address */
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.social { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .45), 0 0 16px rgba(var(--cyan-rgb), .2); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.social i { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--cyan-rgb), .12); color: var(--cyan); font: 600 .9rem var(--hud); font-style: normal; }
.social span { font-family: var(--hud); letter-spacing: .06em; }
.social small { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.social[aria-disabled="true"] { opacity: .75; cursor: default; }
.social.live { box-shadow: 0 0 0 1.5px var(--neon), 0 0 22px rgba(0, 224, 255, .5); }
.social.live i { background: linear-gradient(135deg, #ffa447, #ff5e10); color: #fff; }
.social.live small { color: var(--orange); font-weight: 600; }
.social.live:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--neon), 0 0 34px rgba(0, 224, 255, .75); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px max(20px, calc((100vw - 1100px) / 2)); color: var(--muted); font-size: .85rem; }

/* gentle reveal on scroll (only when scripts run; never hides content otherwise) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; }
  .reactor { order: -1; max-width: 300px; margin: 0 auto; }
  .top nav { display: none; }
  .soon-pill { margin-left: auto; }
  .block { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

.video { margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1.5px solid rgba(var(--cyan-rgb), .5); box-shadow: 0 0 34px rgba(var(--cyan-rgb), .25); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* the look switch (light is the default) */
.mode { padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(var(--cyan-rgb), .14); color: var(--text); font: 600 .72rem var(--hud); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(var(--cyan-rgb), .5); transition: box-shadow .2s, background .2s; }
.mode:hover { box-shadow: 0 0 0 1.5px var(--neon), 0 0 16px rgba(var(--cyan-rgb), .6); }
.mode:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 860px) { .mode { margin-left: auto; } .mode + .soon-pill { margin-left: 0; } }

/* dark look: the original night version, neon cyan and orange on deep blue */
html[data-mode="dark"] { --bg: #050b16; --text: #e4f7ff; --muted: #8cb2c4; color-scheme: dark; }
html[data-mode="dark"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%2300c8ee' stroke-opacity='.12' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M0 30H50L70 50H160M30 160V110L50 90H100'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 96% 3%, rgba(255, 122, 26, .22) 0, transparent 38%),
    radial-gradient(circle at 2% 30%, rgba(0, 188, 226, .2) 0, transparent 46%),
    var(--bg);
  background-attachment: fixed;
}
html[data-mode="dark"] .top { background: rgba(8, 18, 34, .92); }
html[data-mode="dark"] .block.alt { background: rgba(8, 20, 38, .6); }
html[data-mode="dark"] .btn.ghost, html[data-mode="dark"] .steps li, html[data-mode="dark"] .checks li, html[data-mode="dark"] .social { background: rgba(10, 24, 44, .94); }
html[data-mode="dark"] .lead, html[data-mode="dark"] .steps p { color: #b4d3e0; }
html[data-mode="dark"] .card { text-shadow: 0 1px 8px rgba(0, 20, 50, .45); }
html[data-mode="dark"] .video { box-shadow: 0 0 34px rgba(var(--cyan-rgb), .4); }

/* one promo that fits the screen: widescreen on a PC, tall on a phone (the page inside switches by its frame shape) */
@media (max-width: 700px) { .video { aspect-ratio: 9 / 16; max-width: 400px; margin-inline: auto; } }
