/* ============================================================
   Ekush Ponji — style.css
   Structure:
   1.  Variables
   2.  Reset
   3.  Typography
   4.  Layout Helpers
   5.  Hero
   6.  Section Commons
   7.  Features Section
   8.  Screenshots Section
   9.  Download Section
   10. Privacy Teaser Section
   11. Support Section
   12. Animations & Reveal
   13. Responsive
============================================================ */


/* ─── 1. VARIABLES ──────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --green:          #006B54;
  --green-dark:     #00513F;
  --green-light:    #E8F5F1;
  --green-mid:      #CCE8DB;
  --green-dim:      rgba(0, 107, 84, 0.1);
  --green-glow:     rgba(0, 107, 84, 0.25);
  --deep-red:       #CC2200;

  /* Neutrals */
  --white:          #FFFFFF;
  --off-white:      #FAFCFB;
  --surface:        #F4F9F7;
  --border:         #E0EDE8;
  --text-primary:   #0D1F1A;
  --text-secondary: #4A6259;
  --text-muted:     #8AA89E;

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;

  /* Misc */
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:      0 2px 8px rgba(0, 107, 84, 0.08);
  --shadow:         0 8px 32px rgba(0, 107, 84, 0.12);
  --shadow-lg:      0 24px 64px rgba(0, 107, 84, 0.16);
}


/* ─── 2. RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}


/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}


/* ─── 4. LAYOUT HELPERS ─────────────────────────────────────── */
.accent {
  color: var(--green);
}

.center {
  text-align: center;
}

.center.section-label {
  justify-content: center;
}

.center.section-label::before {
  display: none;
}


/* ─── 5. HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 100px 5vw 60px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--green-mid) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-bg-shape-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, var(--green-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Phone mockup */
.hero-phone {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--text-primary);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TODO: Remove .phone-placeholder once real screenshot is added */
.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 1.5rem;
  text-align: center;
}

.phone-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-muted);
}

.phone-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}


/* ─── 6. SECTION COMMONS ────────────────────────────────────── */
section {
  padding: 100px 5vw;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
}


/* ─── 7. FEATURES SECTION ───────────────────────────────────── */
#features {
  background: var(--surface);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ─── 8. SCREENSHOTS SECTION ────────────────────────────────── */
#screenshots {
  background: var(--white);
  overflow: hidden;
}

.screenshots-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.screenshots-row::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex-shrink: 0;
  width: 220px;
  height: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

/* TODO: Replace .screenshot-placeholder with actual <img> tags
   Recommended size: 390x844px
   Usage: <img src="assets/screenshots/home.png" alt="Home Screen" /> */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 1.5rem;
  text-align: center;
}

.screenshot-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-muted);
  opacity: 0.6;
}

.screenshot-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── 9. DOWNLOAD SECTION ───────────────────────────────────── */
#download {
  background: var(--green);
  text-align: center;
}

.download-inner {
  max-width: 500px;
  margin: 0 auto;
}

.download-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.download-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}


/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

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

.btn-primary.large {
  padding: 16px 36px;
  background: var(--white);
  color: var(--green);
}

.btn-primary.large:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
}

.btn-main {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}


/* ─── 10. PRIVACY TEASER SECTION ────────────────────────────── */
#privacy {
  background: var(--surface);
}

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

.privacy-teaser-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1rem 0 2rem;
}

.btn-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-privacy svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition);
}

.btn-privacy:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.btn-privacy:hover svg {
  transform: translateX(4px);
}

.privacy-teaser-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.privacy-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.privacy-pill.good {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
}

.privacy-pill.good svg {
  stroke: var(--green);
}

.privacy-pill.neutral {
  background: #FFF8E6;
  color: #7A5C00;
  border: 1px solid #FFE9A0;
}

.privacy-pill.neutral svg {
  stroke: #C49000;
}


/* ─── 11. SUPPORT SECTION ───────────────────────────────────── */
#support {
  background: var(--white);
  text-align: center;
}

.support-inner {
  max-width: 500px;
  margin: 0 auto;
}

.support-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-email svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.contact-email:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}


/* ─── 12. ANIMATIONS & REVEAL ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ─── 13. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-tagline {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-phone {
    display: none;
  }

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

  .privacy-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}