/* ==========================================================================
   NECOYOAD REMASTER — Apple Light Mode Theme & Web3 Crypto Motion Graphics
   Inspired by Apple Pro product presentations (Clean Whites, Titanium Grays, SF Pro)
   Pure light mode aesthetic: White (#ffffff), Titanium Grays (#f5f5f7, #e5e5ea), Charcoal (#1d1d1f)
   ========================================================================== */

:root {
  --apple-bg: #ffffff;
  --apple-bg-secondary: #f5f5f7;
  --apple-card: #ffffff;
  --apple-card-hover: #fbfbfd;
  --apple-border: #e5e5ea;
  --apple-border-focus: #0071e3;
  --apple-text: #1d1d1f;
  --apple-muted: #86868b;
  --apple-subtle: #d2d2d7;
  
  --apple-blue: #0071e3;
  --apple-blue-dark: #005bb5;
  --apple-green: #1b8a3e;
  --apple-purple: #bf5af2;
  --apple-gold: #f5a623;
  --apple-cyan: #0071e3;
  --apple-orange: #ff9f0a;

  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --apple-glass: rgba(255, 255, 255, 0.82);
  --apple-blur: saturate(180%) blur(20px);
  --apple-radius-sm: 8px;
  --apple-radius: 16px;
  --apple-radius-lg: 24px;
  --apple-radius-pill: 980px;
}

/* Global Reset & Base */
body.apple-theme {
  background-color: var(--apple-bg) !important;
  color: var(--apple-text) !important;
  font-family: var(--apple-font) !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Apple Navigation Bar ─────────────────────────────────────────────── */
.apple-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--apple-glass);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border-bottom: 1px solid var(--apple-border);
  transition: all 0.3s ease;
}

.apple-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--apple-text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.apple-nav-logo-icon {
  width: 24px;
  height: 24px;
  background: #1d1d1f;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.apple-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apple-nav-link {
  color: var(--apple-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.apple-nav-link:hover, .apple-nav-link.active {
  color: var(--apple-blue);
}

.apple-nav-pill-btn {
  background: #1d1d1f;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--apple-radius-pill);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.apple-nav-pill-btn:hover {
  background: #000000;
  transform: scale(1.02);
}

/* Secondary Ribbon Bar (Sub-Nav Apple Style) */
.apple-subnav-ribbon {
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border-bottom: 1px solid var(--apple-border);
  padding: 10px 0;
  font-size: 13px;
}

.apple-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apple-subnav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--apple-text);
  letter-spacing: -0.02em;
}

.apple-subnav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apple-link-action {
  color: var(--apple-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.apple-link-action:hover {
  text-decoration: underline;
}

/* ─── Hero Section with Three.js Canvas ───────────────────────────────── */
.apple-hero-viewport {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 70px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #eef5ff 0%, #ffffff 70%);
}

#crypto-3d-canvas {
  display: none !important;
}

.apple-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  pointer-events: auto;
}

.apple-hero-content * {
  pointer-events: auto;
}

.apple-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 20px;
  padding: 6px 18px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: var(--apple-radius-pill);
}

.apple-hero-headline {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--apple-text);
}

.apple-hero-sub {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--apple-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

.apple-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.apple-btn-primary {
  background: #1d1d1f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--apple-radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.apple-btn-primary:hover {
  background: #000000;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.apple-btn-glass {
  background: var(--apple-bg-secondary);
  color: var(--apple-text) !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--apple-radius-pill);
  text-decoration: none;
  border: 1px solid var(--apple-border);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apple-btn-glass:hover {
  background: #e5e5ea;
  border-color: var(--apple-subtle);
  transform: scale(1.02);
}

/* ─── Live Blockchain Ticker Bar ──────────────────────────────────────── */
.apple-ticker-bar {
  width: 100%;
  background: var(--apple-bg-secondary);
  border-top: 1px solid var(--apple-border);
  border-bottom: 1px solid var(--apple-border);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.apple-ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: tickerSlide 28s linear infinite;
}

.apple-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--apple-text);
  font-weight: 500;
}

.apple-ticker-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.apple-badge-green { background: rgba(27, 138, 62, 0.12); color: #1b8a3e; }
.apple-badge-blue  { background: rgba(0, 113, 227, 0.12); color: var(--apple-blue); }

@keyframes tickerSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Apple Bento Grid Layout ─────────────────────────────────────────── */
.apple-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
}

.apple-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.apple-section-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--apple-text);
}

.apple-section-desc {
  font-size: 17px;
  color: var(--apple-muted);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.apple-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.apple-bento-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.apple-bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--apple-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.apple-bento-card.col-12 { grid-column: span 12; }
.apple-bento-card.col-8  { grid-column: span 8; }
.apple-bento-card.col-6  { grid-column: span 6; }
.apple-bento-card.col-4  { grid-column: span 4; }

@media (max-width: 900px) {
  .apple-bento-card.col-8,
  .apple-bento-card.col-6,
  .apple-bento-card.col-4 {
    grid-column: span 12;
  }
}

.bento-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 12px;
}

.bento-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.bento-text {
  font-size: 14.5px;
  color: var(--apple-muted);
  line-height: 1.6;
}

/* ─── Interactive Live Checkout Sandbox ───────────────────────────────── */
.apple-sandbox-container {
  background: var(--apple-bg-secondary);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .apple-sandbox-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.checkout-modal-preview {
  background: #ffffff;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

.checkout-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--apple-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.checkout-chain-select {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.chain-btn {
  background: var(--apple-bg-secondary);
  border: 1px solid var(--apple-border);
  color: var(--apple-text);
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.chain-btn.active, .chain-btn:hover {
  background: rgba(0, 113, 227, 0.1);
  border-color: var(--apple-blue);
  color: var(--apple-blue);
}

.qr-box-wrapper {
  background: #ffffff;
  padding: 14px;
  border: 1px solid var(--apple-border);
  border-radius: 14px;
  display: inline-block;
  margin: 0 auto 14px;
  position: relative;
}

.qr-laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0071e3, transparent);
  box-shadow: 0 0 10px #0071e3;
  animation: laserScan 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes laserScan {
  0%   { top: 5%; }
  100% { top: 92%; }
}

.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 138, 62, 0.12);
  color: #1b8a3e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--apple-radius-pill);
}

.checkout-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b8a3e;
  box-shadow: 0 0 6px #1b8a3e;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%   { transform: scale(0.9); opacity: 0.7; }
  50%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ─── Interactive Savings Calculator ─────────────────────────────────── */
.savings-slider-card {
  background: var(--apple-bg-secondary);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 36px;
}

.slider-range-input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 5px;
  background: #d2d2d7;
  outline: none;
  margin: 20px 0 14px;
}
.slider-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d1d1f;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.savings-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  text-align: center;
}
.savings-stat-box {
  background: #ffffff;
  border: 1px solid var(--apple-border);
  border-radius: 14px;
  padding: 18px;
}

/* ─── Developer Code Switcher ────────────────────────────────────────── */
.apple-code-box {
  background: #151720;
  border: 1px solid var(--apple-border);
  border-radius: 14px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #f5f5f7;
}
.apple-code-tabs {
  display: flex;
  background: #0e0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-tab-btn {
  background: transparent;
  border: none;
  color: #86868b;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.code-tab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--apple-blue);
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Apple Pro Pricing Matrix ───────────────────────────────────────── */
.pricing-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.pricing-card.featured {
  background: #ffffff;
  border: 2px solid var(--apple-blue);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.12);
}
.pricing-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--apple-text);
  margin: 16px 0 20px;
}

/* ─── Apple Footer ───────────────────────────────────────────────────── */
.apple-footer {
  background: #ffffff;
  border-top: 1px solid var(--apple-border);
  color: var(--apple-muted);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 40px 24px 60px;
}
.apple-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.apple-footer a {
  color: var(--apple-text);
  text-decoration: none;
}
.apple-footer a:hover {
  color: var(--apple-blue);
}

/* ─── Responsive Mobile Overrides ────────────────────────────────────── */
@media (max-width: 768px) {
  .apple-nav-links {
    display: none !important;
  }
  .apple-subnav-ribbon {
    display: none !important;
  }
  .apple-hero-viewport {
    padding: 90px 20px 48px !important;
    min-height: 75vh !important;
  }
  #crypto-3d-canvas {
    opacity: 0.35 !important;
  }
  .apple-hero-headline {
    font-size: 34px !important;
    line-height: 1.12 !important;
    margin-bottom: 16px;
  }
  .apple-hero-sub {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px;
  }
  .apple-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .apple-btn-primary, .apple-btn-glass {
    width: 100%;
    justify-content: center;
  }
  .apple-ticker-bar {
    padding: 8px 0;
  }
}
