/* ============================================
   Cyberonium — Shared Design System
   Used by inner pages (crowdfunding, vc, angels, etc.)
   ============================================ */

:root{
  --bg: oklch(0.987 0.004 90);
  --bg-2: oklch(0.965 0.006 95);
  --ink: oklch(0.18 0.015 245);
  --ink-2: oklch(0.34 0.012 245);
  --muted: oklch(0.55 0.01 245);
  --line: oklch(0.88 0.008 245);
  --line-2: oklch(0.92 0.006 245);
  --emerald: oklch(0.72 0.17 152);
  --emerald-soft: oklch(0.94 0.06 152);
  --cyan: oklch(0.82 0.10 200);
  --cyan-soft: oklch(0.95 0.04 200);
}

html,body{ background: var(--bg); color: var(--ink); }
body{
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

.font-serif-i{ font-family: 'Instrument Serif', serif; font-style: italic; letter-spacing: -0.02em; }
.font-display{ font-family: 'Instrument Serif', serif; letter-spacing: -0.025em; }
.mono{ font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0; }

/* ---------- Grid + masks ---------- */
.grid-field{
  background-image:
    linear-gradient(to right, oklch(0.88 0.008 245 / .55) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.88 0.008 245 / .55) 1px, transparent 1px);
  background-size: 88px 88px;
}
.grid-field-sm{
  background-image:
    linear-gradient(to right, oklch(0.88 0.008 245 / .5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.88 0.008 245 / .5) 1px, transparent 1px);
  background-size: 44px 44px;
}
.grid-fade-mask{
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}
.hair{ border-color: var(--line); }
.hair-2{ border-color: var(--line-2); }

/* ---------- Glass ---------- */
.glass{
  background: oklch(0.99 0.003 90 / .65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid oklch(1 0 0 / .6);
  box-shadow: 0 1px 0 oklch(1 0 0 / .8) inset, 0 10px 40px -20px oklch(0.2 0.02 245 / .25);
}
.glass-strong{
  background: oklch(0.995 0.002 90 / .82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid oklch(1 0 0 / .7);
}

/* ---------- Buttons ---------- */
.btn-primary{
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  padding: .75rem 1.15rem;
  font-weight: 500; font-size: .875rem;
  display:inline-flex; align-items:center; gap:.55rem;
  transition: transform .25s ease, background .25s ease;
  box-shadow: 0 1px 0 oklch(1 0 0 / .15) inset, 0 8px 22px -10px oklch(0.2 0.02 245 / .55);
  border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary:hover{ transform: translateY(-1px); background: oklch(0.22 0.015 245); }
.btn-primary .dot{ width:6px; height:6px; border-radius:999px; background: var(--emerald);
  box-shadow: 0 0 0 3px oklch(0.72 0.17 152 / .25); }
.btn-ghost{
  border:1px solid var(--line);
  background: oklch(1 0 0 / .55);
  color: var(--ink);
  border-radius: 999px;
  padding: .72rem 1.1rem;
  font-weight: 500; font-size: .875rem;
  display:inline-flex; align-items:center; gap:.55rem;
  transition: background .25s ease, transform .25s ease;
  cursor: pointer; font-family: inherit;
}
.btn-ghost:hover{ background: oklch(1 0 0 / .9); transform: translateY(-1px); }

/* ---------- Chips / labels ---------- */
.chip{
  display:inline-flex; align-items:center; gap:.45rem;
  font-family:'JetBrains Mono',monospace;
  font-size: 11px; line-height: 1;
  padding: .42rem .6rem;
  border:1px solid var(--line);
  background: oklch(1 0 0 / .6);
  border-radius: 999px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.chip .pulse{ width:6px; height:6px; border-radius:999px; background: var(--emerald);
  box-shadow: 0 0 0 0 oklch(0.72 0.17 152 / .55); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 oklch(0.72 0.17 152 / .55);}
  70%{ box-shadow: 0 0 0 8px oklch(0.72 0.17 152 / 0);}
  100%{ box-shadow: 0 0 0 0 oklch(0.72 0.17 152 / 0);}
}

/* ---------- Section kicker ---------- */
.kicker{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:'JetBrains Mono',monospace; font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .12em;
}
.kicker::before{
  content:""; width: 22px; height:1px; background: var(--ink-2); display:inline-block;
}

/* ---------- Holographic accent line ---------- */
.holo{
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(0.82 0.10 200 / .8) 25%,
    oklch(0.72 0.17 152 / .85) 50%,
    oklch(0.82 0.10 200 / .8) 75%,
    transparent 100%);
  height: 1px;
}

/* ---------- Spotlight blobs ---------- */
.spot{
  position:absolute; width: 880px; height: 880px;
  border-radius: 999px;
  filter: blur(60px); pointer-events:none; opacity:.55;
}
.spot-emerald{ background: radial-gradient(circle at center, oklch(0.78 0.18 152 / .55), transparent 60%); }
.spot-cyan{ background: radial-gradient(circle at center, oklch(0.82 0.10 200 / .6), transparent 60%); }

/* ---------- Striped placeholder ---------- */
.placeholder-stripe{
  background:
    repeating-linear-gradient(135deg,
      oklch(0.92 0.006 245) 0 8px,
      oklch(0.95 0.005 245) 8px 16px);
  border:1px solid var(--line);
  position:relative;
}
.placeholder-stripe::after{
  content: attr(data-label);
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing:.06em; text-transform:uppercase;
}

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in{ opacity:1; transform: none; }

/* ---------- Selection ---------- */
::selection{ background: oklch(0.72 0.17 152 / .35); color: var(--ink);}

/* ---------- Logo ---------- */
.cb-mark{ display:inline-block; line-height:0; position: relative; }
.cb-mark svg{ display:block; }

/* ---------- Navlinks ---------- */
.navlink{ position:relative; }
.navlink:hover{ color: var(--ink); }
.navlink::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.navlink:hover::after{ transform: scaleX(1); }

/* ---------- Numbers ---------- */
.num{ font-variant-numeric: tabular-nums; }

/* ---------- FAQ accordion ---------- */
.faq{ border-bottom: 1px solid var(--line); }
.faq > summary{
  list-style: none;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  gap: 16px;
  align-items: start;
  padding: 22px 4px;
  cursor: pointer;
  transition: color .2s ease;
}
.faq > summary::-webkit-details-marker{ display:none; }
.faq > summary .mono{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: .06em; padding-top: 6px;
}
.faq > summary .q{
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq > summary .caret{
  width: 20px; height: 20px; margin-top: 5px;
  position: relative; transition: transform .35s ease;
}
.faq > summary .caret::before,
.faq > summary .caret::after{
  content:""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.2px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq > summary .caret::after{ transform: translate(-50%, -50%) rotate(90deg); transition: opacity .25s ease; }
.faq[open] > summary .caret::after{ opacity: 0; }
.faq[open] > summary .caret{ transform: rotate(180deg); }
.faq > summary:hover .q{ color: oklch(0.28 0.015 245); }
.faq .a{
  padding: 0 4px 28px 60px;
  color: var(--ink-2);
  font-size: 14.5px; line-height: 1.65;
  max-width: 60ch;
}
.faq .a p + p{ margin-top: 14px; }
.faq .a strong{ color: var(--ink); font-weight: 500; }

/* ---------- Form fields ---------- */
.field{ display:block; }
.field > span{ display:block; margin-bottom: 8px; letter-spacing:.08em;}
.finput{
  width: 100%;
  background: oklch(1 0 0 / .65);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .78rem .95rem;
  font: 500 14px/1.4 'Geist', system-ui, sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.finput::placeholder{ color: oklch(0.62 0.01 245); font-weight: 400;}
.finput:focus{
  border-color: var(--ink);
  background: oklch(1 0 0 / .9);
  box-shadow: 0 0 0 4px oklch(0.72 0.17 152 / .14);
}
textarea.finput{ min-height: 110px; }
select.finput{ appearance:none; -webkit-appearance:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 6 L11 1' stroke='%23404040' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.4rem;
}
.seg{
  background: transparent; border: none;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.seg:hover{ color: var(--ink-2); }
.seg.active{
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 0 oklch(1 0 0 /.2) inset;
}
.dropzone{
  display:flex; align-items:center; gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed oklch(0.72 0.012 245);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.985 0.004 90) 0 9px,
      oklch(0.965 0.006 95) 9px 18px);
  transition: border-color .25s ease, background .25s ease;
}
.dropzone:hover{ border-color: var(--ink); }
.dropzone.has-file{
  border-style: solid; border-color: var(--emerald);
  background: oklch(1 0 0 / .82);
}
.dz-icon{
  width: 52px; height: 52px;
  border-radius: 12px;
  background: oklch(1 0 0 / .8);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-2); flex-shrink: 0;
}
.dropzone.has-file .dz-icon{ color: var(--emerald); border-color: var(--emerald); }
.dz-text{ flex: 1; min-width: 0; }

/* ---------- Portal ---------- */
.portal{ position: fixed; inset:0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.portal.hidden{ display: none; }
.portal-backdrop{
  position: absolute; inset: 0;
  background: oklch(0.18 0.015 245 / .55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0; transition: opacity .35s ease;
}
.portal.is-open .portal-backdrop{ opacity: 1; }
.portal-shell{
  position: relative; width: min(1100px, 100%);
  max-height: calc(100vh - 48px); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 120px -30px oklch(0.13 0.02 245 / .55), 0 0 0 1px oklch(1 0 0 / .8) inset;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(20px) scale(.99);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.portal.is-open .portal-shell{ opacity: 1; transform: none; }
.portal-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: oklch(0.99 0.003 90 / .9); flex-shrink: 0;
}
.portal-body{ overflow-y: auto; flex: 1; }
.portal-close{
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: oklch(1 0 0 / .6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, transform .25s ease;
}
.portal-close:hover{ background: oklch(1 0 0 / .95); transform: rotate(90deg); }
.portal-aside{
  background: var(--bg-2); position: relative; overflow: hidden;
  display: flex; flex-direction: column; padding: 36px; min-height: 540px;
}
.portal-aside::before{
  content:""; position:absolute; inset:0; opacity: .55; pointer-events:none;
  background-image:
    linear-gradient(to right, oklch(0.88 0.008 245 / .55) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.88 0.008 245 / .55) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, black 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, black 25%, transparent 80%);
}
.portal-aside > *{ position: relative; }
.cat-card{
  position: relative; padding: 24px; background: var(--bg);
  cursor: pointer; transition: background .25s ease;
  text-align: left; border: none; width: 100%; font: inherit; color: inherit;
}
.cat-card:hover{ background: oklch(1 0 0 / .9); }
.cat-card .cat-no{ font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cat-card .cat-title{ font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.05; margin-top: 30px; }
.cat-card .cat-desc{ margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.cat-card .cat-arrow{ position: absolute; top: 22px; right: 22px; color: var(--muted); transition: transform .25s ease, color .25s ease; }
.cat-card:hover .cat-arrow{ color: var(--ink); transform: translate(3px,-3px); }
.cat-card.applied{ background: oklch(0.94 0.06 152 / .35); }
.pill{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: oklch(1 0 0 / .8);
}
.pill .d{ width: 6px; height: 6px; border-radius: 999px; }
.pill.review .d{ background: oklch(0.75 0.12 75); }
.pill.review{ color: var(--ink-2); }
.pill.accepted{ color: var(--emerald); border-color: oklch(0.78 0.18 152 / .4); }
.pill.accepted .d{ background: var(--emerald); }
@media (max-width: 720px){
  .portal-aside{ display: none; }
  .portal{ padding: 0; }
  .portal-shell{ border-radius: 0; max-height: 100vh; height: 100vh; }
}

/* ---------- Step rail ---------- */
.step-rail{
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  height: 1px;
}
