:root {
  /* Banner / infinity-logo brand */
  --brand_primary: #6b2d8b;
  --brand_primary_pressed: #4a148c;
  --brand_accent: #e91e63;
  --brand_doc: #c2185b;
  --ink: #1e1630;
  --ink_muted: #6b5f7a;
  --paper: #fbf7fc;
  --surface: #ffffff;
  --hairline: #e0d4e8;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Noto Sans", "Noto Sans JP", "Noto Sans KR",
    "Noto Sans TC", "Noto Sans Arabic", "Noto Sans Devanagari", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
}

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

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

/* Soft lavender / rose atmosphere (banner wash) */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.blob-a {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  left: -120px;
  top: -80px;
  background: rgba(107, 45, 139, 0.28);
}

.blob-b {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  right: -100px;
  bottom: 10%;
  background: rgba(233, 30, 99, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 212, 232, 0.7);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107, 45, 139, 0.18);
}

.brand-lockup span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-quick {
  color: var(--brand_primary);
}

.b-doc {
  color: var(--brand_doc);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink_muted);
  padding: 8px 10px;
}

.nav-link:hover {
  color: var(--brand_primary);
}

.lang-select {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B5F7A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 28px 6px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #6b2d8b 0%, #9c27b0 55%, #e91e63 140%);
  background-color: var(--brand_primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(107, 45, 139, 0.28);
}

.btn-primary:hover {
  background: var(--brand_primary_pressed);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brand_primary);
  color: var(--brand_primary);
}

.btn-ghost:hover {
  background: rgba(107, 45, 139, 0.06);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn:focus-visible,
.nav-link:focus-visible,
.lang-select:focus {
  outline: 2px solid var(--brand_primary);
  outline-offset: 2px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(107, 45, 139, 0.08);
  color: var(--brand_primary);
  font-size: 13px;
  font-weight: 650;
}

.trust-pill svg {
  flex-shrink: 0;
}

.dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(107, 45, 139, 0.28);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.dots button.active {
  background: var(--brand_primary);
  transform: scale(1.35);
}

main {
  position: relative;
  z-index: 1;
}

.panel {
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) clamp(16px, 4vw, 48px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero {
  position: relative;
  justify-content: center;
  padding-bottom: 72px;
}

.hero-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  text-align: left;
  max-width: 34rem;
}

body.rtl .hero-copy {
  text-align: right;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand_accent);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink_muted);
  max-width: 30rem;
  line-height: 1.5;
}

.hero-lead .accent {
  color: var(--brand_accent);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-copy .cta-row {
  justify-content: flex-start;
}

body.rtl .hero-copy .cta-row {
  justify-content: flex-end;
}

.site-line {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink_muted);
}

.site-line a {
  color: var(--brand_primary);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.phone {
  width: min(280px, 70vw);
  max-height: min(72svh, 560px);
  aspect-ratio: 9 / 19.2;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #3d2458, #1a1028);
  box-shadow: 0 28px 64px rgba(74, 20, 140, 0.22);
}

.phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.phone-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-sm {
  width: min(200px, 28vw);
  max-height: none;
  aspect-ratio: 9 / 19.2;
}

.phone-raise {
  transform: translateY(-18px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink_muted);
  letter-spacing: 0.04em;
}

.scroll-hint::before {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  margin: 0 auto 8px;
  background: var(--hairline);
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand_primary);
}

.kicker.light {
  color: rgba(242, 200, 230, 0.95);
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  margin: 12px auto 0;
  max-width: 36rem;
  color: var(--ink_muted);
  line-height: 1.5;
}

.lead.light {
  color: rgba(255, 245, 250, 0.82);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  text-align: left;
}

body.rtl .feature-grid {
  text-align: right;
}

.feature {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(224, 212, 232, 0.7);
  border-radius: 22px;
  padding: 20px 18px;
  min-height: 148px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(107, 45, 139, 0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.feature:nth-child(1) .feature-icon {
  background: rgba(107, 45, 139, 0.12);
  color: #6b2d8b;
}

.feature:nth-child(2) .feature-icon {
  background: rgba(233, 30, 99, 0.12);
  color: #e91e63;
}

.feature:nth-child(3) .feature-icon {
  background: rgba(33, 150, 243, 0.12);
  color: #1976d2;
}

.feature:nth-child(4) .feature-icon {
  background: rgba(229, 57, 53, 0.12);
  color: #e53935;
}

.feature:nth-child(5) .feature-icon {
  background: rgba(255, 152, 0, 0.14);
  color: #ef6c00;
}

.feature:nth-child(6) .feature-icon {
  background: rgba(0, 150, 136, 0.12);
  color: #00897b;
}

.feature h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink_muted);
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}

body.rtl .steps-grid {
  text-align: right;
}

.step {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(224, 212, 232, 0.7);
  border-radius: 22px;
  padding: 22px 18px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b2d8b, #e91e63);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink_muted);
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 28px);
  margin-top: 40px;
  flex-wrap: wrap;
}

.panel-privacy {
  background: linear-gradient(160deg, #4a148c 0%, #1e1630 55%, #3a0a2e 100%);
  color: #fff;
}

.panel-privacy h2 {
  color: #fff;
}

.panel-privacy .cta-row {
  justify-content: center;
  margin-top: 28px;
}

.limits {
  margin: 20px auto 0;
  max-width: 40rem;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 245, 250, 0.7);
}

.site-footer {
  position: relative;
  z-index: 1;
  background: #160e22;
  color: rgba(255, 245, 250, 0.7);
  padding: 40px 20px 48px;
  text-align: center;
  font-size: 13px;
}

.footer-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer a {
  color: #f48fb1;
  font-weight: 600;
}

.site-footer a:hover {
  color: #fff;
}

.pkg {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.55;
  word-break: break-all;
}

.enter {
  opacity: 0;
  transform: translateY(14px);
  animation: enter 0.55s var(--ease) forwards;
}

.enter-delay {
  animation-delay: 0.1s;
}

.enter-delay-2 {
  animation-delay: 0.18s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  body.rtl .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .cta-row,
  body.rtl .hero-copy .cta-row {
    justify-content: center;
  }

  .hero-copy .trust-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .phone {
    width: min(240px, 62vw);
    max-height: min(58svh, 480px);
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .phone-raise {
    transform: none;
  }

  .dots {
    display: none;
  }

  .header-actions .nav-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-brand {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .cta-row .btn {
    width: 100%;
  }

  .panel {
    min-height: auto;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 40px;
  }

  .hero {
    min-height: calc(100svh - 8px);
  }

  .brand-lockup img {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .enter,
  .enter-delay,
  .enter-delay-2 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn-primary:hover,
  .feature:hover {
    transform: none;
  }
}
