@font-face {
  font-family: "SaoTorpes";
  src: url("assets/fonts/SaoTorpes.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg-gradient: url("assets/img/bg/bg-gradient.jpg");
  --bg-paper: url("assets/img/bg/bg-paper.jpg");

  --ink: #10121a;
  --ink-sub: rgba(16, 18, 26, 0.82);
  --ink-meta: rgba(16, 18, 26, 0.64);
  --line: #1c1e2b;

  --mint: #a8f3c5;
  --cyan: #94d7ff;
  --lilac: #d4c5ff;

  --outline: 2px solid var(--line);
  --r-md: 18px;
  --r-lg: 24px;
  --shadow: 0 8px 0 rgba(28, 30, 43, 0.13);
  --shadow-hover: 0 11px 0 rgba(28, 30, 43, 0.17);

  --container: 1120px;
  --px: clamp(16px, 4vw, 40px);

  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  overflow-x: clip;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #79cbff #ebf2ff;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eef3ff; }
::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(28, 30, 43, 0.22);
  background: linear-gradient(180deg, var(--mint), var(--cyan), var(--lilac));
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  background-image: var(--bg-gradient);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--bg-paper);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: 260px;
  height: 260px;
  pointer-events: none;
  z-index: 100;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.46), rgba(148,215,255,0.18) 38%, transparent 68%);
  mix-blend-mode: soft-light;
  opacity: 0.42;
  translate: -50% -50%;
  transition: opacity 0.2s ease;
}

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

/* strict non-distortion */
.asset,
.sticker,
.doodle,
.ribbon {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

.sticker { width: clamp(48px, 7vw, 110px); }
.doodle { width: clamp(36px, 5vw, 84px); }
.ribbon { width: clamp(140px, 22vw, 300px); }

.shell {
  width: min(var(--container), calc(100% - (var(--px) * 2)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--sp-8) 0;
}

.section-tint-a { background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent); }
.section-tint-b { background: linear-gradient(180deg, rgba(148,215,255,0.06), transparent); }
.section-tint-c { background: linear-gradient(180deg, rgba(168,243,197,0.06), transparent); }

.section-head { margin-bottom: var(--sp-4); }

h1, h2, h3 { margin: 0 0 var(--sp-2); color: var(--ink); }

h1, h2 {
  font-family: "SaoTorpes", "Inter", sans-serif;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(52px, 7.2vw, 92px);
  max-width: 11ch;
  margin-inline: auto;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  max-width: 20ch;
  text-wrap: balance;
}

h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--ink-sub);
  max-width: 65ch;
}

.meta-label {
  margin-bottom: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-meta);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  position: relative;
  z-index: 3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--px);
  top: -100%;
  background: #fff;
  color: #000;
  border: var(--outline);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  z-index: 2200;
}
.skip-link:focus { top: 0.8rem; }

.site-header {
  position: sticky;
  top: 0.7rem;
  z-index: 1200;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  min-height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  border: var(--outline);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(7px) saturate(1.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: linear-gradient(130deg, var(--cyan), var(--lilac));
}
.brand-text { font-family: "SaoTorpes", "Inter", sans-serif; }

.nav-toggle {
  width: 2.3rem;
  height: 2.3rem;
  border: var(--outline);
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 0.2rem;
}
.nav-toggle span {
  width: 1rem;
  height: 2px;
  background: var(--ink);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-sub);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.44rem 0.62rem;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}
.nav-link.active { color: var(--ink); }

.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  display: none;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 30, 43, 0.14);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.18s ease, width 0.18s ease, opacity 0.16s ease;
}

.btn {
  --magnet-x: 0px;
  --magnet-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border: var(--outline);
  border-radius: 999px;
  background: #fff;
  padding: 0.78rem 1.1rem;
  box-shadow: 0 5px 0 rgba(28, 30, 43, 0.15);
  transform: translate(var(--magnet-x), var(--magnet-y));
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translate(var(--magnet-x), calc(var(--magnet-y) - 2px));
  box-shadow: 0 8px 0 rgba(28, 30, 43, 0.18);
  filter: saturate(1.08);
}
.btn:active { transform: translate(var(--magnet-x), calc(var(--magnet-y) + 1px)); }
.btn-primary { background: linear-gradient(130deg, var(--mint), var(--cyan)); }
.btn-small { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
.btn-display { font-family: "SaoTorpes", "Inter", sans-serif; }
.btn-ghost { background: #fff; }

/* HERO */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 64px;
  overflow: clip;
}

.hero-wrap {
  --hero-lift: clamp(28px, 6svh, 62px);
  --hero-drift-x: 0px;
  --hero-drift-y: 0px;
  position: relative;
  min-height: calc(100svh - 120px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  translate: 0 calc(var(--hero-lift) * -1);
}

.hero-content .meta-label,
.hero-content h1,
.hero-content .hero-sub,
.hero-content .hero-cta {
  margin-inline: auto;
  text-align: center;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 6;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  translate: var(--hero-drift-x) calc((var(--hero-lift) * -1) + var(--hero-drift-y));
  transition: translate 0.35s ease;
}

.hero-decor .asset {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 0 rgba(28, 30, 43, 0.08));
}

/* LEFT SIDE */
.hr1 { top: 15%; left: 1%; transform: rotate(-7deg); }
.hs1 { top: 38%; left: 7%; transform: rotate(-6deg); }
.hd1 { bottom: 18%; left: 8%; transform: rotate(-8deg); opacity: 0.7; }

/* RIGHT SIDE */
.hr2 { top: 17%; right: 1%; transform: rotate(6deg); }
.hs2 { top: 42%; right: 7%; transform: rotate(8deg); }

/* BOTTOM CENTER ANCHOR */
.hr3 { bottom: 7%; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* keep center safe (headline area) */
.hero-content {
  max-width: 820px;
}

/* avoid visual crowding at tablet/mobile */
@media (max-width: 1024px) {
  .hd1 { display: none; }
  .hs1 { left: 3%; }
  .hs2 { right: 3%; }
}

@media (max-width: 768px) {
  .hr2, .hs2 { display: none; } /* reduce to one side + bottom */
  .hero-decor .ribbon { width: clamp(84px, 22vw, 140px); }
  .hero-decor .sticker { width: clamp(48px, 12vw, 72px); }
  .hero-decor .doodle { width: clamp(40px, 10vw, 62px); }
  .hr1 { left: auto; right: 6%; top: 3%; }
  .hs1 { left: 3%; top: 43%; bottom: auto; }
  .hd1 { display: block; left: auto; right: 5%; bottom: 4%; opacity: 0.86; }
  .hr3 { display: none; }
}

@media (max-width: 480px) {
  .hs1 { display: block; }
  .hero-decor .ribbon { width: clamp(78px, 24vw, 108px); }
  .hero-decor .sticker { width: clamp(46px, 15vw, 62px); }
  .hero-decor .doodle { width: clamp(38px, 13vw, 54px); }
  .hr1 { right: 6%; top: 3%; }
  .hs1 { left: 3%; top: 45%; }
  .hd1 { right: 7%; bottom: 4%; }
  .hr3 { display: none; }
}

.card {
  border: var(--outline);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.motion-card {
  --card-lift: 0px;
  --card-rx: 0deg;
  --card-ry: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  overflow: hidden;
  transform: perspective(850px) translateY(var(--card-lift)) rotateX(var(--card-rx)) rotateY(var(--card-ry));
  transform-style: preserve-3d;
}

.motion-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,0.68), transparent 38%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.motion-card > * {
  position: relative;
  z-index: 1;
}

.motion-card:hover {
  --card-lift: -4px;
  transform: perspective(850px) translateY(var(--card-lift)) rotateX(var(--card-rx)) rotateY(var(--card-ry));
  box-shadow: var(--shadow-hover);
  filter: saturate(1.03);
}

.motion-card:hover::before {
  opacity: 1;
}

.how-track,
.feature-grid,
.voices-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.how-step,
.feature-card {
  padding: 1rem;
  min-height: 220px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}
.step-icon,
.feature-icon {
  margin-bottom: 0.55rem;
  transform-origin: 50% 70%;
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1), filter 0.24s ease;
  will-change: transform;
}

.motion-card:hover .step-icon,
.motion-card:hover .feature-icon {
  transform: translateY(-5px) rotate(-5deg) scale(1.05);
  filter: drop-shadow(0 9px 0 rgba(28, 30, 43, 0.1));
}

.table-archive {
  padding: 0.55rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(28, 30, 43, 0.18);
  border-radius: 14px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.72rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(28, 30, 43, 0.13);
}
th {
  background: #e9f2ff;
  color: rgba(16, 18, 26, 0.95);
  font-weight: 800;
}
tbody tr:nth-child(odd) td { background: #fcfdff; }
tbody tr:hover td { background: #f2f8ff; }

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.45rem;
  border-radius: 999px;
  border: 1.4px solid rgba(28, 30, 43, 0.42);
  background: linear-gradient(130deg, var(--mint), var(--cyan));
  vertical-align: middle;
  animation: dotPulse 2.7s ease-in-out infinite;
}
.chip {
  display: inline-block;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1.4px solid rgba(28, 30, 43, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  background: #f6faff;
  transition: transform 0.18s ease, background 0.18s ease;
}

tr:hover .chip {
  transform: translateY(-1px) rotate(-0.4deg);
  background: #fff;
}

.voice { padding: 1.05rem; }
.voice p {
  color: rgba(16, 18, 26, 0.9);
  font-size: 1.03rem;
}
.voice span {
  display: inline-block;
  margin-top: 0.58rem;
  color: var(--ink-meta);
  font-size: 0.9rem;
}
.tilt-a { transform: rotate(-0.5deg); }
.tilt-b { transform: rotate(0.6deg); }
.tilt-c { transform: rotate(-0.4deg); }

.accordion { display: grid; gap: 0.8rem; }
.faq-item { overflow: clip; }
.faq-trigger {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-trigger::after {
  content: "+";
  font-size: 1.15rem;
  transition: transform 0.28s ease;
}
.faq-trigger[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.22s ease;
}
.faq-panel.open {
  max-height: 220px;
  opacity: 1;
  padding: 0 1rem 1rem;
}

.cta-band {
  position: relative;
  border: var(--outline);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 2.2vw, 1.6rem);
  overflow: hidden;
  background: linear-gradient(130deg, rgba(255,255,255,0.93), rgba(240,251,255,0.82), rgba(255,247,251,0.84));
}
.cta-ribbon {
  position: absolute;
  right: -12px;
  top: -8px;
  opacity: 0.84;
  transition: transform 0.34s ease;
}
.cta-band:hover .cta-ribbon { transform: translate(-5px, 5px) rotate(-4deg); }
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.cta-content .btn { margin-top: var(--sp-3); }

.site-footer { padding: var(--sp-5) 0 var(--sp-6); }
.footer-inner {
  border-top: 2px solid #242736;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-inner .meta { color: var(--ink-meta); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.stagger-item {
  opacity: 0;
  transform: translateY(12px);
}
.stagger-item.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@keyframes dotPulse {
  0%, 100% {
    scale: 1;
    box-shadow: 0 0 0 0 rgba(148, 215, 255, 0);
  }
  45% {
    scale: 1.14;
    box-shadow: 0 0 0 5px rgba(148, 215, 255, 0.22);
  }
}

:focus-visible {
  outline: 3px solid #2f7dff;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .how-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu { display: inline-flex; }
  .nav-indicator { display: block; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hd1 { display: none; }
}

@media (max-width: 768px) {
  .section { padding: var(--sp-7) 0; }
  .hd1 { display: block; }
  .hero-wrap {
    --hero-lift: 32px;
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 5.7rem; }
  .hs1 { display: block; }
  .hero-wrap {
    --hero-lift: 22px;
    min-height: 460px;
  }
  h1 { font-size: clamp(42px, 12vw, 64px); max-width: 10.5ch; }
}

.nav-open .nav { border-radius: 22px; }
.nav-open .nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 0.42rem;
  padding: 0.72rem;
  background: #fff;
  border: var(--outline);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.nav-open .nav-indicator { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  body::after { display: none; }
  .hero-content,
  .hero-decor {
    translate: none !important;
  }
  .reveal, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .faq-panel, .faq-panel.open {
    max-height: none !important;
    opacity: 1 !important;
    padding: 0 1rem 1rem !important;
  }
}
