/* FounderClone X — base layer.
   Colours, fonts and radius are NOT here: the server writes them into the page from the
   Theme settings saved in the admin panel (see src/render/theme.js). */

/* ---- Reset (Tailwind preflight, MIT licence) ---- */
*,
::before,
::after {
  box-sizing: border-box; 
  border-width: 0; 
  border-style: solid; 
  border-color: currentColor; 
}
::before,
::after {
  --tw-content: '';
}
html,
:host {
  line-height: 1.5; 
  -webkit-text-size-adjust: 100%; 
  -moz-tab-size: 4; 
  tab-size: 4; 
  font-family: var(--font-sans); 
  font-feature-settings: var(--font-sans); 
  font-variation-settings: var(--font-sans); 
  -webkit-tap-highlight-color: transparent; 
}
body {
  margin: 0; 
  line-height: inherit; 
}
hr {
  height: 0; 
  color: inherit; 
  border-top-width: 1px; 
}
abbr:where([title]) {
  text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp,
pre {
  font-family: var(--font-mono); 
  font-feature-settings: var(--font-mono); 
  font-variation-settings: var(--font-mono); 
  font-size: 1em; 
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  text-indent: 0; 
  border-color: inherit; 
  border-collapse: collapse; 
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; 
  font-feature-settings: inherit; 
  font-variation-settings: inherit; 
  font-size: 100%; 
  font-weight: inherit; 
  line-height: inherit; 
  letter-spacing: inherit; 
  color: inherit; 
  margin: 0; 
  padding: 0; 
}
button,
select {
  text-transform: none;
}
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; 
  background-color: transparent; 
  background-image: none; 
}
:-moz-focusring {
  outline: auto;
}
:-moz-ui-invalid {
  box-shadow: none;
}
progress {
  vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  -webkit-appearance: textfield; 
  outline-offset: -2px; 
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button; 
  font: inherit; 
}
summary {
  display: list-item;
}
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
dialog {
  padding: 0;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  opacity: 1; 
  color: #9ca3af; 
}
button,
[role="button"] {
  cursor: pointer;
}
:disabled {
  cursor: default;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; 
  vertical-align: middle; 
}
img,
video {
  max-width: 100%;
  height: auto;
}
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* ---- Fonts (bundled, no external requests) ---- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bagel-fat-one.woff2") format("woff2"); }

/* ---- Base ---- */
* {
  border-color: var(--line);
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

/* No background on body: the fixed backdrop sits behind it at z-index -1. */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* v28.2: clip sideways overflow on the page itself. iOS Safari ignores overflow-x on body alone, which let
   decorative hero glows make the whole page wobble sideways on small phones. clip (unlike hidden) keeps
   position: sticky working. */
@supports (overflow: clip) {
  html { overflow-x: clip; }
  body { overflow-x: clip; }
}
.fcx-frame__tags { flex-wrap: wrap; }
.fcx-frame__top { flex-wrap: wrap; row-gap: 0.25rem; min-width: 0; }

::selection {
  background: var(--hi2);
  color: #05070d;
}

:focus-visible {
  outline: 2px solid var(--hi2);
  outline-offset: 3px;
  border-radius: 2px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

[hidden] {
  display: none !important;
}

/* Text colour is inherited as a resolved value, so every tone scope restates it. */
.fcx-film,
.fcx-scene--paper {
  color: var(--ink);
}


/* --------------------------------------------------------------------------
   Fixed backdrop: neural field (three.js), grid and vignette. Dark tone only.
   -------------------------------------------------------------------------- */

.fcx-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.fcx-backdrop canvas {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.fcx-backdrop canvas.is-on {
  opacity: 0.6;
}

.fcx-backdrop__grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.fcx-backdrop__glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: radial-gradient(60% 50% at 12% 0%, rgba(0, 229, 255, 0.1), transparent 70%),
    radial-gradient(55% 50% at 95% 100%, rgba(168, 85, 247, 0.12), transparent 70%);
}

html[data-theme="light"] .fcx-backdrop canvas {
  display: none;
}

html[data-theme="light"] .fcx-backdrop__grid {
  background-image: linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .fcx-backdrop__glow {
  background: radial-gradient(60% 50% at 12% 0%, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(55% 50% at 95% 100%, rgba(124, 58, 237, 0.08), transparent 70%);
}

.fcx-page {
  position: relative;
}

/* ==========================================================================
   v28.6 — lite mode (phones, tablets, slow or data-saving devices, or any
   browser that stutters; set early by theme-init.js). Same design, without the
   GPU-heavy layers: 3D field, live blur, film grain, aurora and slow decorative loops.
   ========================================================================== */
html.fcx-lite *, html.fcx-lite *::before, html.fcx-lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.fcx-lite [data-neural], html.fcx-lite .fcx-aurora, html.fcx-lite.fc-premium body::after, html.fcx-lite body::after,
html.fcx-lite .fx-try__phone::before, html.fcx-lite .fcx-hero__beam { display: none !important; }
html.fcx-lite .fcx-glass, html.fcx-lite .fcx-plan, html.fcx-lite .fcx-menu__panel, html.fcx-lite .fx-step,
html.fcx-lite .fc-counsel, html.fcx-lite .fcx-cg, html.fcx-lite .fcx-cg-bubble { background-color: rgba(12, 15, 28, 0.94); }
html.fcx-lite .fcx-nav.is-scrolled { background-color: rgba(5, 7, 13, 0.96); }
html.fcx-lite .fcx-modal__veil, html.fcx-lite dialog.fcx-modal::backdrop { background-color: rgba(2, 3, 8, 0.82); }
html.fcx-lite[data-theme="light"] .fcx-glass, html.fcx-lite[data-theme="light"] .fcx-plan, html.fcx-lite[data-theme="light"] .fcx-menu__panel,
html.fcx-lite[data-theme="light"] .fx-step, html.fcx-lite[data-theme="light"] .fc-counsel, html.fcx-lite[data-theme="light"] .fcx-cg,
html.fcx-lite[data-theme="light"] .fcx-cg-bubble { background-color: rgba(250, 250, 252, 0.97); }
html.fcx-lite[data-theme="light"] .fcx-nav.is-scrolled { background-color: rgba(250, 250, 250, 0.97); }
html.fcx-lite .fcx-hero__holo i, html.fcx-lite .fcx-orbit__rings i, html.fcx-lite .fcx-windows li, html.fcx-lite .fcx-line i,
html.fcx-lite .fcx-print--1, html.fcx-lite .fcx-print--2, html.fcx-lite .fcx-print--3, html.fcx-lite .fcx-strip__track,
html.fcx-lite.fc-premium .fcx-plan.is-featured, html.fcx-lite .fc-counsel__orb { animation-play-state: paused !important; }
/* lite: the hero film is not fetched; its poster frame stays (see site.js initHero) */

/* Hero on tablets and phones: the orbit graphic goes under the headline instead of squeezing it. */
@media (max-width: 900px) {
  .fcx-hero { flex-wrap: wrap; align-content: flex-end; }
  .fcx-hero__inner { flex: 1 1 100%; width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .fcx-hero .fc-orbit, .fcx-hero__strips { display: none !important; }
}
