/* ---------- Base / reset ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b1220;
  background: #0b1220;
}

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

a:hover {
  text-decoration: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 64px 0;
}

.contact {
  padding-bottom: 90px;
}

.section-title {
  margin: 0 0 12px 0;
  font-size: 28px;
  letter-spacing: -0.2px;
}

.section-lead {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
  line-height: 1.6;
  max-width: 70ch;
  font-size: 16px;
}

.link-underline {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .container {
    width: min(1100px, calc(100% - 28px));
  }

  .section-pad {
    padding: 48px 0;
  }
}

/* ---------- Header / navigation ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.navlinks a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 720px) {
  .navlinks {
    display: none;
  }
}

/* ---------- Hero (dark, image) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image: url("/images/hero-night.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.92);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 520px at 50% 35%, rgba(120, 160, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at 70% 40%, rgba(20, 40, 120, 0.22), transparent 60%),
    radial-gradient(900px 520px at 30% 60%, rgba(80, 120, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.55) 0%, rgba(11, 18, 32, 0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 0 24px;
  margin: 0 auto;
  text-align: left;
}

.kicker {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  letter-spacing: 0.2px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  letter-spacing: -1.2px;
  margin: 0;
  font-weight: 650;
}

.hero h2 {
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: -1px;
  margin: 6px 0 0 0;
  font-weight: 520;
  color: rgba(255, 255, 255, 0.7);
}

.hero p {
  margin: 18px 0 0 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
}

.cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cta a {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.primary {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(11, 18, 32, 0.95);
}

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

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hero-content {
    text-align: left;
  }

  .hero p {
    font-size: 16px;
  }
}

/* ---------- Transition to light ---------- */
.light-shell {
  background: linear-gradient(180deg, #0b1220 0%, #eef2f8 32%, #ffffff 100%);
}

/* ---------- Philosophy (light) ---------- */
.philosophy {
  background: transparent;
  color: #0b1220;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
