/* ===========================
   apple-developer.shop — Dark Navy Premium
   =========================== */

:root {
  --bg:        #060A14;
  --bg2:       #0A1020;
  --bg3:       #0E1628;
  --accent:    #0071E3;
  --accent2:   #34AADC;
  --text:      #F5F5F7;
  --muted:     #8E8E93;
  --border:    rgba(255,255,255,0.08);
  --card:      rgba(255,255,255,0.04);
  --gradient:  linear-gradient(135deg, #0071E3, #34AADC);
  --radius:    14px;
  --shadow:    0 8px 40px rgba(0,113,227,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo img { height: 36px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header__nav a {
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity .2s;
}
.header__nav a:hover { opacity: 1; }

.lang-switcher {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.lang-switcher a {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  border-color: var(--accent);
  color: var(--accent2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,113,227,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,113,227,0.45);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent2);
}
.btn-outline:hover {
  background: rgba(0,113,227,0.12);
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.9;
}
.mobile-menu .lang-switcher { margin: 8px 0 0; }
.mobile-menu .btn { width: 100%; margin-top: 8px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.18) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(52,170,220,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,113,227,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,113,227,0.15);
  border: 1px solid rgba(0,113,227,0.3);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== SECTION ===== */
section { padding: 96px 24px; }
.section__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.section__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { max-width: 1200px; margin: 0 auto; }

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

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0,113,227,0.3);
}
.feature-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card.popular {
  border-color: var(--accent);
  background: rgba(0,113,227,0.07);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-card__num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.price-card__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-card__type {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.price-card__price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 28px;
}
.price-card__price sup {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.price-card__list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card__list li {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-card__list li::before {
  content: '✓';
  color: var(--accent2);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card .btn { width: 100%; }
.price-card__note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  opacity: 0.7;
}

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

.how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.how__step {
  text-align: center;
  padding: 32px 20px;
}
.how__step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
}
.how__step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.how__step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .2s;
}
.faq__q:hover { background: rgba(255,255,255,0.03); }
.faq__q .arrow {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,113,227,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: transform .3s;
}
.faq__item.open .faq__q .arrow { transform: rotate(180deg); }
.faq__a {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq__item.open .faq__a {
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--bg2);
  text-align: center;
}
.cta-banner__inner {
  background: linear-gradient(135deg, rgba(0,113,227,0.15), rgba(52,170,220,0.1));
  border: 1px solid rgba(0,113,227,0.25);
  border-radius: 24px;
  padding: 64px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-banner__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-banner__sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.cta-banner__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.footer__logo img { height: 32px; }

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  background: var(--card);
}
.social-links a:hover {
  border-color: var(--accent);
  background: rgba(0,113,227,0.12);
  transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px; }

.footer__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__disclaimer {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  max-width: 520px;
}
.footer__made {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}
.footer__made a {
  color: var(--accent2);
  transition: opacity .2s;
}
.footer__made a:hover { opacity: 0.8; }

/* ===== BLOG ===== */
.blog-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,113,227,0.15) 0%, transparent 70%);
}
.blog-hero__title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
}
.blog-hero__sub { font-size: 17px; color: var(--muted); }

.blog-grid {
  padding: 48px 24px 96px;
}
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card__img {
  height: 180px;
  background: linear-gradient(135deg, rgba(0,113,227,0.2), rgba(52,170,220,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.blog-card__body { padding: 24px; }
.blog-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card__desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.blog-card__coming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}
.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  transition: opacity .2s;
}
.blog-card a[style*="contents"]:hover .blog-card__read { opacity: 0.75; }
.blog-card a[style*="contents"] { text-decoration: none; color: inherit; }

/* ===== OCTO BROWSER ===== */
.octo-section {
  background: var(--bg2);
  padding: 80px 24px;
}
.octo-section .container {
  max-width: 1000px;
}
.octo-inner {
  background: linear-gradient(135deg, rgba(52,170,220,0.08), rgba(0,113,227,0.05));
  border: 1px solid rgba(52,170,220,0.2);
  border-radius: 20px;
  padding: 48px 40px;
}
.octo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.octo-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(52,170,220,0.3);
}
.octo-header-text h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.octo-header-text p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.octo-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245,245,247,0.85);
  margin-bottom: 28px;
}
.octo-body p { margin-bottom: 14px; }
.octo-body p:last-child { margin-bottom: 0; }
.octo-link {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(52,170,220,0.35);
  transition: all .2s;
}
.octo-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.octo-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,113,227,0.12);
  border: 1px solid rgba(0,113,227,0.3);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  text-decoration: none;
  font-family: monospace;
  letter-spacing: 0.06em;
  transition: all .2s;
}
.octo-promo:hover {
  background: rgba(0,113,227,0.2);
  border-color: var(--accent2);
}
.octo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.octo-codes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .octo-inner { padding: 28px 20px; }
  .octo-footer { flex-direction: column; align-items: flex-start; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .burger { display: flex; }

  .hero { padding: 100px 20px 60px; }
  .hero__stats { gap: 32px; }
  .hero__stat-num { font-size: 28px; }

  section { padding: 64px 20px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .cta-banner__inner { padding: 44px 20px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .how__steps { grid-template-columns: 1fr; }
}
