:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070d;
  --bg-elevated: #0b1020;
  --bg-soft: #10182c;
  --bg-deep: #060912;
  --bg-top: #070a14;
  --surface: rgba(16, 24, 44, 0.72);
  --surface-strong: rgba(18, 26, 48, 0.92);
  --surface-solid: rgba(10, 14, 26, 0.95);
  --line: rgba(120, 180, 255, 0.16);
  --line-strong: rgba(80, 210, 255, 0.35);
  --text: #eef4ff;
  --muted: #9aabc8;
  --faint: #6f819f;
  --cyan: #2ee6ff;
  --cyan-deep: #1098c8;
  --blue: #3d7eff;
  --green: #3dffa8;
  --amber: #ffd166;
  --danger: #ff5d7a;
  --on-accent: #041018;
  --header-bg: rgba(5, 7, 13, 0.72);
  --header-bg-strong: rgba(5, 7, 13, 0.88);
  --overlay-90: rgba(5, 7, 13, 0.92);
  --overlay-70: rgba(5, 7, 13, 0.72);
  --overlay-35: rgba(5, 7, 13, 0.35);
  --overlay-20: rgba(5, 7, 13, 0.2);
  --overlay-85: rgba(5, 7, 13, 0.85);
  --panel-bg: rgba(8, 12, 24, 0.55);
  --input-bg: rgba(5, 7, 13, 0.55);
  --footer-bg: rgba(4, 6, 12, 0.8);
  --nav-mobile-bg: rgba(5, 7, 13, 0.96);
  --glow-a: rgba(46, 230, 255, 0.12);
  --glow-b: rgba(61, 126, 255, 0.14);
  --hero-img-opacity: 0.55;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;
  --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-elevated: #ffffff;
  --bg-soft: #e8eef8;
  --bg-deep: #e7edf7;
  --bg-top: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-solid: rgba(255, 255, 255, 0.96);
  --line: rgba(30, 64, 120, 0.14);
  --line-strong: rgba(16, 120, 180, 0.35);
  --text: #0d1830;
  --muted: #4d5f7c;
  --faint: #6b7c96;
  --cyan: #0892b0;
  --cyan-deep: #0a7a96;
  --blue: #2f62e8;
  --green: #0f9f6e;
  --amber: #c98500;
  --danger: #d93b5a;
  --on-accent: #041018;
  --header-bg: rgba(247, 249, 252, 0.78);
  --header-bg-strong: rgba(247, 249, 252, 0.92);
  --overlay-90: rgba(243, 246, 251, 0.94);
  --overlay-70: rgba(243, 246, 251, 0.78);
  --overlay-35: rgba(243, 246, 251, 0.4);
  --overlay-20: rgba(243, 246, 251, 0.2);
  --overlay-85: rgba(243, 246, 251, 0.9);
  --panel-bg: rgba(255, 255, 255, 0.7);
  --input-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: rgba(232, 238, 248, 0.92);
  --nav-mobile-bg: rgba(247, 249, 252, 0.98);
  --glow-a: rgba(8, 146, 176, 0.1);
  --glow-b: rgba(47, 98, 232, 0.1);
  --hero-img-opacity: 0.38;
  --shadow: 0 24px 60px rgba(20, 40, 80, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--glow-a), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, var(--glow-b), transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-strong);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(46, 230, 255, 0.08);
  color: var(--cyan);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: block;
  fill: currentColor;
  stroke: none;
}

.theme-toggle .icon-sun {
  display: none;
  fill: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(46, 230, 255, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #4aa8ff 55%, var(--blue));
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(46, 230, 255, 0.22);
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 10px 28px rgba(8, 146, 176, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(46, 230, 255, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-img-opacity);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--overlay-90) 0%, var(--overlay-70) 42%, var(--overlay-35) 100%),
    linear-gradient(180deg, var(--overlay-20) 0%, var(--overlay-85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4.5rem;
  max-width: 680px;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  max-width: 12ch;
}

.hero .lede {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-pulse {
  position: absolute;
  right: 8%;
  bottom: 16%;
  z-index: 1;
  width: min(360px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 255, 0.25);
  pointer-events: none;
  animation: pulseRing 4.5s ease-out infinite;
}

.hero-pulse::before,
.hero-pulse::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 255, 0.18);
}

.hero-pulse::after {
  inset: 36%;
  background: radial-gradient(circle, rgba(46, 230, 255, 0.2), transparent 70%);
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 0.25; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 750;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.clients {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-bg);
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.2rem;
}

.clients-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  align-items: center;
}

.client-pill {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.capability {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(46, 230, 255, 0.05), transparent 40%),
    var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.capability:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.capability-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(46, 230, 255, 0.1);
  border: 1px solid rgba(46, 230, 255, 0.2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.capability h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.capability p {
  color: var(--muted);
  font-size: 0.95rem;
}

.mission-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  min-height: 280px;
  display: grid;
  align-items: end;
}

.mission-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.mission-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, var(--overlay-90) 85%);
}

.mission-copy {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 620px;
}

.mission-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(46, 230, 255, 0.25);
  background: rgba(46, 230, 255, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

/* Solutions layout */
.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 0.8rem;
  max-width: 16ch;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.solutions-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(46, 230, 255, 0.08);
  color: var(--text);
}

.service-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-block h3 {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.7rem;
}

.service-block p {
  color: var(--muted);
}

.service-visual {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 230, 255, 0.18), transparent 45%),
    linear-gradient(160deg, var(--bg-soft), var(--bg-elevated));
  min-height: 220px;
  padding: 1.1rem;
  display: grid;
  align-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 0.45rem;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Careers */
.careers-hero {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  align-items: end;
}

.careers-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.careers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-20), var(--overlay-90));
}

.careers-hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.2rem;
  max-width: 640px;
}

.careers-hero-copy h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}

.careers-hero-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit {
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.benefit h3 {
  font-size: 1.05rem;
  margin: 0.7rem 0 0.45rem;
}

.benefit p {
  color: var(--muted);
  font-size: 0.92rem;
}

.roles {
  display: grid;
  gap: 1rem;
}

.role {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.role:hover {
  border-color: var(--line-strong);
}

.role h3 {
  font-size: 1.15rem;
}

.role .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.45rem 0 0.65rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

.role p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 70ch;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.92);
}

.person-body {
  padding: 1.1rem 1.15rem 1.3rem;
}

.person h3 {
  font-size: 1.05rem;
}

.person .title {
  margin-top: 0.25rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* About */
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  max-width: 28ch;
  letter-spacing: -0.03em;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.principle {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.principle h3 {
  margin-bottom: 0.55rem;
}

.principle p {
  color: var(--muted);
}

/* Form */
.apply-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.apply-summary,
.apply-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
}

.apply-form {
  font-family: var(--font-display), var(--font-sans);
}

.apply-stage {
  min-width: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--line-strong);
}

.upload-zone {
  border: 1px dashed rgba(46, 230, 255, 0.35);
  border-radius: 12px;
  padding: 1.3rem;
  text-align: center;
  color: var(--muted);
  background: rgba(46, 230, 255, 0.04);
}

.req-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.req-list li + li {
  margin-top: 0.45rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.8rem;
  margin-top: 2rem;
  background: var(--footer-bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-column a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 980px) {
  .capabilities,
  .benefits,
  .team-grid,
  .steps,
  .principles,
  .solutions-layout,
  .service-block,
  .apply-layout,
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .solutions-layout,
  .apply-layout,
  .service-block {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .role {
    grid-template-columns: 1fr;
  }
}

.btn-sm {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.auth-chip {
  display: none;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid rgba(46, 230, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(46, 230, 255, 0.08);
}

.auth-chip:not([hidden]) {
  display: inline-block;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.55rem;
  width: min(340px, calc(100vw - 2rem));
}

.toast {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.toast-ok {
  border-color: rgba(61, 255, 168, 0.35);
}

.toast-err {
  border-color: rgba(255, 93, 122, 0.45);
}

.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.auth-section {
  padding: 3.5rem 0 5rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 1.8rem;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--overlay-90));
}

.auth-visual > div {
  position: relative;
  z-index: 1;
}

.auth-visual h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-visual p {
  margin-top: 0.7rem;
  max-width: 34ch;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
}

.auth-card h2 {
  margin-bottom: 0.5rem;
}

.demo-hint {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.demo-hint code {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.82rem;
}

.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-foot {
  font-size: 0.9rem;
}

.form-foot a {
  color: var(--cyan);
}

.success-panel {
  padding: 1.2rem;
}

.success-panel h3 {
  margin-bottom: 0.5rem;
}

.legal-copy {
  max-width: 760px;
}

.legal-body {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.legal-body p {
  color: var(--muted);
}

.legal-body a {
  color: var(--cyan);
}

/* App terminal */
.app-body {
  background:
    radial-gradient(900px 500px at 100% 0%, var(--glow-a), transparent 50%),
    var(--bg);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0 2.5rem;
  min-height: calc(100vh - 72px);
}

.app-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  align-self: start;
  position: sticky;
  top: 88px;
}

.app-side h1 {
  margin: 0.7rem 0 0.55rem;
  font-size: 1.55rem;
}

.app-tabs {
  display: grid;
  gap: 0.4rem;
  margin: 1.3rem 0;
}

.app-tab {
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.app-tab:hover,
.app-tab.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(46, 230, 255, 0.08);
}

.app-status {
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  margin-right: 0.35rem;
}

.app-main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  min-height: 640px;
  overflow: hidden;
}

.app-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(520px 280px at 50% 35%, rgba(46, 230, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--overlay-85), var(--overlay-90));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.app-coming-soon-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: app-build-pulse 1.4s ease-in-out infinite;
}

.app-coming-soon h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.app-coming-soon p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.55;
}

.app-coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.status-dot.is-building {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: app-build-pulse 1.4s ease-in-out infinite;
}

.app-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes app-build-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.app-panel {
  display: none;
  padding: 1.25rem;
  animation: riseIn 0.35s ease;
}

.app-panel.is-active {
  display: block;
}

.app-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.app-panel-head h2 {
  font-size: 1.25rem;
}

.app-search {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  min-width: min(240px, 100%);
}

.market-table-wrap {
  overflow: auto;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.market-table th,
.market-table td {
  text-align: left;
  padding: 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.market-table th {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.row-sub {
  display: block;
  font-size: 0.78rem;
}

.up { color: var(--green); }
.down { color: var(--danger); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.35rem;
}

.stat-card strong {
  font-size: 1.25rem;
}

.holdings,
.fill-log ul {
  display: grid;
  gap: 0.55rem;
}

.holding-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.execute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.quote-box {
  border: 1px solid rgba(46, 230, 255, 0.25);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  background: rgba(46, 230, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.quote-box strong {
  color: var(--text);
}

.fill-log {
  margin-top: 1.4rem;
}

.fill-log h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.fill-log ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fill-log li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.insight-card h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

#alphaChart {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
}

.upload-zone.has-file {
  border-style: solid;
  color: var(--text);
}

@media (max-width: 980px) {
  .auth-layout,
  .app-shell,
  .stat-grid,
  .insight-grid,
  .execute-grid {
    grid-template-columns: 1fr;
  }

  .app-side {
    position: static;
  }

  .holding-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav.is-open .nav-links {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }

  .nav.is-open .nav-actions .btn-ghost {
    display: inline-flex;
  }

  .nav.is-open .nav-actions {
    position: absolute;
    top: calc(72px + 11.5rem);
    left: 0;
    right: 0;
    padding: 0 1.25rem 1.25rem;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--line);
    justify-content: stretch;
  }

  .nav.is-open .nav-actions .btn {
    flex: 1;
  }

  .nav.is-open .menu-toggle {
    margin-left: auto;
  }

  .hero-pulse {
    display: none;
  }

  .capabilities,
  .benefits,
  .team-grid,
  .steps,
  .principles,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 3.5rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}
