:root {
  --bg: #0d0f1a;
  --bg-rgb: 13, 15, 26;
  --surface: #14162a;
  --text: #e4e8f2;
  --text-muted: #8b90aa;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.18);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

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

.nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 4rem;
  background: var(--bg);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

body.menu-open .nav-mobile {
  display: flex;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg) url("assets/hero.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.6) 0%, rgba(var(--bg-rgb), 0.88) 100%);
}

.hero-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-word {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(200, 220, 255, 0.9);
  white-space: nowrap;
  opacity: 0;
  animation: hero-word-fade var(--duration, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes hero-word-fade {
  0%, 100% { opacity: 0; }
  12% { opacity: 0.15; }
  25% { opacity: 0.28; }
  40% { opacity: 0.42; }
  50% { opacity: 0.42; }
  60% { opacity: 0.28; }
  75% { opacity: 0.15; }
  88% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-lead:last-of-type {
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--surface);
}

.section h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.list-caption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem !important;
}

.list-values {
  margin-bottom: 0;
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.contact .btn-primary {
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-content {
    padding: 2.5rem 2rem 3.5rem;
  }

  .hero-word {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .hero-content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
