/* Peak eSIM Support — dark gold premium theme */

:root {
  --gold: #d4af37;
  --gold-light: #e9ce6b;
  --gold-soft: #f3d57a;
  --gold-dark: #b8912a;
  --gold-deep: #8a6623;
  --black: #000000;
  --bg: #050505;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --surface-3: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --faint: #6e6e6e;
  --line: #2a2a2a;
  --danger: #e8b4b4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 76px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--gold);
  color: var(--black);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.gold-text {
  background: linear-gradient(180deg, #f6e2a1 0%, #d4af37 48%, #b8912a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Ambient backdrop */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(700px 420px at 100% 8%, rgba(184, 145, 42, 0.1), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--bg);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 118px;
}

.brand img {
  height: 22px;
  width: auto;
}

.brand-esim {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hairline {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  position: relative;
  transition: 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

body.nav-open .menu-toggle span {
  background: transparent;
}

body.nav-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(180deg, #f0d278 0%, var(--gold) 46%, var(--gold-dark) 100%);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
}

.btn-gold:hover {
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.34);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold-dark);
  color: var(--gold-light);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: Outfit, Inter, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 650;
  max-width: 14ch;
}

.hero-copy {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(31, 31, 31, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
}

.search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.search svg {
  flex-shrink: 0;
  color: var(--gold);
}

.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  min-width: 0;
  padding: 12px 0;
}

.search input::placeholder {
  color: var(--faint);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.8);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover,
.chip.is-active {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.glow-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 68%);
  filter: blur(8px);
}

.hero-logo {
  position: relative;
  width: min(340px, 100%);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(212, 175, 55, 0.12);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.stat {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.8), rgba(20, 20, 20, 0.6));
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.stat b {
  display: block;
  color: var(--gold-light);
  font-family: Outfit, sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 198px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 31, 31, 0.92), rgba(14, 14, 14, 0.92));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.icon-wrap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.card h3 {
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card .more {
  margin-top: auto;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Guides */
.guide-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #0c0c0c;
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab.is-active {
  background: linear-gradient(180deg, #f0d278, var(--gold-dark));
  color: var(--black);
}

.guide-panel {
  display: none;
  padding: 28px;
}

.guide-panel.is-active {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.guide-intro h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.guide-intro p,
.note {
  color: var(--muted);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
  font-weight: 800;
  font-family: Outfit, sans-serif;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.faq-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
}

.filter-btn {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq[hidden] { display: none; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 650;
  font-family: Outfit, Inter, sans-serif;
  font-size: 17px;
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}

.faq.is-open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq.is-open .faq-a {
  display: block;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.empty-state.is-visible { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #171717, #101010);
  padding: 28px;
}

.contact-meta {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.meta-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.meta-row svg { color: var(--gold); margin-top: 3px; }

.email-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--black);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  color: var(--gold-light);
}

.form-status.is-error { color: var(--danger); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: #000;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-brand img { height: 20px; margin-bottom: 10px; }

.footer-brand p,
.legal {
  color: var(--faint);
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); }

.legal { margin-top: 28px; }

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.not-found h1 {
  font-size: clamp(48px, 10vw, 92px);
  margin: 12px 0 8px;
}

.not-found p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 24px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--gold-dark);
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero-grid,
  .guide-panel.is-active,
  .faq-layout,
  .contact-grid,
  .cards,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links { display: flex; }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .header-cta { display: none; }

  .hero { padding-top: 36px; }
  .hero-visual { min-height: 280px; }
  .glow-ring { width: 260px; height: 260px; }
  .faq-filters { position: static; flex-direction: row; flex-wrap: wrap; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .cards,
  .stats,
  .form-row { grid-template-columns: 1fr; }
  .search { flex-wrap: wrap; padding: 10px; }
  .search .btn { width: 100%; }
  .guide-panel { padding: 18px; }
  .brand img { height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
