/* ==========================================================================
   Cennex — base: tokens, fonts, reset, typography, buttons, header, footer
   Brand colours come from the Cennex logo; product-preview colours match the app.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin.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: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-ext.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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext.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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin.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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin-ext.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;
}

:root {
  /* Brand dark (mockup background family) */
  --ink-950: #0B0B15;
  --ink-900: #10111C;
  --ink-850: #151724;
  --ink-800: #1B1E27;
  --ink-750: #222633;
  --ink-700: #2B3040;
  --ink-600: #3C4254;

  /* Text on dark */
  --white: #F7F8FA;
  --mist-100: #E6E8EE;
  --mist-300: #B9BECB;
  --mist-500: #8E94A6;

  /* Brand greens (logo facets, light to deep) */
  --mint-200: #B6E6CD;
  --mint-300: #86CAA5;
  --mint-400: #72CDA1;
  --mint-500: #56A588;
  --mint-press: #3F9C74;
  --teal-600: #328573;
  --teal-700: #287D73;
  --teal-800: #216866;

  /* Product UI */
  --app-green: #167A56;
  --app-green-hover: #116245;
  --paper: #F4F3EE;
  --paper-2: #ECEBE5;
  --paper-line: #E3E2DC;
  --ink-text: #141816;
  --ink-sub: #4E5651;
  --ink-muted: #5F6863;

  --discord: #5865F2;
  --discord-press: #3F4AC9;
  --danger: #FF8A80;
  --danger-ink: #B3261E;

  --font-display: 'Archivo', 'Arial Narrow', Arial, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-app: 'Manrope', 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4.2vw, 48px);
  --maxw: 1240px;
  --header-h: 68px;
  --section-pad: clamp(88px, 11vw, 168px);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--ink-950);
  color: var(--mist-100);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, h4, li, dd, dt { overflow-wrap: break-word; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--mint-300); outline-offset: 3px; border-radius: 6px; }
/* On light surfaces the mint ring is too faint; use the app green (5.3:1 on white). */
.on-light :focus-visible, .cxp :focus-visible, .pi-card :focus-visible, .dc-panel :focus-visible,
.sd-frame :focus-visible, .ev-panel :focus-visible, .mk-card :focus-visible { outline-color: var(--app-green); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mint-400); color: var(--ink-950);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); }

/* ---------------------------------------------------------------- type */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  color: var(--white);
  letter-spacing: -.028em;
}
.h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); line-height: .96; }
.h2 { font-size: clamp(2.05rem, 1.15rem + 3.4vw, 4rem); line-height: 1; }
.h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.15; letter-spacing: -.015em; }
.lead { font-size: clamp(1.0625rem, .98rem + .42vw, 1.3125rem); line-height: 1.55; color: var(--mist-300); }
.eyebrow {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-400);
}
.accent { color: var(--mint-400); }
.muted { color: var(--mist-500); }

/* ---------------------------------------------------------------- buttons
   Square-shouldered like the app's own controls: flat fill, a crisp top edge, a short press. */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s, color .16s, border-color .16s, transform .12s var(--ease-out), box-shadow .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 9px; }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 12px; }
.btn:active { transform: translateY(1px) scale(.985); }

.btn-primary {
  background: var(--mint-400);
  color: var(--ink-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(11, 11, 21, .14);
}
.btn-primary:hover { background: var(--mint-300); }

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(247, 248, 250, .22);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { border-color: rgba(247, 248, 250, .55); background: rgba(255, 255, 255, .08); }

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .16);
}
.btn-discord:hover { background: #6773F4; }

.btn-dark {
  background: var(--ink-950);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.btn-dark:hover { background: var(--ink-750); }

.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  color: var(--white);
  padding: 12px 4px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .16s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: var(--mint-300); }

.text-link { color: var(--mint-300); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--mint-200); }

/* ---------------------------------------------------------------- social icons
   Each network lights up in its own colours on hover. */
.socials { display: flex; align-items: center; gap: 4px; }
.social {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--mist-100);
  transition: color .16s, background-color .16s, transform .16s var(--ease-out), box-shadow .16s;
}
.social svg { width: 19px; height: 19px; }
.social:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.social[href*='discord']:hover { background: var(--discord); color: #fff; }
.social[href*='x.com']:hover { background: #fff; color: #000; }
.social[href*='tiktok']:hover { background: #000; color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  transition: background-color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 11, 21, .985); border-bottom-color: rgba(255, 255, 255, .07); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.brand img { height: 32px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 18px); }
.nav-link {
  font-size: .9375rem; font-weight: 550; text-decoration: none;
  color: var(--mist-100);
  padding: 10px 6px;
  border-radius: 8px;
}
.nav-link:hover { color: var(--mint-300); }
.nav .socials { padding-inline: 4px 2px; border-left: 1px solid rgba(255, 255, 255, .1); margin-left: 4px; padding-left: 10px; }

@media (max-width: 860px) {
  .nav .socials { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .nav-link { display: none; }
  .brand img { height: 28px; }
  .site-header .btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .brand .brand-full { display: none; }
  .brand .brand-mark { display: block !important; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-block: 56px 40px;
  font-size: .9375rem;
  color: var(--mist-300);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--mist-500); }
.footer-email { display: inline-block; margin-top: 18px; color: var(--white); font-weight: 550; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px; transition: color .16s, border-color .16s; }
.footer-email:hover { color: var(--mint-300); border-color: var(--mint-300); }
.footer-col h2 { font-family: var(--font-display); font-stretch: 112%; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-500); font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mist-100); padding: 6px 0; }
.footer-col a svg { width: 17px; height: 17px; color: var(--mist-300); }
.footer-col a:hover { color: var(--mint-300); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--mist-500); font-size: .8125rem; line-height: 1.55; }
.footer-bottom p { max-width: 78ch; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- shared form controls */
.field { display: grid; gap: 8px; }
.field-label { font-size: .9375rem; font-weight: 600; color: var(--mist-100); display: flex; align-items: baseline; gap: 8px; }
.field-label .optional { font-weight: 450; color: var(--mist-500); font-size: .8125rem; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--ink-700);
  background: var(--ink-950);
  color: var(--white);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #6E7487; }
.input:hover { border-color: var(--ink-600); }
.input:focus { outline: none; border-color: var(--mint-400); box-shadow: 0 0 0 4px rgba(114, 205, 161, .18); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.field-error { font-size: .875rem; color: var(--danger); min-height: 0; }
.field-hint { font-size: .8125rem; color: var(--mist-500); }

.form-status { font-size: .9375rem; line-height: 1.45; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; background: rgba(255, 138, 128, .1); border: 1px solid rgba(255, 138, 128, .35); color: #FFD4CF; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

