/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #30BF76;
  --green-dark: #28a366;
  --blue: #60A3D2;
  --bg: #F9F9F4;
  --bg-alt: #ffffff;
  --text: #1A2C29;
  --text-secondary: #4a6b64;
  --text-light: #4a6357;
  --radius: 16px;
  --max-w: 1120px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}
button:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 200;
  background: var(--green); color: white; padding: 8px 16px;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 12px;
  width: auto; height: auto; overflow: visible;
}
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,249,244,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,44,41,0.08);
  padding: 12px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.nav-brand .icon {
  width: 36px; height: 36px; background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: white !important; padding: 8px 20px;
  border-radius: 20px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }

/* ===== Hero ===== */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(48,191,118,0.1); color: var(--green);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 .highlight { color: var(--green); }
.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-appstore img { height: 52px; transition: transform 0.2s; }
.btn-appstore img:hover { transform: scale(1.05); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 26px;
  background: var(--bg-alt); color: var(--text);
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid rgba(26,44,41,0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(48,191,118,0.12); }
.hero-screenshot { margin-top: 56px; position: relative; }
.hero-screenshot .phone-frame {
  max-width: 280px; margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(26,44,41,0.15), 0 8px 24px rgba(26,44,41,0.08);
  overflow: hidden; background: #000; border: 6px solid #1a1a1a;
}
.hero-screenshot .phone-frame img { display: block; width: 100%; }

/* ===== Section Common ===== */
.section-label {
  text-align: center; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--green); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 48px; letter-spacing: -0.01em;
}

/* ===== Features ===== */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 32px;
  border: 1px solid rgba(26,44,41,0.06);
  box-shadow: 0 2px 12px rgba(26,44,41,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,44,41,0.1); }
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}

/* ===== How It Works ===== */
.how-it-works { padding: 80px 0; background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 20px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; max-width: 280px; margin: 0 auto; }

/* ===== Stats Banner ===== */
.stats { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-value {
  font-size: 2.2rem; font-weight: 800; color: var(--green);
  line-height: 1.2; margin-bottom: 4px;
}
.stat-item .stat-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* ===== Detailed Features ===== */
.detail-features { padding: 80px 0; background: var(--bg-alt); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.detail-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid rgba(26,44,41,0.06);
}
.detail-card .detail-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(48,191,118,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.detail-card h4 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.detail-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* ===== CTA ===== */
.cta { padding: 80px 0; text-align: center; }
.cta-box {
  background: linear-gradient(135deg, #1A2C29 0%, #2a4a40 100%);
  border-radius: 24px; padding: 64px 40px; color: white;
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-box p {
  color: rgba(255,255,255,0.7); font-size: 1.1rem;
  max-width: 500px; margin: 0 auto 32px;
}
.cta-box .btn-appstore img { height: 56px; }

/* ===== Footer ===== */
footer {
  padding: 40px 0; border-top: 1px solid rgba(26,44,41,0.08);
  color: var(--text-light); font-size: 0.9rem;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 24px; }


/* ===== Legal Pages ===== */
.legal { padding: 60px 0 80px; }
.legal h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 8px;
}
.legal-updated {
  color: var(--text-light); font-size: 0.9rem; margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.15rem; font-weight: 700;
  margin-top: 32px; margin-bottom: 8px;
}
.legal p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.legal ul {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
  margin: 0 0 12px 24px;
}
.legal a { color: var(--green); text-decoration: underline; }
.legal a:hover { color: var(--green-dark); }

/* ===== Feature Icon Colors ===== */
.feature-icon.green { background: rgba(48,191,118,0.12); }
.feature-icon.blue { background: rgba(96,163,210,0.15); }
.feature-icon.purple { background: rgba(147,112,219,0.12); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }

/* ===== News Page ===== */
.news-hero { padding: 80px 0 40px; text-align: center; }
.news-hero .section-title { margin-bottom: 16px; }
.news-hero-subtitle {
  color: var(--text-secondary); font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px; margin: 0 auto; line-height: 1.6;
}
.news-content { padding: 40px 0 80px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 28px;
  border: 1px solid rgba(26,44,41,0.06);
  box-shadow: 0 2px 12px rgba(26,44,41,0.04);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,44,41,0.1); }
}
.news-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1A2C29 0%, #2a4a40 100%);
  color: white;
}
.news-card--featured p { color: rgba(255,255,255,0.75); }
.news-card--featured .news-date { color: rgba(255,255,255,0.5); }
.news-card--featured .news-link { color: var(--green); }
.news-card h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.news-card--featured h2 { font-size: 1.35rem; }
.news-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.news-date { font-size: 0.82rem; color: var(--text-light); font-weight: 500; }
.news-link {
  color: var(--green); font-weight: 600; font-size: 0.9rem;
  margin-top: auto; display: inline-block;
}
.news-link:hover { color: var(--green-dark); }
.news-tag {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; width: fit-content;
}
.tag-fuel { background: rgba(48,191,118,0.12); color: #28a366; }
.tag-ev { background: rgba(96,163,210,0.15); color: #4a8ab5; }
.tag-tips { background: rgba(255,180,50,0.15); color: #b8860b; }
.tag-policy { background: rgba(147,112,219,0.12); color: #7b5cb7; }
.news-card--featured .tag-fuel,
.news-card--featured .tag-ev,
.news-card--featured .tag-tips,
.news-card--featured .tag-policy { color: white; background: rgba(255,255,255,0.15); }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-hero { padding: 48px 0 24px; }
}

/* ===== Screenshots Gallery ===== */
.screenshots { padding: 80px 0; background: var(--bg-alt); overflow: hidden; }
.screenshots-scroll {
  display: flex; gap: 28px; justify-content: center; align-items: flex-end;
  padding: 20px 0 40px;
}
.screenshots-scroll .phone-frame {
  flex-shrink: 0; width: 220px; border-radius: 28px;
  box-shadow: 0 16px 48px rgba(26,44,41,0.12), 0 4px 16px rgba(26,44,41,0.06);
  overflow: hidden; background: #000; border: 6px solid #1a1a1a;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.screenshots-scroll .phone-frame:nth-child(2) {
  transform: translateY(-16px);
}
@media (hover: hover) {
  .screenshots-scroll .phone-frame:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 64px rgba(26,44,41,0.18), 0 8px 24px rgba(26,44,41,0.1);
  }
  .screenshots-scroll .phone-frame:nth-child(2):hover {
    transform: translateY(-28px) scale(1.03);
  }
}
.screenshots-scroll .phone-frame img { display: block; width: 100%; }

/* ===== Hamburger Menu ===== */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Perfect For (differentiated layout) ===== */
.perfect-for { padding: 80px 0; background: var(--bg-alt); }
.perfect-for .features-grid { gap: 24px; }
.perfect-for .feature-card {
  background: var(--bg); border-left: 4px solid var(--green);
  text-align: left;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .screenshots-scroll { gap: 20px; }
  .screenshots-scroll .phone-frame { width: 180px; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(249,249,244,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px 24px; gap: 12px;
    border-bottom: 1px solid rgba(26,44,41,0.08);
    box-shadow: 0 8px 24px rgba(26,44,41,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .screenshots-scroll {
    justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding: 20px 24px 40px;
    gap: 16px;
  }
  .screenshots-scroll .phone-frame {
    width: 160px; scroll-snap-align: center;
  }
  .screenshots-scroll .phone-frame:nth-child(2) { transform: none; }
  .hero { padding: 48px 0 40px; }
  .cta-box { padding: 48px 24px; }
  footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

