/* FORCE99 — force99.in */

:root {
  --void: #04060a;
  --void-2: #070a10;
  --panel: #0a0e15;
  --panel-2: #0d121b;
  --line: rgba(140, 165, 195, 0.12);
  --line-strong: rgba(140, 165, 195, 0.22);
  --text: #dfe7ef;
  --muted: #8b97a8;
  --faint: #5a6577;
  --ice: #6ad6e6;
  --ice-dim: rgba(106, 214, 230, 0.14);
  --ember: #ff6a3d;
  --ember-dim: rgba(255, 106, 61, 0.14);
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ice); color: #04060a; }

.mono {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 30px; }

/* ---------- Backdrop: starfield + grid ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(106, 214, 230, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(255, 106, 61, 0.06), transparent 55%),
    var(--void);
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 165, 195, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 165, 195, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 85%);
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { display: block; }
.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.14em;
}
.brand-name .n { color: var(--ice); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ice); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 rgba(106, 214, 230, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(106, 214, 230, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(106, 214, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 214, 230, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 3px;
  transition: all 0.16s ease;
}
.btn-primary {
  background: var(--ice);
  color: #04060a;
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  display: inline-block;
}
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  align-items: center;
}
.hero-readout {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-readout span::before { content: "▸ "; color: var(--ice); }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero h1 .ice { color: var(--ice); }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-strong);
}
.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* tetrahedron stage */
.tet-stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tet-stage:hover { transform: scale(1.03); }
.tet-hint {
  color: var(--ember) !important;
  letter-spacing: 0.2em !important;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-top: 4px;
}
.tet-stage:hover .tet-hint,
.tet-stage:focus-visible .tet-hint { opacity: 1; transform: translateY(0); }
.tet-stage:focus-visible { transform: scale(1.03); }
.tet-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin-rings 60s linear infinite;
}
@keyframes spin-rings { to { transform: rotate(360deg); } }
#tet {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(106, 214, 230, 0.25));
}
.tet-caption {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  white-space: nowrap;
}
.tet-caption span:first-child { color: var(--muted); letter-spacing: 0.24em; }

/* ---------- Sections ---------- */

section { padding: 100px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--void-2), var(--void));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17.5px; }

/* ---------- Trajectory / divisions ---------- */

.trajectory { display: grid; gap: 20px; }
.phase {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 34px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.phase:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.phase::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--faint);
}
.phase--active::before { background: var(--ice); box-shadow: 0 0 20px var(--ice); }
.phase--forming::before { background: var(--ember); }
.phase__index {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--faint);
  padding-top: 4px;
}
.phase__body h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phase__body p { color: var(--muted); font-size: 15.5px; max-width: 640px; }
.phase__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.phase__tag--active { color: var(--ice); border-color: rgba(106,214,230,0.4); background: var(--ice-dim); }
.phase__tag--forming { color: var(--ember); border-color: rgba(255,106,61,0.4); background: var(--ember-dim); }

/* ---------- Capabilities grid ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cap {
  background: var(--void);
  padding: 34px 30px;
  transition: background 0.2s ease;
}
.cap:hover { background: var(--panel-2); }
.cap__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ice);
  letter-spacing: 0.1em;
}
.cap h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 16px 0 10px;
  letter-spacing: -0.01em;
}
.cap p { color: var(--muted); font-size: 14.5px; }

/* ---------- Doctrine ---------- */

.doctrine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.doctrine__item { border-top: 2px solid var(--ice); padding-top: 20px; }
.doctrine__item .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.doctrine__item h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.doctrine__item p { color: var(--muted); font-size: 15px; }

/* ---------- Company / contact ---------- */

.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.company-copy p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.company-copy .eyebrow { margin-bottom: 18px; }

.reg-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 30px 30px;
}
.reg-card .corner {
  position: absolute; width: 12px; height: 12px;
  border-color: var(--ice);
}
.reg-card .tl { top: 10px; left: 10px; border-left: 1.5px solid; border-top: 1.5px solid; }
.reg-card .tr { top: 10px; right: 10px; border-right: 1.5px solid; border-top: 1.5px solid; }
.reg-card .bl { bottom: 10px; left: 10px; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.reg-card .br { bottom: 10px; right: 10px; border-right: 1.5px solid; border-bottom: 1.5px solid; }
.reg {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.reg:last-child { border-bottom: none; padding-bottom: 0; }
.reg .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.reg .value { font-size: 16px; color: var(--text); }
.reg .value.mono { font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.reg .value a { color: var(--ice); text-decoration: none; }
.reg .value a:hover { text-decoration: underline; }

/* ---------- CTA strip ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 120%, rgba(106,214,230,0.12), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.footer-motto { color: var(--muted); letter-spacing: 0.24em; }

/* ---------- Tet dossier (easter egg) ---------- */

.tet-detail {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(106, 214, 230, 0.12), transparent 60%),
    var(--void);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}
.tet-detail.open { opacity: 1; visibility: visible; transform: scale(1); }
body.tet-open { overflow: hidden; }

#tetDetailStars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.tet-detail__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px 90px;
}

.tet-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 11px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.16s ease;
  margin-bottom: 54px;
}
.tet-back:hover { border-color: var(--ice); color: var(--ice); }

.tet-detail__brief {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.tet-detail__brief span:last-child { color: var(--ice); }

.tet-detail__title-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: center;
}
#tetDetailCanvas {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 0 30px rgba(106, 214, 230, 0.3));
}
.tet-detail__title-row h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.tet-detail__title-row h1 .ice { color: var(--ice); }
.tet-detail__title-row p { color: var(--muted); font-size: 17px; max-width: 560px; }

.tet-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 60px;
}
.tet-fact { background: var(--void); padding: 34px 32px; }
.tet-fact__n {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ice);
  margin-bottom: 16px;
}
.tet-fact h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.tet-fact p { color: var(--muted); font-size: 15px; }
.tet-fact em { color: var(--text); font-style: italic; }

.tet-detail__foot {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tet-detail__foot p { color: var(--faint); font-size: 12.5px; letter-spacing: 0.06em; max-width: 560px; }
.tet-back-2 { cursor: pointer; background: transparent; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .tet-stage { max-width: 340px; margin: 0 auto; }
  .company-grid { grid-template-columns: 1fr; gap: 36px; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  section { padding: 76px 0; }

  .tet-detail__title-row { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  #tetDetailCanvas { width: 180px; height: 180px; }
  .tet-facts { grid-template-columns: 1fr; }
}
