:root {
  --bg-0: #0d0d0f;
  --bg-1: #16161a;
  --bg-2: #202228;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #f3f3f5;
  --text-dim: #a4a4ae;
  --text-faint: #6f6f7a;
  --accent: #ffffff;
  --accent-ink: #0d0d0f;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- Parallax background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(255,255,255,0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
}

.bg-layer {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background:
    radial-gradient(40rem 40rem at 20% 30%, rgba(255,255,255,0.04), transparent 70%),
    radial-gradient(30rem 30rem at 80% 60%, rgba(255,255,255,0.03), transparent 70%);
  will-change: transform;
}
.bg-layer--2 {
  background:
    radial-gradient(35rem 35rem at 15% 70%, rgba(255,255,255,0.035), transparent 70%),
    radial-gradient(25rem 25rem at 90% 25%, rgba(255,255,255,0.03), transparent 70%);
}
.bg-layer--3 {
  background:
    radial-gradient(50rem 35rem at 60% 90%, rgba(255,255,255,0.03), transparent 70%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 40px -12px rgba(255,255,255,0.35);
}
.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -12px rgba(255,255,255,0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}

.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn--cta {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 16px 44px -12px rgba(255,255,255,0.4);
  font-size: 17px;
  padding: 20px 36px;
}
.btn--cta:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 56px -12px rgba(255,255,255,0.5);
}
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(13, 13, 15, 0.6);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}

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

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #9b9ba3);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 26px -10px rgba(255,255,255,0.4);
}
.brand-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.brand-name small { display: block; font-weight: 500; color: var(--text-dim); font-size: 12px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 60px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-title .accent {
  display: block;
  color: var(--text-dim);
  font-style: italic;
  font-weight: 500;
  margin-top: 6px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass);
}

/* Portrait visual */
.hero-visual { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(255,255,255,0.12), transparent 70%),
    linear-gradient(160deg, #2a2c33, #16171b);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.portrait-overline {
  position: absolute;
  top: 26px; left: 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.portrait-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
}
.ring.stroke {
  width: 220px; height: 220px;
  border: 1px solid rgba(255,255,255,0.18);
}
.ring.disc {
  width: 150px; height: 150px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 70%);
  filter: blur(1px);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.mono {
  position: absolute;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(13,13,15,0.6);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}
.mono--1 { top: 60px; right: -10px; }
.mono--2 { bottom: 96px; left: -24px; }
.mono--3 { bottom: 26px; right: 20px; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: var(--line);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-lead {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-dim);
}

/* ---------- Glass cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 36px 30px;
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
  will-change: transform;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
}
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}

.card-num {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 22px;
  letter-spacing: 0.1em;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.card p { color: var(--text-dim); font-size: 15px; }

.card--primary { padding-top: 40px; }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
  transition: transform 0.45s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }
.card--primary:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

/* ---------- CTA ---------- */
.cta-section {
  padding-bottom: 140px;
}
.cta-block {
  text-align: center;
  padding: 80px 60px;
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    var(--bg-2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 60%; height: 200%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}
.cta-eyebrow { margin-bottom: 18px; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 auto 24px;
}

.cta-trigger {
  max-width: 60ch;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 16px;
}
.cta-trigger::before {
  content: "⚡ ";
  color: var(--text);
}

/* ---------- Form ---------- */
.form {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.form-field .req { color: var(--text); margin-left: 3px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row .form-field:last-child { margin-bottom: 16px; }
.form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(13,13,15,0.4);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.3s, background 0.3s;
}
.form input::placeholder { color: var(--text-faint); }
.form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background: rgba(13,13,15,0.6);
}

.form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}
.form-success {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal.open { visibility: visible; opacity: 1; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 38px;
  border-radius: 26px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,0.09), transparent 55%),
    linear-gradient(160deg, #232429, #17181c);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
  padding-right: 30px;
}
.modal-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 28px;
}
.modal .form-note { text-align: left; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 14px;
}
.footer-note { color: var(--text-faint); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.grid .reveal:nth-child(2) { transition-delay: 0.18s; }
.grid .reveal:nth-child(3) { transition-delay: 0.31s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .portrait { width: 260px; height: 320px; }
  .grid--3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .cta-block { padding: 50px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
