/* Self-hosted fonts (no external CDN) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-var.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-500-italic.woff2") format("woff2");
}

:root {
  --bg: #050b12;
  --bg-soft: #0a141d;
  --ink: #eef3f8;
  --muted: #8da2b6;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --coral: #ff5a52;
  --coral-dim: #b8352f;
  --max: 1160px;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(5, 11, 18, 0.92), rgba(5, 11, 18, 0));
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--coral);
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

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

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

.nav-cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--ink) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.34);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 56px;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050b12;
}

.hero-field canvas { display: block; width: 100%; height: 100%; }

.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(5, 11, 18, 0) 42%, rgba(5, 11, 18, 0.72) 100%),
    linear-gradient(to bottom, rgba(5, 11, 18, 0.35) 0%, rgba(5, 11, 18, 0.1) 35%, rgba(5, 11, 18, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--coral);
}

.hero h1 {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero h1 em {
  font-style: italic;
  color: #f4f7fb;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: #c3d1de;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #14090a;
}

.btn-primary:hover { background: #ff6f68; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- sections ---------- */
section { position: relative; }

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 46px;
}

.section-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: #b9c8d6;
}

/* cards */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--coral);
}

.step h3 { margin: 0 0 10px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* details table */
.details {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.detail-row:last-child { border-bottom: 0; }

.detail-row dt {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

.detail-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-item .label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a,
.contact-item .value {
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}

.contact-item a:hover { color: var(--coral); }

.notice {
  padding: 20px 22px;
  border: 1px solid rgba(255, 90, 82, 0.28);
  border-radius: 14px;
  background: rgba(255, 90, 82, 0.06);
  font-size: 13.5px;
  line-height: 1.7;
  color: #e7c9c7;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  font-size: 13px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-bottom .legal-name { max-width: 62ch; line-height: 1.6; }

/* legal pages */
.legal {
  padding: 150px 0 90px;
}

.legal h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.legal .updated {
  margin: 0 0 38px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h2 {
  margin: 38px 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.8;
  color: #b9c8d6;
}

.legal ul { padding-left: 22px; }

.legal a { color: var(--coral); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

/* fallback when WebGL unavailable / reduced motion */
.hero-field[data-fallback="true"] {
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(90, 105, 120, 0.35), transparent 70%),
    radial-gradient(70% 50% at 75% 65%, rgba(255, 90, 82, 0.16), transparent 70%),
    #050b12;
}

@media (prefers-reduced-motion: reduce) {
  .hero-field canvas { opacity: 0.9; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .steps, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 8px; }
  .site-nav { gap: 18px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-tag { display: none; }
  .hero { padding: 120px 0 48px; min-height: 92vh; }
  .hero h1 { font-size: clamp(34px, 9vw, 50px); max-width: 20ch; }
  .hero-meta { gap: 10px 18px; font-size: 11px; }
  .wrap { padding: 0 18px; }
  .card, .step { padding: 24px 20px; }
  .legal { padding: 120px 0 64px; }
}
