@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Audiowide&display=swap');

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

:root {
  --bg:           #1A1A1A;
  --bg-elevated:  #222222;
  --bg-card:      #242424;
  --purple:       #6B2DBF;
  --purple-hover: #7D3DD4;
  --purple-dim:   rgba(107,45,191,0.15);
  --text:         #FFFFFF;
  --text-muted:   #888888;
  --text-dim:     #555555;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --nav-h:        72px;
  --max-w:        1160px;
  --ease:         cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg {
  height: 30px;
  width: auto;
  color: #fff;
  fill: currentColor;
}

.nav-wordmark {
  font-family: 'Audiowide', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fff;
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-links .portal {
  color: var(--text-dim);
  cursor: default;
  opacity: 0.5;
}

.nav-links .nav-cta {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text);
  border: 1px solid var(--border-hover);
  padding: 7px 18px;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-links .nav-cta:hover {
  border-color: var(--purple);
  background: var(--purple-dim);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(26,26,26,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}

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

.mobile-menu a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--text); }
.mobile-menu .portal { color: var(--text-dim); opacity: 0.5; }

/* ── CROWN SVG MARK ─────────────────────────────────────────────── */

.crown-mark {
  fill: currentColor;
}

/* ── HERO ───────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(107,45,191,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-crown {
  width: 100px;
  height: 100px;
  color: #fff;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}

.hero-heading {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-muted);
}

/* ── PAGE HEADER (inner pages) ──────────────────────────────────── */

.page-header {
  padding: calc(var(--nav-h) + 5rem) 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top center, rgba(107,45,191,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.page-header-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SECTIONS ───────────────────────────────────────────────────── */

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ── SERVICES GRID ──────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover { background: var(--bg-card); }

.service-card.featured {
  background: var(--bg-card);
  border-top: 2px solid var(--purple);
}

.service-badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-dim);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 36px;
  height: 36px;
  color: var(--purple);
  margin-bottom: 1.25rem;
  stroke-width: 1.25;
}

.service-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover { color: var(--purple); }

.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.service-link:hover svg { transform: translateX(3px); }

/* ── DIVIDER ────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── REGIONS ────────────────────────────────────────────────────── */

.regions {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.region {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  margin-bottom: 4px;
}

.region-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.region-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── PHILOSOPHY BLOCK ───────────────────────────────────────────── */

.phi-block {
  border-left: 2px solid var(--purple);
  padding-left: 2rem;
  max-width: 640px;
}

.phi-block p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.phi-block p:last-child { margin-bottom: 0; }
.phi-block em { color: var(--text); font-style: normal; }

/* ── ABOUT LAYOUT ───────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.credential-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.credential-item:first-child { border-top: 1px solid var(--border); }

.credential-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
}

.credential-badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── CONTACT FORM ───────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--purple);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-field select option { background: var(--bg-card); }

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

.cf-turnstile {
  margin: 0.5rem 0;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

#form-status {
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 3px;
  display: none;
}

#form-status.success {
  background: rgba(29,158,117,0.12);
  color: #4caf8a;
  border: 1px solid rgba(29,158,117,0.2);
  display: block;
}

#form-status.error {
  background: rgba(226,75,74,0.1);
  color: #e24b4a;
  border: 1px solid rgba(226,75,74,0.2);
  display: block;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand svg {
  height: 22px;
  width: auto;
  color: var(--text-dim);
  fill: currentColor;
}

.footer-brand-text {
  font-family: 'Audiowide', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

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

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */

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

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITIES ──────────────────────────────────────────────────── */

.text-purple { color: var(--purple); }
.text-muted  { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .regions { gap: 1.75rem; }
  .hero-crown { width: 72px; height: 72px; }
}
