/* ═══════════════════════════════════════════════════
   SHINTUKI — Design System
   Aesthetic: Linear / Vercel / Stripe
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #08090d;
  --bg-subtle: #0f1117;
  --surface: #16181f;
  --border: #1e2028;
  --border-hi: #2a2c36;

  --text: #e8e6f0;
  --text-dim: #8b8d98;
  --text-mute: #5c5e6a;

  --accent: #7c5cfc;
  --accent-hi: #9b80ff;
  --accent-lo: rgba(124, 92, 252, 0.12);

  --green: #00d68f;
  --red: #ff4d6a;
  --amber: #ffb800;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ── Background ── */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 92, 252, 0.06);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 214, 143, 0.04);
  bottom: -200px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

/* ── Layout ── */
main {
  position: relative;
  z-index: 1;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lo);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 92, 252, 0.2);
}

.nav__name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__lang {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px;
}

.nav__lang-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-mute);
  background: transparent;
  border: none;
  padding: 0.3rem 0.55rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav__lang-btn:hover {
  color: var(--text-dim);
}

.nav__lang-btn--active {
  background: var(--accent);
  color: #fff;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.hero__content {
  max-width: 640px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-hi);
  padding: 0.35rem 1rem;
  background: var(--accent-lo);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero__proof {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 1rem;
}

.hero__proof span {
  color: var(--text-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Form ── */
.form__row {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition);
}

.form__row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lo);
}

.form__country {
  padding: 0.9rem 0.5rem 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: none;
  border-right: 1px solid var(--border);
  outline: none;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c5e6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.form__country[hidden] {
  display: none;
}

.form__country option {
  background: var(--surface);
  color: var(--text);
}

.form__input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.form__input::placeholder {
  color: var(--text-mute);
}

.form__btn {
  padding: 0.9rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.form__btn:hover {
  background: var(--accent-hi);
}

.form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form__loader[hidden] {
  display: none;
}

.form__check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s, opacity 0.3s, transform 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.form__check[hidden] {
  display: none;
}

.form__check.form__check--visible {
  animation: reveal 0.3s ease-out both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form__check:hover {
  color: var(--text);
}

.form__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-hi);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.form__check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form__check input[type="checkbox"]:checked::after {
  content: '✓';
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  color: #fff;
  font-weight: 700;
}

.form__turnstile {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form__msg {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}

.form__msg--ok {
  color: var(--green);
}

.form__msg--err {
  color: var(--red);
}

.form__msg--dup {
  color: var(--amber);
}

/* ── Quote ── */
.quote {
  padding: 4rem 2rem;
  text-align: center;
}

.quote__text {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ── How ── */
.how {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.how__card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.how__card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.how__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-lo);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.how__card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.how__card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Pillars ── */
.pillars {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .pillars__grid {
    grid-template-columns: 1fr;
  }
}

.pillars__card {
  padding: 2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.pillars__card:hover {
  border-color: var(--border-hi);
}

.pillars__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pillars__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 6rem 2rem;
}

.cta__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.cta__link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-hi);
  padding: 0.8rem 2rem;
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.cta__link:hover {
  background: var(--accent-lo);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.nav__logo--sm {
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ── Animations ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge,
.hero__title,
.hero__sub,
.form,
.hero__proof {
  animation: fade-up 0.6s ease-out both;
}

.hero__badge {
  animation-delay: 0.1s;
}

.hero__title {
  animation-delay: 0.2s;
}

.hero__sub {
  animation-delay: 0.3s;
}

.form {
  animation-delay: 0.4s;
}

.hero__proof {
  animation-delay: 0.5s;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .form__row {
    flex-direction: column;
  }

  .form__btn {
    justify-content: center;
  }

  .how,
  .pillars {
    padding: 3rem 1.25rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}