/* ============================================================
   INFINITY ROAM — Apple-inspired Design Layer
   ============================================================ */

/* ---- LANG TOGGLE ---- */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray-500);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--black); color: var(--black); }

.nav-right-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

/* ---- APPLE HERO ---- */
.apple-hero {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient background like apple.com */
.apple-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(80,80,80,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(40,40,40,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.apple-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-bottom: 60px;
}

.apple-eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

.apple-headline {
  font-family: var(--font);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 200;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.apple-headline em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.apple-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.apple-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

.apple-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.apple-btn-primary:hover { background: rgba(255,255,255,0.85); transform: translateY(-1px); }

.apple-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.apple-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.apple-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.apple-btn-white:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }

/* ---- PHONE MOCKUP ---- */
.apple-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.apple-phone {
  width: 220px;
  height: 440px;
  background: #1c1c1e;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 50px 100px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.apple-phone-screen {
  background: #000;
  border-radius: 36px;
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.apple-phone-notch {
  width: 50px; height: 8px;
  background: #1c1c1e;
  border-radius: 50px;
  margin: 0 auto 4px;
}

.apple-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apple-carrier {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apple-signal {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.apple-signal span {
  display: block;
  width: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}
.apple-signal span:nth-child(1) { height: 5px; }
.apple-signal span:nth-child(2) { height: 8px; }
.apple-signal span:nth-child(3) { height: 11px; }
.apple-signal span:nth-child(4) { height: 14px; }

.apple-data-ring {
  position: relative;
  width: 100px; height: 100px;
  margin: 4px auto;
}

.apple-data-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 7;
}

.ring-progress {
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 120;
}

.apple-data-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.apple-data-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.apple-data-gb { font-size: 0.6rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.apple-data-label { font-size: 0.48rem; color: rgba(255,255,255,0.3); margin-top: 2px; }

.apple-plan-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.apple-plan-label span { font-size: 0.72rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.apple-plan-label small { font-size: 0.56rem; color: rgba(255,255,255,0.3); }

.apple-chips {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.apple-chips span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.52rem;
  padding: 3px 7px;
  border-radius: 50px;
}

/* ---- FLOATING BADGES ---- */
.apple-badge {
  position: absolute;
  background: rgba(28,28,30,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBadge 5s ease-in-out infinite;
}

.badge-left { left: -60px; bottom: 60px; animation-delay: 0s; }
.badge-right { right: -60px; top: 40px; animation-delay: 2.5s; }

.badge-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}

.badge-title {
  font-size: 0.72rem;
  color: #fff;
  font-weight: 600;
}
.badge-sub { font-size: 0.62rem; color: rgba(255,255,255,0.4); }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- STATS BAR ---- */
.apple-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 28px 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.8s ease 0.5s both;
}

.apple-stat { text-align: center; }
.apple-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.apple-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.apple-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ---- APPLE SECTIONS ---- */
.apple-section { padding: 120px 0; }

.apple-section-light { background: var(--white); }

.apple-section-dark { background: #000; }

.apple-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 14px;
}
.apple-section-eyebrow.light { color: rgba(255,255,255,0.4); }

.apple-section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--black);
}
.apple-section-title.light { color: #fff; }
.apple-section-title strong { font-weight: 700; }

.apple-section-sub {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 64px;
}
.apple-section-sub.light { color: rgba(255,255,255,0.4); }

/* ---- STEPS ---- */
.apple-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.apple-step {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
}

.apple-step-num {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--gray-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.apple-step-icon { font-size: 2rem; margin-bottom: 16px; }

.apple-step h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.apple-step p {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 300;
  line-height: 1.6;
}

.apple-step-line {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- PLAN CARDS DARK MODE (for dark section) ---- */
.apple-section-dark .plan-card {
  background: #1c1c1e;
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.apple-section-dark .plan-card:hover {
  background: #2c2c2e;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.apple-section-dark .plan-region-tag {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.08);
}
.apple-section-dark .plan-name { color: #fff; }
.apple-section-dark .plan-desc { color: rgba(255,255,255,0.4); }
.apple-section-dark .plan-feature { color: rgba(255,255,255,0.5); }
.apple-section-dark .plan-footer { border-top-color: rgba(255,255,255,0.08); }
.apple-section-dark .price-amount { color: #fff; }
.apple-section-dark .price-label { color: rgba(255,255,255,0.3); }
.apple-section-dark .btn-buy {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.apple-section-dark .btn-buy:hover {
  background: rgba(255,255,255,0.18);
}
.plan-skeleton.dark {
  background: linear-gradient(90deg, #1c1c1e 25%, #2c2c2e 50%, #1c1c1e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-color: rgba(255,255,255,0.05);
}

/* ---- APPLE FOOTER ---- */
.apple-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 32px;
  color: #fff;
}

/* ---- NAV on dark hero ---- */
.nav {
  background: rgba(0,0,0,0.7) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
}

.nav .logo-text { color: #fff !important; }
.nav .logo-text strong { color: rgba(255,255,255,0.4) !important; }
.nav .nav-links a { color: rgba(255,255,255,0.55) !important; }
.nav .nav-links a:hover { color: #fff !important; }
.nav.scrolled { border-bottom-color: rgba(255,255,255,0.08) !important; }
.nav .btn-nav {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
.nav .btn-nav:hover { background: rgba(255,255,255,0.2) !important; }
.nav .lang-toggle { border-color: rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.5) !important; }
.nav .lang-toggle:hover { border-color: rgba(255,255,255,0.4) !important; color: #fff !important; }
.nav .nav-hamburger span { background: #fff !important; }

/* ---- CATALOG PAGE (light) ---- */
.catalog-page .nav {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
}
.catalog-page .nav .logo-text { color: var(--black) !important; }
.catalog-page .nav .logo-text strong { color: var(--gray-400) !important; }
.catalog-page .nav .nav-links a { color: var(--gray-500) !important; }
.catalog-page .nav .nav-links a:hover { color: var(--black) !important; }
.catalog-page .nav .btn-nav { background: var(--black) !important; color: #fff !important; border: none !important; }
.catalog-page .nav .lang-toggle { border-color: var(--border) !important; color: var(--gray-500) !important; }
.catalog-page .nav .lang-toggle:hover { border-color: var(--black) !important; color: var(--black) !important; }
.catalog-page .nav .nav-hamburger span { background: var(--black) !important; }

/* checkout/confirmation nav */
.checkout-page .nav,
.confirmation-page .nav {
  background: rgba(255,255,255,0.95) !important;
}
.checkout-page .nav .logo-text,
.confirmation-page .nav .logo-text { color: var(--black) !important; }
.checkout-page .nav .lang-toggle,
.confirmation-page .nav .lang-toggle { border-color: var(--border) !important; color: var(--gray-500) !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .apple-hero { padding: 90px 20px 50px; }
  .apple-headline { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .apple-subhead { font-size: 0.95rem; }

  .apple-hero-visual { margin-bottom: 40px; }
  .badge-left { left: -10px; bottom: 20px; }
  .badge-right { right: -10px; top: 20px; }

  .apple-stats {
    gap: 24px;
    padding: 20px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .apple-steps { flex-direction: column; }
  .apple-step-line { width: 80px; height: 1px; }

  .apple-section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 20px;
    backdrop-filter: blur(20px);
  }

  .catalog-page .nav-links.open,
  .checkout-page .nav-links.open,
  .confirmation-page .nav-links.open {
    background: rgba(255,255,255,0.98);
  }

  .nav-right-mobile { display: flex; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .apple-phone { width: 190px; height: 380px; }
  .apple-badge { display: none; }
  .apple-stats { gap: 16px; padding: 16px 20px; }
  .apple-stat-num { font-size: 1.3rem; }
}
