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

/* ─── FONT ───────────────────────────────────────────────────── */
@font-face {
  font-family: 'Avenir';
  src: url('Avenir-Medium.woff2') format('woff2'),
       url('Avenir-Medium.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --black:    #05060f;
  --surface:  #0c0e1a;
  --grey-1:   #141626;
  --grey-2:   #252840;
  --grey-3:   #5e6280;
  --white:    #e8eaf5;
  --accent:   #a8b4e8;   /* soft cosmic blue */
  --accent-2: #6c8fd4;
  --glow:     #3a4fa0;

  --font:    'Avenir', 'Avenir Next', 'Nunito Sans', sans-serif;

  --nav-h:   72px;
  --max-w:   1160px;
  --pad:     clamp(20px, 5vw, 64px);
  --gap:     clamp(56px, 9vw, 104px);
}

/* ─── BASE ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── STARFIELD ──────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(168,180,232,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 9%,  rgba(168,180,232,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 61% 55%, rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 76% 33%, rgba(168,180,232,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 80%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  90%, rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 34% 44%, rgba(168,180,232,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 85%, rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 6%,  rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 50%, rgba(168,180,232,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 48%, rgba(168,180,232,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 25%, rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 39% 91%, rgba(168,180,232,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 96% 60%, rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 8%  35%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 70%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 23% 3%,  rgba(168,180,232,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 62%, rgba(168,180,232,0.3) 0%, transparent 100%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(58,79,160,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(108,143,212,0.08) 0%, transparent 70%);
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1;   }
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--gap) 0;
  border-top: 1px solid var(--grey-2);
  position: relative;
  z-index: 1;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
em { font-style: normal; }   /* globally disable italics */

.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
}

h2 {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ─── REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.22,.68,0,1.1),
              transform 0.7s cubic-bezier(.22,.68,0,1.1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── BUTTON ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--accent-2);
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary::after { content: '→'; transition: transform 0.2s; }
.btn-primary:hover {
  background: rgba(168,180,232,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108,143,212,0.2);
  color: var(--white);
}
.btn-primary:hover::after { transform: translateX(4px); }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(5,6,15,0.88);
  backdrop-filter: blur(16px);
  border-color: var(--grey-2);
}

.nav-logo {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--nav-h) var(--pad) 0;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: var(--gap) 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 16px);
  color: var(--grey-3);
  max-width: 360px;
  line-height: 1.65;
}

/* staggered hero delays */
.hero-eyebrow            { transition-delay: 0.1s; }
.hero-title              { transition-delay: 0.2s; }
.hero-sub                { transition-delay: 0.32s; }
.hero-content .btn-primary { transition-delay: 0.44s; }

/* Hero visual — cosmic nebula */
.hero-visual {
  position: relative;
  height: 500px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: float 10s ease-in-out infinite;
}
.orb-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(58,79,160,0.5), rgba(30,40,100,0.1));
  top: 40px; right: 20px;
}
.orb-2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(108,143,212,0.35), rgba(40,60,140,0.05));
  bottom: 60px; left: 10px;
  animation-delay: -4s;
}
.orb-3 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(168,180,232,0.25), transparent);
  top: 180px; left: 120px;
  animation-delay: -2s;
  filter: blur(50px);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grey-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, black, transparent);
  opacity: 0.2;
}

/* Small stars in the visual */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(168,180,232,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(168,180,232,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 60%, rgba(168,180,232,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 75%, rgba(168,180,232,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(168,180,232,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 65%, rgba(168,180,232,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(168,180,232,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(168,180,232,0.8) 0%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(0)     scale(1);    }
  50%       { transform: translateY(-20px) scale(1.03); }
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-right p {
  color: var(--grey-3);
  font-size: 15px;
  margin-bottom: 18px;
}

.about-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 36px;
  border-top: 1px solid var(--grey-2);
  flex-wrap: wrap;
}

.stat-num {
  display: block;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-3);
}

/* ─── FOCUS ──────────────────────────────────────────────────── */
.section-header { margin-bottom: clamp(36px, 5vw, 64px); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-2);
  border: 1px solid var(--grey-2);
}

.focus-card {
  position: relative;
  background: var(--surface);
  padding: clamp(28px, 4vw, 52px);
  transition: background 0.25s;
  overflow: hidden;
}
.focus-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(58,79,160,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.focus-card:hover { background: var(--grey-1); }
.focus-card:hover::after { opacity: 1; }

.focus-card-num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-2);
  letter-spacing: 0.08em;
}

.focus-icon {
  width: 34px; height: 34px;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.focus-card h3 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.focus-card p {
  font-size: 14px;
  color: var(--grey-3);
  line-height: 1.7;
}

/* ─── PROCESS ────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: start;
}

.process-line {
  height: 72px;
  background: var(--grey-2);
  margin-top: 4px;
}

.process-step { padding: 0 clamp(16px, 2vw, 32px); }
.process-step:first-child { padding-left: 0; }
.process-step:last-child  { padding-right: 0; }

.step-num {
  display: block;
  font-size: 30px;
  font-weight: 300;
  color: var(--grey-2);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.process-step p {
  font-size: 13.5px;
  color: var(--grey-3);
  line-height: 1.65;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-inner {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.contact-inner p { font-size: 15px; color: var(--grey-3); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--grey-2);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

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

.nav-logo { /* shared between nav and footer */
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.footer p { font-size: 13px; color: var(--grey-3); }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: var(--gap);
  }
  .hero-visual { display: none; }
  .about-grid  { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; }
  .process-line  { display: none; }
  .process-step  { padding: 28px 0 !important; border-top: 1px solid var(--grey-2); }
  .process-step:first-child { border-top: none; padding-top: 0 !important; }
}

@media (max-width: 600px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .focus-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1400px) {
  :root { --gap: 120px; }
}

/* ─── CONTACT FORM ───────────────────────────────────────────── */
.contact-inner { max-width: 640px; }

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--grey-2);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  padding: 13px 16px;
  outline: none;
  resize: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--grey-3);
  opacity: 0.5;
  font-family: var(--font);
}

.form-field input:focus,
.form-field textarea:focus {
  background: var(--grey-1);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(108,143,212,0.07),
              0 0 16px rgba(108,143,212,0.06);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.form-status {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  transition: color 0.2s;
}
.form-status.success { color: #7ec8a0; }
.form-status.error   { color: #e07878; }

button.btn-primary {
  cursor: pointer;
  border: 1px solid var(--accent-2);
}
button.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
