@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a0f1a;
  --panel: rgba(12, 18, 30, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.16);
  --text: #f0f2f5;
  --muted: #8a95a8;
  --accent: #c9a84c;
  --accent-soft: rgba(201, 168, 76, 0.12);
  --blue: #5b8ad4;
  --blue-soft: rgba(91, 138, 212, 0.10);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

body {
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Subtle grid background ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

/* ── Mono utility ── */
.mono, .badge, .section-label, .stat-label, .lang-label {
  font-family: "JetBrains Mono", "Consolas", monospace;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 40px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar-right { margin-left: auto; justify-content: flex-end; }

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* ── Navigation ── */
.nav-links, .lang-switch { display: flex; gap: 8px; flex-wrap: wrap; }

.nav-link, .button, .lang-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-link:hover, .button:hover, .lang-link:hover {
  border-color: var(--line-hover);
  background: rgba(255,255,255,0.06);
}

.button.primary {
  border-color: rgba(201,168,76,0.3);
  background: var(--accent-soft);
  color: var(--text);
}

.button.primary:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.18);
}

.lang-link { min-width: 64px; padding: 8px 12px; }

.lang-link.active {
  border-color: rgba(201,168,76,0.35);
  background: var(--accent-soft);
}

.lang-switch {
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
}

.lang-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Cards ── */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

/* ── Badge ── */
.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ── Hero ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.hero-grid > *, .about-grid > *, .content-grid > *, .stats-grid > *, .cap-grid > * {
  min-width: 0;
}

.hero-copy {
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
  text-wrap: balance;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  max-width: 58ch;
}

.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Service cards ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cap-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s;
}

.cap-card:hover { border-color: var(--line-hover); }

.section-label, .stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cap-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.cap-card p, .signal-copy p, .founder-copy p, .brief-card p,
.section-copy, .timeline-item p, .expertise-item p,
.portrait-caption p, .stat-card p, .closing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Sidebar ── */
.hero-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
}

.mark-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:
    radial-gradient(ellipse at top, rgba(91,138,212,0.08), transparent 50%),
    var(--panel);
}

.mark-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    rgba(8, 14, 24, 0.8);
  background-size: 32px 32px, 32px 32px, auto;
  min-height: 320px;
}

.mark-stage img {
  width: min(100%, 280px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.signal-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.signal-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signal-stack strong {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
}

.signal-copy h2, .founder-copy h2, .brief-title, .section-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Founder card ── */
.founder-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(91,138,212,0.05), rgba(201,168,76,0.03)),
    var(--panel);
}

.portrait-inline {
  width: 120px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.founder-copy { display: flex; flex-direction: column; gap: 6px; }

.founder-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.founder-link:hover { opacity: 0.8; }

/* ── Contact strip ── */
.contact-strip {
  margin-top: 20px;
  padding: 24px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.15);
  background: linear-gradient(135deg, var(--accent-soft), var(--blue-soft));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-strip strong {
  color: var(--text);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 2px;
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

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

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.portrait-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portrait-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.portrait-caption {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.intro-panel {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.intro-panel .hero-title {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card { padding: 20px; }

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
}

/* ── Content grid (about page) ── */
.content-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.section-card { padding: 24px; }

.section-title {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.section-copy { margin-bottom: 14px; }

.timeline, .expertise-grid { display: flex; flex-direction: column; gap: 10px; }

.timeline-item, .expertise-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.timeline-item h3, .expertise-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── Closing note ── */
.closing-note {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(91,138,212,0.06), rgba(201,168,76,0.04));
}

.closing-note strong { color: var(--text); }

/* ── Redirect page ── */
.redirect-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  max-width: 520px;
  padding: 28px;
  text-align: center;
}

.redirect-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Meta list (kept minimal) ── */
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.meta-list strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1120px) {
  .hero-grid, .about-grid, .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { min-height: auto; }
}

@media (max-width: 768px) {
  .page { width: min(100% - 24px, 100%); }

  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 24px; }
  .topbar-right { width: 100%; margin-left: 0; justify-content: flex-start; }

  .cap-grid, .stats-grid { grid-template-columns: 1fr; }

  .founder-card, .signal-grid { grid-template-columns: 1fr; }
  .portrait-inline { width: min(100%, 180px); }

  .nav-link, .button { width: 100%; }
  .contact-strip { flex-direction: column; text-align: center; }

  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .mark-stage { min-height: 240px; }
}
