:root {
  --primary: #6757c6;
  --primary-dark: #5449a8;
  --text-dark: #1a1a1a;
  --text-gray: #808080;
  --text-light: #f5f5f5;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.5rem;
  --transition: all 0.3s ease;
  --container-md: 72rem;
  --container-lg: 96rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-brand svg {
  width: 2.2rem;
  height: 2.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

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

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  max-width: 60rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-btn img {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-image {
  max-width: 60rem;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--primary);
  padding: 3rem 1.5rem;
  color: var(--white);
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.testimonial-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonial-item p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ========== HOW IT WORKS ========== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
}

.how-it-works {
  background: var(--bg-light);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.how-image {
  text-align: center;
}

.how-image img {
  max-width: 70%;
  margin: 0 auto;
}

.how-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.how-content > p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.feature-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 1.125rem;
  color: var(--text-gray);
}

.feature-item span:first-of-type {
  color: var(--text-dark);
  font-weight: 600;
}

/* ========== FEATURES ========== */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature-card img {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== ATM SECTION ========== */
.atm-section {
  background: var(--bg-light);
}

.atm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.atm-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.atm-content p {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.atm-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.atm-item {
  font-size: 1.125rem;
  font-weight: 600;
}

.atm-image {
  text-align: center;
}

.atm-image img {
  max-width: 100%;
}

/* ========== TRANSFORM SECTION ========== */
.transform-section {
  margin: 3rem 1.5rem;
}

.transform-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.transform-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.transform-content {
  padding: 3rem 2rem;
  color: var(--white);
}

.transform-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.transform-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.transform-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.transform-btn {
  background: var(--white);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.transform-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.transform-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 2rem;
}

.transform-image img {
  max-width: 80%;
}

/* ========== FAQ ========== */
.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.faq-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-header p {
  color: var(--text-gray);
  font-size: 1.125rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 500;
  background: var(--white);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

/* ========== CTA SECTION ========== */
.cta-section {
  margin: 3rem 1.5rem;
}

.cta-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 40rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
  margin: 0 auto;
}

.cta-form input {
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}

.cta-form button {
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========== FOOTER ========== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-gray);
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-brand h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand .app-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-brand .app-buttons img {
  width: 8rem;
  border-radius: var(--radius-sm);
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 0.9375rem;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 10rem 0 5rem;
  }

  .hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-image {
    order: 2;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .atm-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-image {
    order: 2;
  }

  .transform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .transform-content {
    padding: 4rem;
  }

  .faq-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .cta-card {
    padding: 4rem;
  }

  .cta-form {
    flex-direction: row;
  }

  .cta-form input {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    padding: 12rem 0 6rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .transform-card {
    margin: 0 4rem;
  }

  .cta-section {
    margin: 4rem;
  }

  .footer {
    padding: 5rem 0 2rem;
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }

  .transform-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .transform-content {
    padding: 5rem 6rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu.active .nav-cta {
    display: inline-block;
    position: absolute;
    bottom: 3rem;
  }
}

/* Fix for FAQ icon positioning */
@media (min-width: 768px) {
  .faq-question span:last-child {
    flex-shrink: 0;
    margin-left: 1rem;
  }
}
