/* ============================================
   iMonetary — Design Tokens
   ============================================ */
:root {
  --ink-black: #07080B;
  --royal-navy: #0E1F4B;
  --royal-navy-deep: #071230;
  --royal-gold: #C6A15B;
  --royal-gold-bright: #E4C588;
  --parchment: #F3EFE6;
  --muted: #8B93A8;
  --hairline: rgba(198, 161, 91, 0.22);
  --card-line: rgba(243, 239, 230, 0.10);

  --font-display: 'Libre Caslon Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--parchment);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--royal-gold-bright);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin-bottom: 1rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--royal-gold);
  color: var(--ink-black);
  border: 1px solid var(--royal-gold);
}
.btn-gold:hover { background: var(--royal-gold-bright); border-color: var(--royal-gold-bright); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--card-line);
}
.btn-outline:hover { border-color: var(--royal-gold); color: var(--royal-gold-bright); }

.btn-ghost-sm {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--hairline);
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
}
.btn-ghost-sm:hover { border-color: var(--royal-gold); color: var(--royal-gold-bright); }

.btn-text {
  padding: 0.85rem 0.2rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.btn-text:hover { color: var(--parchment); border-color: var(--royal-gold); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--parchment);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  margin-right: auto;
  margin-left: 3rem;
}
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--parchment); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle span { display: block; height: 1px; background: var(--parchment); width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 31, 75, 0.55), transparent 70%),
    linear-gradient(180deg, var(--royal-navy-deep) 0%, var(--ink-black) 65%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198, 161, 91, 0.14) 0%, transparent 62%);
  animation: drift 22s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%, 100% { transform: translateX(-52%) translateY(0) scale(1); }
  50% { transform: translateX(-48%) translateY(30px) scale(1.06); }
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-bottom: 1.6rem;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible, .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-inner .reveal:nth-child(5) { transition-delay: 0.45s; }

/* ============================================
   Sections (shared)
   ============================================ */
.section { padding: 7rem 2rem; }
.section-dark { background: var(--royal-navy-deep); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.col-content h2 { max-width: 640px; }
.col-content p { max-width: 640px; font-size: 1.05rem; }

/* ============================================
   Timeline (Platform / Roadmap)
   ============================================ */
.timeline {
  margin-top: 3rem;
  border-left: 1px solid var(--hairline);
}
.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.6rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-black);
  border: 1px solid var(--muted);
}
.timeline-item.is-live .timeline-marker {
  background: var(--royal-gold);
  border-color: var(--royal-gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(198, 161, 91, 0.08); }
}
.timeline-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--royal-gold);
  text-transform: uppercase;
}
.timeline-content h3 { margin-bottom: 0.5rem; }
.timeline-content p { max-width: 520px; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--card-line);
}
.status-live { color: var(--royal-gold-bright); border-color: rgba(198, 161, 91, 0.45); }
.status-building { color: var(--parchment); border-color: var(--card-line); opacity: 0.75; }
.status-roadmap { color: var(--muted); opacity: 0.6; }

/* ============================================
   Security
   ============================================ */
.security-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.security-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.security-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin-bottom: 0.9rem;
}
.security-item p:not(.security-tag) { font-size: 0.96rem; }

/* ============================================
   Pricing / Membership
   ============================================ */
.pricing-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.price-card {
  position: relative;
  background: rgba(243, 239, 230, 0.02);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.price-card:hover { border-color: var(--hairline); transform: translateY(-3px); }
.price-card.is-featured {
  border-color: var(--royal-gold);
  background: rgba(198, 161, 91, 0.045);
}
.price-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-black);
  background: var(--royal-gold);
  position: absolute;
  top: -0.65rem;
  left: 1.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.price-tier { font-family: var(--font-display); font-size: 1.5rem; color: var(--parchment); margin-bottom: 0.3rem; }
.price-detail { font-family: var(--font-mono); font-size: 0.78rem; color: var(--royal-gold); margin-bottom: 1rem; }
.price-desc { font-size: 0.92rem; margin-bottom: 1.4rem; }
.price-features { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; flex-grow: 1; }
.price-features li {
  font-size: 0.88rem;
  color: var(--parchment);
  padding-left: 1.1rem;
  position: relative;
}
.price-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--royal-gold);
}
.price-card .btn { justify-content: center; width: 100%; }
.price-note {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ============================================
   Request Invitation Form
   ============================================ */
.form-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}
.form-intro p:not(.eyebrow) { max-width: 320px; margin-top: 0.8rem; font-size: 0.98rem; }

.invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row-full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row .optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(243, 239, 230, 0.03);
  border: 1px solid var(--card-line);
  color: var(--parchment);
  padding: 0.8rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--royal-gold);
  outline: none;
}
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px; background-repeat: no-repeat; }
.form-row textarea { resize: vertical; font-family: var(--font-body); }

.form-submit-row { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.6rem; }
.form-submit { position: relative; }
.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(7,8,11,0.3);
  border-top-color: var(--ink-black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit.is-loading .btn-label { opacity: 0.6; }
.form-submit.is-loading .btn-spinner { display: inline-block; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.form-status.is-success { color: var(--royal-gold-bright); }
.form-status.is-error { color: #C97A6D; }

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 3.5rem 2rem 3rem;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--royal-gold-bright); }
.footer-legal { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); width: 100%; opacity: 0.7; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .security-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-section { grid-template-columns: 1fr; gap: 2rem; }
  .invite-form { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .trust-row { flex-direction: column; align-items: center; gap: 0.6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn-ghost-sm { display: none; }
  .nav-toggle { display: flex; }
}
