:root {
  --bg: #0b0d12;
  --panel: #121722;
  --panel-2: #171d2a;
  --text: #f7f8fb;
  --muted: #aeb7c8;
  --line: rgba(255,255,255,.12);
  --accent: #8affd2;
  --accent-2: #7aa7ff;
  --accent-3: #ffd166;
  --danger: #ff7a90;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122,167,255,.18), transparent 33rem),
    radial-gradient(circle at 80% 10%, rgba(138,255,210,.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section-pad { padding: 88px 0; }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  margin: 14px 0 26px;
  background: rgba(11,13,18,.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05070b;
  font-weight: 900;
}
.brand-text { color: #fff; opacity: .92; }

.desktop-nav { display: flex; gap: 20px; color: var(--muted); font-weight: 600; font-size: 14px; }
.desktop-nav a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.language-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #05070b; }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-large { padding: 15px 22px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 520px); gap: 46px; align-items: center; padding-top: 42px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.pulse { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 rgba(138,255,210,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(138,255,210,0); } 100% { box-shadow: 0 0 0 0 rgba(138,255,210,0); } }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 8vw, 92px); line-height: .92; letter-spacing: -.08em; margin-bottom: 24px; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.06em; margin-bottom: 18px; }
h3 { font-size: 20px; letter-spacing: -.025em; }
.hero-subtitle, .section-intro { color: var(--muted); font-size: 20px; max-width: 650px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 24px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-strip span { border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 8px 10px; border-radius: 999px; }

.hero-panel { min-width: 0; }
.grid-card, .founding-card, .reserve-form, .legal-note, .feature-band {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.grid-card { padding: 16px; }
.grid-card-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.grid-card-header strong { display: block; }
.mini-label { margin: 0 0 2px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.status-pill, .badge { color: #06100c; background: var(--accent); font-weight: 900; border-radius: 999px; padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.canvas-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 22px; background: #07090d; border: 1px solid rgba(255,255,255,.12); }
#pixelCanvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: crosshair; }
.canvas-overlay { position: absolute; left: 12px; bottom: 12px; color: #05070b; background: rgba(255,255,255,.86); border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 800; pointer-events: none; }
.grid-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); border-radius: 999px; padding: 9px 12px; cursor: pointer; font-weight: 800; font-size: 13px; }
.chip.active { color: #05070b; background: #fff; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 0 64px; }
.stat-card { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: var(--radius-lg); }
.stat-number { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.06em; }
.stat-label { color: var(--muted); font-weight: 700; }

.two-col { display: grid; grid-template-columns: .82fr 1.18fr; gap: 38px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step-card, .price-card, .trust-grid article, .milestones div, .faq-list details {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: var(--radius-lg);
}
.step-card { padding: 24px; }
.step-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(138,255,210,.12); color: var(--accent); font-weight: 900; margin-bottom: 28px; }
.step-card p, .price-card p, .trust-grid p, .faq-list p { color: var(--muted); margin-bottom: 0; }

.feature-band { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px; }
.feature-copy p:last-child { color: var(--muted); font-size: 18px; }
.feature-list { display: grid; gap: 12px; }
.feature-list div { display: flex; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.18); }
.feature-list strong { color: var(--accent); }
.feature-list span { color: var(--muted); text-align: right; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p { color: var(--muted); font-size: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price-card { padding: 24px; position: relative; overflow: hidden; }
.price-card.featured { border-color: rgba(138,255,210,.5); background: linear-gradient(180deg, rgba(138,255,210,.12), rgba(255,255,255,.045)); }
.package-size { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: #05070b; font-weight: 900; font-size: 20px; margin-bottom: 24px; }
.price-card strong { display: block; margin-top: 26px; font-size: 30px; letter-spacing: -.05em; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.founding-card { padding: 36px; }
.founding-card p { color: var(--muted); font-size: 18px; }
.milestones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.milestones div { padding: 28px; }
.milestones span { font-size: 44px; font-weight: 900; letter-spacing: -.07em; color: var(--accent); }
.milestones p { color: var(--muted); margin-bottom: 0; }

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-grid article { padding: 22px; }
.legal-note { margin-top: 18px; padding: 18px; color: var(--muted); }
.legal-note strong { color: var(--danger); margin-right: 5px; }

.reserve-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }
.reserve-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.reserve-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px; }
.reserve-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; font-size: 13px; }
.reserve-form .full { grid-column: 1 / -1; }
.reserve-form input, .reserve-form select, .reserve-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(0,0,0,.23);
  color: var(--text);
  padding: 14px 14px;
  outline: none;
}
.reserve-form input:focus, .reserve-form select:focus, .reserve-form textarea:focus { border-color: var(--accent); }
.form-small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin: 0; text-align: center; }

.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-list details { padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.faq-list p { margin: 12px 0 0; }

.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 40px 0 52px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-brand { margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 800; }
.footer-links a:hover { color: #fff; }

.legal-page { max-width: 860px; padding: 60px 0 90px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(40px, 6vw, 68px); }
.legal-page h2 { font-size: 28px; margin-top: 38px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page .back-link { display: inline-flex; margin-bottom: 32px; color: var(--accent); font-weight: 900; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero, .two-col, .feature-band, .split-section, .reserve-section { grid-template-columns: 1fr; }
  .stats-row, .pricing-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .section-pad { padding: 58px 0; }
  .topbar { border-radius: 24px; align-items: flex-start; }
  .brand-text { display: none; }
  .topbar-actions { margin-left: auto; }
  .btn-small { padding: 9px 12px; }
  .hero { padding-top: 24px; }
  h1 { font-size: 50px; }
  .hero-subtitle, .section-intro { font-size: 17px; }
  .stats-row, .steps, .pricing-grid, .trust-grid, .milestones, .reserve-form { grid-template-columns: 1fr; }
  .feature-band, .founding-card { padding: 24px; }
  .feature-list div { display: block; }
  .feature-list span { display: block; text-align: left; margin-top: 4px; }
  .footer { display: block; }
  .footer-links { margin-top: 20px; }
}


/* 1MP V13 — Logo integration */
.brand-with-logo {
  gap: 0;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 198px;
  height: auto;
  max-height: 46px;
}
.footer-logo {
  display: block;
  width: 245px;
  height: auto;
  max-width: 100%;
}
.hero-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(330px, 82vw);
  padding: 16px 18px;
  margin: 0 0 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 980px) {
  .brand-logo { width: 176px; }
  .hero-logo-card { width: min(300px, 78vw); }
}
@media (max-width: 640px) {
  .topbar { gap: 10px; }
  .brand-logo { width: 128px; max-height: 38px; }
  .topbar-actions { gap: 6px; }
  .reserve-link.btn-small { padding: 9px 10px; font-size: 12px; }
  .hero-logo-card { width: min(260px, 82vw); padding: 12px 14px; border-radius: 20px; }
  .footer-logo { width: 210px; }
}


/* V16 corrected approved-logo integration */
.brand-with-logo {
  gap: 0;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 136px;
  max-width: 136px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.hero-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(430px, 84vw);
  padding: 14px 16px;
  margin: 0 0 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .brand-logo {
    width: 122px;
    max-width: 122px;
  }
  .hero-logo-card {
    width: min(380px, 82vw);
  }
  .hero-logo {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 104px;
    max-width: 104px;
  }
  .hero-logo-card {
    width: min(320px, 86vw);
    padding: 12px 14px;
    border-radius: 22px;
  }
  .hero-logo {
    max-width: 290px;
  }
  .footer-logo {
    width: 148px;
  }
}

/* V17 — smaller header and footer logo */
.topbar .brand-logo,
header .brand-logo,
.brand.brand-with-logo .brand-logo {
  width: 86px !important;
  max-width: 86px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.footer .footer-logo,
footer .footer-logo {
  width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .topbar .brand-logo,
  header .brand-logo,
  .brand.brand-with-logo .brand-logo {
    width: 78px !important;
    max-width: 78px !important;
  }

  .footer .footer-logo,
  footer .footer-logo {
    width: 104px !important;
    max-width: 104px !important;
  }
}

@media (max-width: 640px) {
  .topbar .brand-logo,
  header .brand-logo,
  .brand.brand-with-logo .brand-logo {
    width: 68px !important;
    max-width: 68px !important;
  }

  .footer .footer-logo,
  footer .footer-logo {
    width: 94px !important;
    max-width: 94px !important;
  }
}

/* V18 — header logo frame fix
   Keeps the menu logo size visually balanced but prevents it from overflowing its frame. */
.topbar .brand.brand-with-logo {
  width: 112px !important;
  height: 46px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  padding: 5px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}

.topbar .brand-logo,
header .brand-logo,
.brand.brand-with-logo .brand-logo {
  width: 96px !important;
  max-width: 96px !important;
  height: auto !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

@media (max-width: 980px) {
  .topbar .brand.brand-with-logo {
    width: 104px !important;
    height: 42px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    padding: 5px 7px !important;
  }

  .topbar .brand-logo,
  header .brand-logo,
  .brand.brand-with-logo .brand-logo {
    width: 88px !important;
    max-width: 88px !important;
    max-height: 34px !important;
  }
}

@media (max-width: 640px) {
  .topbar .brand.brand-with-logo {
    width: 92px !important;
    height: 38px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    padding: 4px 6px !important;
  }

  .topbar .brand-logo,
  header .brand-logo,
  .brand.brand-with-logo .brand-logo {
    width: 78px !important;
    max-width: 78px !important;
    max-height: 30px !important;
  }
}
