/* ================================================
   appledeveloper.fun — Dark Emerald Sharp
   Palette: bg #060F0A | accent #10B981→#34D399 | text #F0FFF4
   ================================================ */

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

:root {
  --bg:        #060F0A;
  --bg2:       #0D1F17;
  --bg3:       #0A1810;
  --accent:    #10B981;
  --accent2:   #34D399;
  --text:      #F0FFF4;
  --text-muted:#A7C4B0;
  --border:    rgba(16,185,129,0.18);
  --radius:    14px;
  --font:      'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---- LINKS ---- */
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,15,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
nav a:hover { background: var(--bg2); color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.lang-switcher a {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--bg2);
  color: var(--accent);
}
.lang-switcher span { color: var(--border); }

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #060F0A !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); color: #060F0A !important; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
}
.btn-outline:hover { background: var(--accent); color: #060F0A !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(6,15,10,0.97);
  backdrop-filter: blur(16px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 10px; justify-content: center; }
.mobile-nav .lang-switcher { margin-top: 4px; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 760px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: .4px;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h1 .accent { color: var(--accent); }
h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-cta .btn { font-size: 16px; padding: 14px 32px; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================== SECTIONS ===================== */
section { padding: 90px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================== PRICING ===================== */
#pricing { background: var(--bg3); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.price-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.price-card.popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(16,185,129,0.08), var(--bg2));
}

.popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #060F0A;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.plan-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-type {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 28px;
}
.plan-price .dollar { font-size: 24px; font-weight: 700; color: var(--accent); align-self: flex-start; margin-top: 8px; }
.plan-price .amount { font-size: 56px; font-weight: 800; line-height: 1; }
.plan-price .period { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.plan-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* ===================== HOW IT WORKS ===================== */
#how { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color .25s;
}
.step:hover { border-color: var(--accent); }

.step-num {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ===================== FAQ ===================== */
#faq { background: var(--bg3); }

.faq-list { max-width: 760px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(16,185,129,0.4); }
.faq-item.open { border-color: var(--accent); }

.faq-q {
  width: 100%;
  background: var(--bg2);
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: rgba(16,185,129,0.07); }

.faq-icon {
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
  transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 22px 18px;
  background: var(--bg2);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a ul { padding-left: 18px; margin-top: 8px; }
.faq-a ul li { margin-bottom: 4px; }
.faq-item.open .faq-a { display: block; }

/* ===================== CTA SECTION ===================== */
.cta-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(52,211,153,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 90px 24px;
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section p { color: var(--text-muted); font-size: 18px; margin-bottom: 36px; }
.cta-section .btn { font-size: 17px; padding: 16px 40px; }

/* ===================== BLOG ===================== */
#blog { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.blog-img {
  height: 160px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-body { padding: 20px; }

.blog-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(16,185,129,0.1);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 12px;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-logo img { height: 32px; margin-bottom: 14px; }
.footer-desc { font-size: 14px; color: var(--text-muted); max-width: 300px; line-height: 1.7; }

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-links ul li a:hover { color: var(--accent); }

/* Social icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, transform .2s;
  overflow: hidden;
}
.social-icon:hover {
  border-color: var(--accent);
  background: rgba(16,185,129,0.1);
  transform: translateY(-2px);
}
.social-icon svg,
.social-icon img {
  width: 18px; height: 18px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

.disclaimer {
  font-size: 12px;
  color: rgba(167,196,176,0.6);
  margin-top: 14px;
  line-height: 1.5;
}

/* ===================== OCTO BROWSER BLOCK ===================== */
.octo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 24px;
}

.octo-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.octo-content .section-label { margin-bottom: 10px; }

.octo-content h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.4px;
}

.octo-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.octo-content p:last-of-type { margin-bottom: 0; }

.octo-content a.octo-inline {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(16,185,129,0.35);
  text-underline-offset: 3px;
  transition: color .2s;
}
.octo-content a.octo-inline:hover { color: var(--accent2); text-decoration-color: var(--accent2); }

.octo-content .promo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent2);
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: .5px;
  transition: background .2s;
  text-decoration: none;
}
.octo-content .promo-code:hover { background: rgba(16,185,129,0.18); }

.octo-cta-box {
  background: linear-gradient(145deg, rgba(16,185,129,0.1), rgba(52,211,153,0.05));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.octo-logo {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.octo-cta-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.octo-cta-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.octo-promos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.promo-pill {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.promo-pill strong { color: var(--accent2); font-family: monospace; font-size: 14px; }

.btn-octo {
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #060F0A !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  transition: opacity .2s, transform .15s;
}
.btn-octo:hover { opacity: .88; transform: translateY(-1px); color: #060F0A !important; }

@media (max-width: 768px) {
  .octo-inner {
    grid-template-columns: 1fr;
  }
  .octo-cta-box {
    order: -1;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  nav, .nav-right .btn { display: none; }
  .burger { display: flex; }
  .nav-right { gap: 8px; }
  /* show lang switcher on mobile too */
  .nav-right .lang-switcher { display: flex; }

  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 24px; }

  section { padding: 60px 20px; }

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

  .footer-bottom { flex-direction: column; text-align: center; }

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

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .stat-num { font-size: 28px; }
}
