/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00BFA6;
  --primary-light: #E0F7F4;
  --primary-dark: #009688;
  --dark: #1a3a4a;
  --dark-light: #24505f;
  --secondary: #6366F1;
  --secondary-light: #E0E7FF;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --success: #00BFA6;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--white);
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

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

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 140px 0 100px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 191, 166, 0.15);
  border: 1px solid rgba(0, 191, 166, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero__phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--text);
  border-radius: 40px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.phone__notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone__screen {
  flex: 1;
  background: var(--bg);
  margin: 4px;
  border-radius: 0 0 36px 36px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone__greeting {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.phone__greeting strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
}

.phone__balance-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  border-radius: 16px;
  padding: 16px;
  color: var(--white);
}

.phone__balance-label {
  font-size: 0.55rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone__balance-amount {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 4px 0 12px;
}

.phone__quick-actions {
  display: flex;
  gap: 8px;
}

.phone__action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  font-size: 0.5rem;
  color: var(--white);
  font-weight: 500;
}

.phone__stokvel-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone__stokvel-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.phone__stokvel-type {
  font-size: 0.5rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin: 4px 0 8px;
}

.phone__stokvel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: var(--text-secondary);
}

.phone__stokvel-row strong {
  color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 191, 166, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--dark-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--store {
  background: #000;
  color: var(--white);
  padding: 10px 24px;
  border-radius: 12px;
  gap: 12px;
}

.btn--store:hover {
  background: #222;
  color: var(--white);
  transform: translateY(-2px);
}

.btn--store svg {
  width: 28px;
  height: 28px;
}

.btn--store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn--store-text small {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn--store-text strong {
  font-size: 0.95rem;
}

/* ===== FEATURES ===== */
.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.section--alt .feature-card {
  background: var(--bg);
}

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

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card__icon--teal {
  background: var(--primary-light);
  color: var(--primary);
}

.feature-card__icon--indigo {
  background: var(--secondary-light);
  color: var(--secondary);
}

.feature-card__icon--amber {
  background: #FEF3C7;
  color: var(--warning);
}

.feature-card__icon--red {
  background: #FEE2E2;
  color: var(--error);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--border);
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== TRUST / STATS ===== */
.trust {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
  text-align: center;
}

.trust .section__label {
  color: var(--primary);
}

.trust .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.trust__stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.trust__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
}

.cta__box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.footer__bottom-links a:hover {
  color: var(--primary);
}

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 120px 0 60px;
  color: var(--white);
  text-align: center;
}

.legal-hero__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-hero__date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--dark);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text);
}

.legal-content .info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.legal-content .info-box p {
  color: var(--dark);
  margin-bottom: 0;
}

.legal-content .warning-box {
  background: #FEF3C7;
  border-left: 4px solid var(--warning);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.legal-content .warning-box p {
  color: #92400E;
  margin-bottom: 0;
}

/* ===== SUPPORT PAGE ===== */
.support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.support__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

.support__card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.support__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.support__contact-item:last-child {
  border-bottom: none;
}

.support__contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.support__contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.support__contact-value {
  font-weight: 500;
  color: var(--text);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  gap: 16px;
}

.faq__question:hover {
  color: var(--primary);
}

.faq__chevron {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq__answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== DELETE ACCOUNT ===== */
.delete-steps {
  counter-reset: steps;
}

.delete-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.delete-step__number {
  counter-increment: steps;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.delete-step__content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.delete-step__content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.4rem;
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .trust__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__toggle {
    display: block;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__phone {
    order: -1;
  }
  .hero__phone-mockup {
    width: 240px;
    height: 480px;
  }
  .hero__title {
    font-size: 2rem;
  }
  .section {
    padding: 60px 0;
  }
  .section__title {
    font-size: 1.8rem;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .trust__stats {
    grid-template-columns: 1fr 1fr;
  }
  .support__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cta__box {
    padding: 48px 24px;
  }
  .cta__title {
    font-size: 1.6rem;
  }
  .legal-hero__title {
    font-size: 1.8rem;
  }
}
