/* ==========================================================================
   The Wise Gentleman — cloned front-end framework
   Design tokens replicate the source site exactly (HSL values pulled from
   its computed CSS custom properties). Swap the values in :root to re-skin.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* --- color tokens (H S L triplets, consumed via hsl(var(--x))) --- */
  --background: 152 35% 4%;
  --foreground: 42 15% 90%;

  --card: 152 30% 6%;
  --card-foreground: 42 15% 90%;

  --popover: 152 30% 6%;
  --popover-foreground: 42 15% 90%;

  --primary: 42 15% 90%;
  --primary-foreground: 152 35% 4%;

  --secondary: 152 20% 9%;
  --secondary-foreground: 42 15% 90%;

  --muted: 152 15% 10%;
  --muted-foreground: 150 6% 58%;

  --accent: 38 38% 61%;
  --accent-foreground: 152 35% 4%;

  --destructive: 0 45% 30%;
  --destructive-foreground: 42 15% 92%;

  --warning: 40 70% 50%;
  --warning-foreground: 152 35% 8%;

  --border: 152 15% 11%;
  --input: 152 15% 11%;
  --ring: 38 38% 61%;

  --radius: 0.5rem;

  /* --- type --- */
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, serif;

  /* --- layout --- */
  --container-max: 1200px;
  --section-pad: 5rem;
}

/* ---------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.font-serif { font-family: var(--font-serif); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ------------------------------- utilities -------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: hsl(var(--accent));
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  text-align: center;
}

.section-sub {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

.text-accent { color: hsl(var(--accent)); }
.text-muted { color: hsl(var(--muted-foreground)); }

/* ------------------------------- background ------------------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, hsl(var(--accent) / 0.12), transparent 60%),
    radial-gradient(ellipse at bottom left, hsl(var(--accent) / 0.06), transparent 60%),
    radial-gradient(ellipse at top right, hsl(var(--accent) / 0.1), transparent 60%);
}

/* ---------------------------------- nav ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-mark {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: hsl(var(--accent));
  transition: transform 0.6s ease;
}
.logo:hover .logo-mark { animation: logo-spin-cycle 1.2s ease; }
.logo-word {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--foreground));
}
.logo-img {
  height: 1.75rem;
  width: auto;
  display: block;
  transition: transform 0.6s ease;
}
.logo:hover .logo-img { animation: logo-spin-cycle 1.2s ease; }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  opacity: 0.9;
}
.nav-signin:hover { opacity: 1; }

/* --------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-sm { height: 2.25rem; padding-inline: 0.9rem; font-size: 0.875rem; }
.btn-lg { height: 2.75rem; padding-inline: 2rem; font-size: 1rem; }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent) / 0.08); }

/* --------------------------------- sections -------------------------------- */
.section {
  position: relative;
  z-index: 2;
  padding-block: var(--section-pad);
  border-top: 1px solid hsl(var(--border));
}
.section--tint { background: hsl(var(--secondary) / 0.2); }
.section--plain { border-top: none; }

/* ----------------------------------- hero ---------------------------------- */
.hero { text-align: center; padding-block: 6rem 5rem; overflow: hidden; }
.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  max-width: 56rem;
  margin-inline: auto;
}
.hero-sub {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
}
.hero .btn-lg { margin-top: 2.25rem; }

.hero-video {
  position: relative;
  max-width: 52rem;
  margin: 3rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, #10201a 0%, #060b08 70%);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
}
.hero-video__poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground) / 0.25);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-video__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-video__play button {
  width: 4.5rem; height: 4.5rem;
  border-radius: 999px;
  background: hsl(var(--foreground) / 0.92);
  color: hsl(var(--background));
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.hero-video__play svg { width: 1.75rem; height: 1.75rem; margin-left: 3px; }
.hero-video__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent);
}
.hero-video__time {
  background: hsl(var(--foreground) / 0.9);
  color: hsl(var(--background));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}
.hero-video__track {
  flex: 1;
  height: 3px;
  background: hsl(var(--foreground) / 0.25);
  border-radius: 999px;
}
.hero-video__icons { display: flex; align-items: center; gap: 0.85rem; margin-left: auto; }
.hero-video__icons svg { width: 1.1rem; height: 1.1rem; color: hsl(var(--foreground) / 0.85); }

/* ------------------------------ why-built section --------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: hsl(var(--muted));
}
.split-copy h2 {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 1.5rem;
}
.split-copy p { margin-bottom: 1.1rem; color: hsl(var(--muted-foreground)); }
.split-copy p:last-child { margin-bottom: 0; }
.split-copy em, .split-copy strong {
  font-style: normal;
  color: hsl(var(--accent));
  font-weight: 500;
}

/* --------------------------------- pillars --------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.pillar-card {
  display: flex;
  gap: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.9);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.pillar-card img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.6rem;
  object-fit: cover;
  flex-shrink: 0;
  background: hsl(var(--muted));
}
.pillar-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.pillar-card li {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
}
.pillar-card li strong { color: hsl(var(--foreground)); font-weight: 500; }

.pillar-five {
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at center, hsl(var(--accent) / 0.1), transparent 60%),
    hsl(var(--card) / 0.6);
  text-align: center;
}
.pillar-five h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin: 0.5rem 0 1.25rem;
}
.pillar-five p { max-width: 44rem; margin: 0 auto 1rem; color: hsl(var(--muted-foreground)); }
.pillar-five p:last-of-type { margin-bottom: 1.5rem; }
.pillar-five em { font-style: normal; color: hsl(var(--accent)); font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--accent) / 0.4);
  color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
.badge::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  border-radius: 999px;
  background: hsl(var(--accent));
}

/* -------------------------------- roadmap ----------------------------------- */
.roadmap {
  max-width: 44rem;
  margin: 3.5rem auto 0;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: hsl(var(--border));
}
.roadmap-step {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
}
.roadmap-step:last-child { padding-bottom: 0; }
.roadmap-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: hsl(var(--background));
  border: 2px solid hsl(var(--accent));
}
.roadmap-step h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.roadmap-step p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

.roadmap-standard {
  margin-top: 3rem;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.roadmap-standard h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.roadmap-standard p { color: hsl(var(--muted-foreground)); }

/* ----------------------------------- CTA ------------------------------------- */
.cta-block { max-width: 40rem; margin-inline: auto; text-align: center; }
.cta-list {
  text-align: left;
  margin: 2.5rem 0 2.25rem;
  display: grid;
  gap: 0.9rem;
}
.cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: hsl(var(--foreground) / 0.9);
  font-size: 0.98rem;
}
.cta-list svg {
  width: 1.1rem; height: 1.1rem;
  color: hsl(var(--accent));
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.cta-block .btn-lg { display: inline-flex; }

/* ----------------------------------- FAQ -------------------------------------- */
.faq { max-width: 46rem; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item:first-child { border-top: 1px solid hsl(var(--border)); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-align: left;
}
.faq-q svg {
  width: 1.15rem; height: 1.15rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}
.faq-item.is-open .faq-a { padding-bottom: 1.25rem; }

/* --------------------------------- final CTA ------------------------------------ */
.final-cta { text-align: center; }
.final-cta h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  max-width: 46rem;
  margin-inline: auto;
}
.final-cta p {
  max-width: 38rem;
  margin: 1.5rem auto 2rem;
  color: hsl(var(--muted-foreground));
}
.final-cta em { font-style: normal; color: hsl(var(--accent)); }

/* ------------------------------------ footer ------------------------------------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding-block: 2.5rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-copy a:hover { color: hsl(var(--foreground)); text-decoration: underline; }

/* ------------------------------------ reveal-on-scroll ---------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  animation: reveal-up 0.7s ease forwards;
}

/* ------------------------------------ keyframes ------------------------------------ */
@keyframes logo-spin-cycle {
  0%, 95% { transform: rotateY(0); }
  97.5% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 hsl(var(--accent) / 0.3); }
  50% { box-shadow: 0 0 12px 3px hsl(var(--accent) / 0.15); }
}

/* ------------------------------------ responsive ------------------------------------ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 20rem; margin-inline: auto; }
  .pillars-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --section-pad: 3.5rem; }
  .nav-signin { display: none; }
  .pillar-card { flex-direction: column; }
}
