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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #fff;
}

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

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

/* ===== Variables ===== */
:root {
  --green: #009E49;
  --red: #EF2B2D;
  --gold: #FCD116;
  --dark: #1a1a2e;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 100;
  padding: 12px 0;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(170deg, var(--white) 60%, var(--light-bg) 100%);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== Modules Section ===== */
.modules {
  padding: 60px 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Module section — text + screenshots side by side on desktop */
.module-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.module-section:last-child {
  margin-bottom: 0;
}

.module-info {
  flex: 1;
}

.module-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.module-card-badge.epermis {
  background: #e8f5e9;
  color: var(--green);
}

.module-card-badge.eprepa {
  background: #e3f2fd;
  color: #1565c0;
}

.module-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.module-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.module-features {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-features li {
  font-size: 0.9rem;
  color: #555;
  padding-left: 24px;
  position: relative;
}

.module-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Screenshots gallery */
.module-screenshots {
  flex: 1;
}

.screenshot-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.screenshot-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.screenshot-scroll img {
  width: 180px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===== Download Section ===== */
.download {
  padding: 60px 0;
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.store-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.store-btn-text {
  text-align: left;
}

.store-btn-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-btn-text strong {
  display: block;
  font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact {
  padding: 60px 0;
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.whatsapp {
  background: #25D366;
}

.contact-icon.email {
  background: var(--red);
}

.contact-icon.phone {
  background: var(--gold);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-info strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info span {
  font-size: 0.85rem;
  color: #666;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: #888;
}

.footer a {
  color: var(--green);
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive — Tablet+ ===== */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .module-section {
    flex-direction: row;
    align-items: center;
  }

  .module-section.reverse {
    flex-direction: row-reverse;
  }

  .screenshot-scroll img {
    width: 200px;
  }

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

/* ===== Mobile nav toggle ===== */
@media (max-width: 767px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}
