/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- ROOT ---------- */
:root {
  --bg: #0b0d12;
  --fg: #eaeaf0;
  --muted: #9aa0b3;
  --accent: #4f8cff;
  --border: rgba(255, 255, 255, 0.08);
}

/* ---------- HTML / BODY (CRITICAL FIX) ---------- */
html,
body {
  height: 100%;
  overflow: hidden;
}

/* ---------- BODY ---------- */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
      1000px 600px at 50% -10%,
      rgba(79, 140, 255, 0.15),
      transparent
    ),
    var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

/* ---------- NAV ---------- */
.nav {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav a.active {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ---------- BRAND LOGO IN NAV ---------- */
.nav .brand {
  display: flex;
  align-items: center;
}

.nav .brand img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(79, 140, 255, 0.25));
}

/* ---------- HERO (FIXED VIEWPORT) ---------- */
.hero {
  height: calc(100vh - 64px - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* Use real mobile viewport */
@supports (height: 100dvh) {
  .hero {
    height: calc(100dvh - 64px - 56px);
  }
}

/* ---------- LOGO ---------- */
.logo {
  width: 340px;
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 0 130px rgba(79, 140, 255, 0.25));
}

/* ---------- HEADLINE ---------- */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.4em;
  font-weight: 600;
}

/* ---------- TAGLINE ---------- */
.tagline {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  cursor: default;
}

/* ---------- PAGE (ABOUT) ---------- */
.page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
  overflow: hidden;
}

.content {
  max-width: 720px;
}

.content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ---------- PRINCIPLES ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.principles h3 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.principles p {
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
footer {
  height: 56px;
  flex-shrink: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- FOOTER LINK ---------- */
footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

footer a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* ---------- MOBILE FINAL POLISH ---------- */
@media (max-width: 768px) {
  body {
    background: var(--bg);
  }
}
