:root {
  --bg: #05070d;
  --bg-radial: radial-gradient(120% 90% at 50% 0%, #16203a 0%, #0a0f1c 55%, #070a12 100%);
  --surface: #0b1120;
  --surface-panel: rgba(20, 30, 52, 0.5);
  --surface-input: rgba(14, 22, 38, 0.85);
  --line: #1b2740;
  --line-strong: #243250;
  --divider: #18233b;
  --text: #f1f5f9;
  --muted: #8595ad;
  --faint: #64748b;
  --brand: #38bdf8;
  --brand-light: #67e8f9;
  --brand-line: #bae6fd;
  --link: #7dd3fc;
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.42, 0.5, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: var(--bg-radial);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px);
}

.waves {
  position: absolute;
  left: 0;
  width: 100%;
  height: 26vh;
  min-height: 120px;
  max-height: 240px;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.waves-top { top: 0; transform: scaleY(-1); }
.waves-bottom { bottom: 0; }

.waves-svg { width: 100%; height: 100%; display: block; }

.parallax > use { animation: wave-move 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes wave-move {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.brand--hero { font-size: 25px; gap: 14px; letter-spacing: -0.4px; }

.brand--hero img {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.45));
}

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.16s ease; }
.nav-links a:hover { color: var(--text); }

.page-main {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 32px 0 64px;
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.hero-icon {
  width: 98px;
  height: 98px;
  filter: drop-shadow(0 0 48px rgba(56, 189, 248, 0.5));
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7.5vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero .tagline {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.hero .tagline strong { color: var(--text); font-weight: 600; }

.hand {
  position: relative;
  z-index: 2;
  width: min(640px, 94vw);
  height: clamp(210px, 48vw, 350px);
  margin-bottom: clamp(26px, 5vh, 44px);
}

.hand .card {
  --tx: 0%;
  --rot: 0deg;
  --ty: 0px;
  --lift: 0px;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(112px, 26vw, 178px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: clamp(10px, 2vw, 16px);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(56, 189, 248, 0.07);
  transform-origin: 50% 120%;
  transform: translateX(calc(-50% + var(--tx))) translateY(calc(var(--ty) + var(--lift))) rotate(var(--rot));
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
  animation: fan-in 1s var(--ease-spring) 0.25s backwards;
}

.hand .card:nth-child(1) { --tx: -118%; --rot: -18deg; --ty: 10px; z-index: 1; }
.hand .card:nth-child(2) { --tx: -59%;  --rot: -9deg;  --ty: 2px;  z-index: 2; }
.hand .card:nth-child(3) { --ty: -4px; z-index: 3; }
.hand .card:nth-child(4) { --tx: 59%;   --rot: 9deg;   --ty: 2px;  z-index: 2; }
.hand .card:nth-child(5) { --tx: 118%;  --rot: 18deg;  --ty: 10px; z-index: 1; }

.hand .card:hover {
  --lift: -14px;
  z-index: 9;
  box-shadow:
    0 30px 54px -14px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(56, 189, 248, 0.18);
}

@keyframes fan-in {
  from {
    transform: translateX(-50%) translateY(26px) rotate(0deg);
    opacity: 0;
  }
}

.badges {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  border-radius: 16px;
  transition: transform 0.18s var(--ease-spring), opacity 0.18s ease;
}

.badge img,
.badge svg { height: 52px; width: auto; display: block; }
.badge:hover { transform: translateY(-2px); opacity: 0.9; }
.badge:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

.page-head { text-align: center; padding: 26px 0 6px; }

.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.02em;
}

.page-head p { margin-top: 14px; color: var(--muted); }
.page-head a { color: var(--link); text-decoration: none; }
.page-head a:hover { text-decoration: underline; }

.faq-section-title {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--link);
  margin: 44px 0 14px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface-panel);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--line-strong); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 2.3vw, 19px);
  letter-spacing: -0.2px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.22s var(--ease-smooth), color 0.16s ease;
}

.faq-item[open] .chev { transform: rotate(180deg); color: var(--link); }
.faq-item summary:hover .chev { color: var(--text); }

.faq-item .answer {
  padding: 0 20px 22px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item .answer p + p { margin-top: 12px; }
.faq-item .answer a { color: var(--link); text-decoration: none; }
.faq-item .answer a:hover { text-decoration: underline; }
.faq-item .answer em { color: #b9c6de; font-style: italic; }

.faq-item .answer ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.path {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--brand-line);
  background: var(--surface-input);
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.prose {
  max-width: 68ch;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); }
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.cta-row { text-align: center; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
  color: #062234;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 16px;
  box-shadow: 0 12px 30px -12px rgba(56, 189, 248, 0.75);
  transition: transform 0.18s var(--ease-spring), filter 0.18s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

.note {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.note a { color: var(--link); text-decoration: none; }
.note a:hover { text-decoration: underline; }

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 46px 20px 60px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.16s ease; }
.footer-links a:hover { color: var(--text); }
.footer .mail { color: var(--link); text-decoration: none; }
.footer .copy { opacity: 0.7; }

@media (max-width: 560px) {
  .badge img,
  .badge svg { height: 46px; }
  .nav { padding: 18px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .brand--hero { font-size: 18px; gap: 10px; }
  .brand--hero img { width: 50px; height: 50px; }
}

@media (max-width: 560px) {
  .hand .card:nth-child(1),
  .hand .card:nth-child(5) { display: none; }
  .hand .card:nth-child(2) { --tx: -62%; --rot: -11deg; --ty: 6px; }
  .hand .card:nth-child(4) { --tx: 62%;  --rot: 11deg;  --ty: 6px; }
  .hand .card { width: clamp(118px, 34vw, 148px); }
  .hand { height: clamp(220px, 70vw, 285px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax > use { animation: none; }
  .hand .card { animation: none; }
}
