/* IDNWallet homepage — premium business tech */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.page-home {
  --iw-navy: #0F2240;
  --iw-purple: #7B61FF;
  --iw-cyan: #28D0D0;
  --iw-gray-bg: #F4F6FA;
  --iw-gray-text: #6B7280;
  --iw-black: #111827;
  --iw-white: #FFFFFF;
  --iw-gradient: linear-gradient(135deg, #7B61FF 0%, #28D0D0 100%);
  --iw-shadow: 0 8px 32px rgba(15, 34, 64, 0.08);
  --iw-shadow-hover: 0 12px 40px rgba(15, 34, 64, 0.12);
  --iw-maxw: 1200px;
  --iw-header-h: 72px;
  --brand: var(--iw-purple);
  --brand-dark: var(--iw-navy);
  --bg: var(--iw-gray-bg);
  --text: var(--iw-black);
  --muted: var(--iw-gray-text);
  --border: #E5E7EB;
}

.page-home {
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  background: var(--iw-white);
}

.page-home .site-promo { display: none; }

.page-home main { min-height: auto; }

/* ── Header (fixed transparent → solid) ── */
.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .site-header.is-scrolled {
  background: rgba(15, 34, 64, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.page-home .site-header__inner {
  max-width: var(--iw-maxw);
  height: var(--iw-header-h);
  padding: 0 2.5rem;
}

.page-home .site-logo {
  color: var(--iw-white);
  font-family: Inter, "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.page-home .site-logo:hover { color: var(--iw-cyan); text-decoration: none; }

.page-home .site-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--iw-gradient);
  font-family: Inter, sans-serif;
  font-size: 1rem;
}

.page-home .nav-item__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  position: relative;
}

.page-home .nav-item__link:hover,
.page-home .nav-item__link.is-active {
  color: var(--iw-white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.page-home .site-header__lang {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.page-home .site-header__lang:hover { color: var(--iw-white); }

.page-home .btn--ghost-nav {
  background: transparent;
  color: var(--iw-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.page-home .btn--ghost-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--iw-white);
}

.page-home .btn--gradient {
  background: var(--iw-gradient);
  color: var(--iw-white);
  border: none;
  padding: 0.5rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(123, 97, 255, 0.35);
}

.page-home .btn--gradient:hover {
  filter: brightness(1.05);
  color: var(--iw-white);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.45);
}

.page-home .site-header.is-scrolled .site-menu-toggle span {
  background: var(--iw-white);
}

/* ── Hero ── */
.iw-hero {
  position: relative;
  min-height: max(680px, 100vh);
  max-height: 900px;
  background: var(--iw-navy);
  color: var(--iw-white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--iw-header-h) + 3rem) 2.5rem 4rem;
}

.iw-hero__glow--1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.iw-hero__glow--2 {
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(40, 208, 208, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.iw-hero__inner {
  max-width: var(--iw-maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.iw-hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--iw-cyan);
  margin-bottom: 1.25rem;
}

.iw-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.iw-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.iw-hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.iw-hero__points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.iw-hero__point-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--iw-gradient);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.iw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.iw-hero .btn--gradient-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 12px;
}

.iw-hero .btn--outline-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 12px;
  background: transparent;
  color: var(--iw-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.iw-hero .btn--outline-lg:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--iw-white);
}

.iw-hero__trust {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* Hero visual */
.iw-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iw-visual {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

.iw-visual__core {
  position: absolute;
  inset: 18%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: iw-float 6s ease-in-out infinite;
}

.iw-visual__domain {
  font-family: Inter, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--iw-cyan);
}

.iw-visual__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.iw-visual__orbit {
  position: absolute;
  inset: 0;
  animation: iw-spin 24s linear infinite;
}

.iw-visual__node {
  position: absolute;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(123, 97, 255, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.iw-visual__node svg {
  width: 22px;
  height: 22px;
  stroke: url(#iwGrad);
  fill: none;
  stroke-width: 1.5;
}

.iw-visual__node--1 { top: 0; left: 50%; transform: translateX(-50%); }
.iw-visual__node--2 { bottom: 8%; right: 0; }
.iw-visual__node--3 { bottom: 8%; left: 0; }

.iw-visual__line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.5), rgba(40, 208, 208, 0.5), transparent);
  height: 1px;
  transform-origin: center;
}

@keyframes iw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes iw-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Section common ── */
.iw-section {
  padding: 7.5rem 2.5rem;
}

.iw-section--gray { background: var(--iw-gray-bg); }

.iw-section__head {
  max-width: var(--iw-maxw);
  margin: 0 auto 3.5rem;
  text-align: center;
}

.iw-section__head--left {
  text-align: left;
  max-width: var(--iw-maxw);
  margin: 0 auto 3rem;
}

.iw-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--iw-navy);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.iw-section__intro {
  font-size: 1.0625rem;
  color: var(--iw-gray-text);
  margin: 0 auto;
  max-width: 42rem;
  line-height: 1.7;
}

.iw-section__inner {
  max-width: var(--iw-maxw);
  margin: 0 auto;
}

/* ── Advantages grid ── */
.iw-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.iw-adv-card {
  background: var(--iw-white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--iw-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.iw-adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iw-shadow-hover);
}

.iw-adv-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(40, 208, 208, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--iw-purple);
  font-size: 1.35rem;
}

.iw-adv-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--iw-black);
  margin: 0 0 0.65rem;
}

.iw-adv-card p {
  font-size: 0.9375rem;
  color: var(--iw-gray-text);
  margin: 0;
  line-height: 1.65;
}

/* ── Features alternating ── */
.iw-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.iw-feature:last-child { margin-bottom: 0; }

.iw-feature--reverse .iw-feature__media { order: 2; }
.iw-feature--reverse .iw-feature__body { order: 1; }

.iw-feature__tag {
  display: inline-block;
  background: rgba(123, 97, 255, 0.1);
  color: var(--iw-purple);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.iw-feature__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--iw-navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.iw-feature__desc {
  font-size: 1rem;
  color: var(--iw-gray-text);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.iw-feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iw-feature__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--iw-black);
}

.iw-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iw-cyan);
}

.iw-feature__illus {
  background: linear-gradient(145deg, var(--iw-navy) 0%, #1a3a6b 100%);
  border-radius: 16px;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--iw-shadow);
  position: relative;
  overflow: hidden;
}

.iw-feature__illus::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.25), transparent 70%);
}

.iw-illus-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-family: Inter, monospace;
  font-size: 0.875rem;
  color: var(--iw-cyan);
  margin-bottom: 1rem;
}

.iw-illus-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.iw-illus-panel strong {
  display: block;
  color: var(--iw-white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* ── Steps ── */
.iw-steps-section {
  background: var(--iw-navy);
  color: var(--iw-white);
  padding: 7.5rem 2.5rem;
}

.iw-steps-section .iw-section__title { color: var(--iw-white); }
.iw-steps-section .iw-section__intro { color: rgba(255, 255, 255, 0.75); }

.iw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--iw-maxw);
  margin: 0 auto;
  position: relative;
}

.iw-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--iw-gradient);
  opacity: 0.5;
}

.iw-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.iw-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--iw-gradient);
  color: var(--iw-white);
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.25s ease;
}

.iw-step:hover .iw-step__num { transform: scale(1.08); }

.iw-step__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.iw-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.iw-step p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.6;
  padding: 0 0.5rem;
}

/* ── Stats ── */
.iw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--iw-maxw);
  margin: 0 auto;
  text-align: center;
}

.iw-stat__num {
  font-family: Inter, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--iw-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.iw-stat__label {
  font-size: 0.9375rem;
  color: var(--iw-gray-text);
}

.iw-stats-divider {
  max-width: var(--iw-maxw);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.iw-stats-trust {
  font-size: 0.875rem;
  color: var(--iw-gray-text);
  margin: 0;
}

/* ── CTA ── */
.iw-cta {
  background: var(--iw-gradient);
  position: relative;
  overflow: hidden;
  padding: 5rem 2.5rem;
  text-align: center;
}

.iw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 64, 0.12);
}

.iw-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.iw-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--iw-white);
  margin: 0 0 1rem;
}

.iw-cta__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.iw-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.iw-cta .btn--white {
  background: var(--iw-white);
  color: var(--iw-navy);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.iw-cta .btn--white:hover {
  filter: brightness(1.03);
  text-decoration: none;
  color: var(--iw-navy);
}

.iw-cta .btn--outline-white {
  background: transparent;
  color: var(--iw-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.iw-cta .btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--iw-white);
}

/* ── Footer (home enhanced) ── */
.page-home .site-footer {
  background: var(--iw-navy);
  padding: 3.5rem 2.5rem 2rem;
}

.page-home .site-footer__grid {
  max-width: var(--iw-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.page-home .footer-col h4 {
  color: var(--iw-white);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.page-home .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .footer-col li { margin-bottom: 0.5rem; }

.page-home .footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.page-home .footer-col a:hover { color: var(--iw-white); }

.page-home .footer-brand-block strong {
  color: var(--iw-white);
  font-family: Inter, sans-serif;
  font-size: 1.125rem;
}

.page-home .footer-brand-block p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
  max-width: 28ch;
  line-height: 1.6;
}

.page-home .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.page-home .footer-meta p { color: rgba(255, 255, 255, 0.45); }
.page-home .site-footer a { color: rgba(255, 255, 255, 0.65); }

/* ── Reveal animation ── */
.iw-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.iw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 992px) {
  .iw-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .iw-hero__visual { order: -1; }
  .iw-visual { max-width: 320px; margin: 0 auto; }
  .iw-adv-grid { grid-template-columns: repeat(2, 1fr); }
  .iw-feature { grid-template-columns: 1fr; gap: 2rem; }
  .iw-feature--reverse .iw-feature__media,
  .iw-feature--reverse .iw-feature__body { order: unset; }
  .iw-steps { grid-template-columns: 1fr 1fr; }
  .iw-steps::before { display: none; }
  .iw-stats { grid-template-columns: repeat(2, 1fr); }
  .page-home .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

.page-home .site-menu-toggle span {
  background: var(--iw-white);
}

@media (max-width: 960px) {
  .page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  .page-home .site-nav {
    top: var(--iw-header-h);
  }
}

@media (max-width: 768px) {
  .page-home .site-header__inner,
  .iw-hero,
  .iw-section,
  .iw-steps-section,
  .iw-cta { padding-left: 1.25rem; padding-right: 1.25rem; }

  .page-home .site-header__actions .btn--ghost-nav { display: none; }

  .page-home .site-nav {
    background: var(--iw-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-home .site-nav .nav-item__link { color: rgba(255, 255, 255, 0.9); }

  .iw-hero { min-height: auto; max-height: none; padding-bottom: 3rem; }
  .iw-adv-grid { grid-template-columns: 1fr; }
  .iw-steps { grid-template-columns: 1fr; gap: 2rem; }
  .iw-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .iw-stat__num { font-size: 2.25rem; }
  .iw-cta__actions { flex-direction: column; align-items: stretch; }
  .page-home .site-footer__grid { grid-template-columns: 1fr; }
  .iw-section { padding: 4.5rem 1.25rem; }
  .iw-steps-section { padding: 4.5rem 1.25rem; }
}
