/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #1d1d1f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.apple-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;           /* taller than Apple's default 44px bar */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.apple-nav .container-nav {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-nav .nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.apple-nav .nav-logo span { color: #0071e3; }

.apple-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.apple-nav ul li {
  display: flex;
  align-items: center;
}

.apple-nav ul a {
  font-size: 0.8rem;
  color: #1d1d1f;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.apple-nav ul a:hover { opacity: 1; }

.apple-nav .nav-cta {
  color: #0071e3 !important;
  opacity: 1 !important;
  font-weight: 500;
}

/* Members dropdown */
.apple-nav li { position: relative; } /* anchor dropdown to its li */

.apple-nav .dropdown-toggle {
  opacity: 0.75;
  cursor: pointer;
}

.apple-nav .dropdown-toggle::after { display: none; } /* hide Bootstrap caret — icon enough */

.apple-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 160px;
  margin-top: 0 !important;
  z-index: 2000;
}

.apple-nav .dropdown-menu.show { display: block; }

.apple-nav .dropdown-item {
  font-size: 0.8rem;
  color: #1d1d1f;
  border-radius: 7px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}

.apple-nav .dropdown-item i { font-size: 0.85rem; color: #6e6e73; }

.apple-nav .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

.apple-nav .dropdown-divider {
  border-color: rgba(0, 0, 0, 0.08);
  margin: 4px 0;
}

/* ── Buttons ── */
.btn-apple {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.01em;
}

.btn-apple:hover { background: #0077ed; color: #fff; }

.btn-apple-ghost {
  display: inline-block;
  background: transparent;
  color: #0071e3;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  border: 1px solid #0071e3;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.01em;
}

.btn-apple-ghost:hover { background: #0071e3; color: #fff; }

/* ── Hero — light bg ── */
.apple-hero {
  background: #fff;
  color: #1d1d1f;
  text-align: center;
  padding: 90px 24px 110px;
}

.apple-hero .eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.apple-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.apple-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #0071e3 0%, #34aadc 50%, #30d158 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.apple-hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #6e6e73;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.apple-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats strip ── */
.apple-stats {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
}

.apple-stats .row > div {
  border-right: 1px solid #d2d2d7;
  padding: 2rem 1rem;
  text-align: center;
}

.apple-stats .row > div:last-child { border-right: none; }

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  display: block;
  margin-bottom: 0.2rem;
}

.stat-text {
  font-size: 0.78rem;
  color: #6e6e73;
}

/* ── Sections ── */
.apple-section        { padding: 90px 0; background: #fff; color: #1d1d1f; }
.apple-section.grey   { background: #f5f5f7; }
.apple-section.dark   { background: #000; color: #f5f5f7; }          /* used only for final CTA */

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.apple-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.apple-section .section-sub {
  font-size: 1.05rem;
  color: #6e6e73;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ── Feature tiles — dark cards on white bg ── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile {
  background: #1d1d1f;
  border-radius: 20px;
  padding: 2rem 2rem 2.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* top-align — no more dead space */
  transition: transform 0.3s ease;
  overflow: hidden;
}

.tile:hover { transform: scale(1.01); }

/* Icon box — coloured rounded square */
.tile-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.tile-icon-box i {
  font-size: 1.45rem;
  color: var(--icon-color, #f5f5f7);
}

.tile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 0.4rem;
}

.tile p {
  font-size: 0.85rem;
  color: #a1a1a6;
  line-height: 1.55;
  margin: 0;
}

/* ── Panel tile ── */
.tile-panel {
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Support tile ── */
.tile-support {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  min-height: 220px;
  gap: 3rem;
  padding: 2.5rem 3rem;
}

.tile-support-text {
  flex: 1 1 45%;
}

.tile-support-text .tile-icon-box { margin-bottom: 1.25rem; }

.tile-support-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.tile-support-text p {
  font-size: 0.875rem;
  color: #a1a1a6;
  line-height: 1.6;
  margin: 0;
}

.tile-support-channels {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.support-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 8px;
  transition: background 0.2s;
}

.support-channel:last-child { margin-bottom: 0; }
.support-channel:hover { background: rgba(255,255,255,0.08); }

.support-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-channel-icon i { font-size: 1.1rem; color: #e8e8ed; }

.support-channel strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 0.1rem;
}

.support-channel span {
  font-size: 0.775rem;
  color: #6e6e73;
}

/* ── Pricing ── */
.plan-apple {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.plan-apple:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}

.plan-apple.featured {
  background: #1d1d1f;
  color: #f5f5f7;
}

/* Plan header — icon + game name + RAM, all centred */
.plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.plan-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.plan-game-icon i { font-size: 1.6rem; }

.plan-game-icon.minecraft {
  background: rgba(101, 196, 101, 0.12);
}
.plan-game-icon.minecraft i { color: #4caf50; }

.plan-game-icon.rust {
  background: rgba(255, 107, 53, 0.12);
}
.plan-game-icon.rust i { color: #ff6b35; }

.plan-game-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 0.2rem;
}

.plan-ram {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.02em;
  margin: 0;
}

.plan-apple .price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.plan-apple .price sub {
  font-size: 1rem;
  font-weight: 400;
  color: #6e6e73;
  vertical-align: baseline;
}

.featured .price sub { color: #a1a1a6; }

.plan-apple .plan-desc {
  font-size: 0.8rem;
  color: #6e6e73;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.featured .plan-desc { color: #a1a1a6; }

.plan-apple ul {
  list-style: none;
  margin-bottom: 1.75rem;
}

.plan-apple ul li {
  font-size: 0.85rem;
  color: #6e6e73;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured ul li {
  color: #a1a1a6;
  border-bottom-color: rgba(255,255,255,0.08);
}

.plan-apple ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0071e3;
  flex-shrink: 0;
}

.featured ul li::before { background: #2997ff; }

.plan-apple .btn-apple,
.plan-apple .btn-apple-ghost { width: 100%; text-align: center; }

/* Keep button pinned to bottom when cards are equal height */
.plan-apple { display: flex; flex-direction: column; }
.plan-apple ul { flex: 1; }

/* ── Network / locations section ── */
.node-card {
  background: #1d1d1f;
  border-radius: 20px;
  padding: 1.75rem 2rem 2rem;
  height: 100%;
}

.node-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.node-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d15888;
  flex-shrink: 0;
}

.node-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1a6;
}

.node-location {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  margin-left: auto;
  font-style: normal;
}

.ping-table {
  font-family: 'Ubuntu Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  width: 100%;
}

.ping-table tr td {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #a1a1a6;
}

.ping-table tr:last-child td { border-bottom: none; }

.ping-table .city-col { color: #f5f5f7; }

.ping-table .good { color: #30d158; font-weight: 700; }
.ping-table .ok   { color: #ffd60a; font-weight: 700; }
.ping-table .bad  { color: #ff453a; }

.network-points { list-style: none; }

.network-points li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8ed;
}

.network-points li:last-child { border-bottom: none; }

.network-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0071e3;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.network-points strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.2rem;
}

.network-points p {
  font-size: 0.85rem;
  color: #6e6e73;
  line-height: 1.55;
  margin: 0;
}

/* ── Bottom CTA — the one dark section ── */
.apple-cta {
  background: #000;
  text-align: center;
  padding: 110px 24px;
  border-top: 1px solid #1d1d1f;
}

.apple-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f5f5f7;
  margin-bottom: 0.75rem;
  line-height: 1.05;
}

.apple-cta p {
  color: #a1a1a6;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.apple-cta .btn-apple {
  font-size: 1rem;
  padding: 0.75rem 2.2rem;
}

/* ── Footer ── */
.apple-footer {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  padding: 1.75rem 0;
  font-size: 0.75rem;
  color: #6e6e73;
}

.apple-footer .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.apple-footer .footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  text-decoration: none;
}

.apple-footer .footer-logo span { color: #0071e3; }

.apple-footer a {
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s;
}

.apple-footer a:hover { color: #1d1d1f; }

/* ── Responsive ── */
/* ── Theme toggle button ── */
.theme-toggle {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 980px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1d1d1f;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ── Dark mode overrides ── */
html.dark body {
  background: #000;
  color: #f5f5f7;
}

html.dark .apple-nav {
  background: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark .apple-nav .nav-logo { color: #f5f5f7; }
html.dark .apple-nav ul a { color: #f5f5f7; }

html.dark .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f5f7;
}

html.dark .theme-toggle:hover { background: rgba(255, 255, 255, 0.08); }

html.dark .apple-nav .dropdown-menu {
  background: rgba(28, 28, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .apple-nav .dropdown-item { color: #f5f5f7; }
html.dark .apple-nav .dropdown-item i { color: #a1a1a6; }
html.dark .apple-nav .dropdown-item:hover { background: rgba(255, 255, 255, 0.08); }
html.dark .apple-nav .dropdown-divider { border-color: rgba(255, 255, 255, 0.08); }

html.dark .apple-hero {
  background: #000;
}

html.dark .apple-hero h1 { color: #f5f5f7; }
html.dark .apple-hero .eyebrow { color: #6e6e73; }
html.dark .apple-hero .hero-sub { color: #a1a1a6; }

html.dark .apple-stats {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .apple-stats .row > div { border-right-color: rgba(255, 255, 255, 0.08); }
html.dark .stat-number { color: #f5f5f7; }
html.dark .stat-text   { color: #a1a1a6; }

html.dark .apple-section         { background: #000; }
html.dark .apple-section.grey    { background: #1c1c1e; }
html.dark .apple-section h2      { color: #f5f5f7; }
html.dark .apple-section .section-sub { color: #a1a1a6; }

html.dark .plan-apple {
  background: #2c2c2e;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  color: #f5f5f7;
}

html.dark .plan-apple:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
html.dark .plan-game-name   { color: #f5f5f7; }
html.dark .plan-ram         { color: #a1a1a6; }

html.dark .plan-header { border-bottom-color: rgba(255, 255, 255, 0.08); }

html.dark .plan-apple .price     { color: #f5f5f7; }
html.dark .plan-apple .price sub { color: #a1a1a6; }
html.dark .plan-apple .plan-desc { color: #a1a1a6; }

html.dark .plan-apple ul li {
  color: #a1a1a6;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark .btn-apple-ghost {
  color: #2997ff;
  border-color: #2997ff;
}

html.dark .network-points li  { border-bottom-color: rgba(255, 255, 255, 0.08); }
html.dark .network-points strong { color: #f5f5f7; }
html.dark .network-points p    { color: #a1a1a6; }
html.dark .network-dot         { background: #2997ff; }

html.dark .apple-footer {
  background: #1c1c1e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark .apple-footer .footer-logo { color: #f5f5f7; }
html.dark .apple-footer p             { color: #a1a1a6; }
html.dark .apple-footer a             { color: #a1a1a6; }
html.dark .apple-footer a:hover       { color: #f5f5f7; }

html.dark .apple-stats .row > div:last-child { border-right: none; }

@media (max-width: 576px) {
  html.dark .apple-stats .row > div { border-bottom-color: rgba(255, 255, 255, 0.08); }
}

@media (max-width: 768px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile.wide  { grid-column: span 1; }
  .tile-panel { flex-direction: column; }
  .tile-support     { flex-direction: column; padding: 2rem; gap: 1.5rem; }
  .apple-nav ul { display: none; }
  .apple-footer .container-xl { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .apple-stats .row > div { border-right: none; border-bottom: 1px solid #d2d2d7; }
}
