/* =============================================================
   global.css — Reset, typography, header, footer, layout utils
   smsactivate.vip
   ============================================================= */

/* ── SVG Icon base ──────────────────────────────────────────── */
.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #94a3b8;
  background-color: #1a1f3a;
  min-width: 320px;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: #f8fafc; font-weight: 600; }

/* ── Layout Container ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

/* ── Grid Helpers ───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── CTA Button Base ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #7c3aed;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover, .btn:focus-visible {
  background-color: #6d28d9;
  transform: translateY(-1px);
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
  min-height: 52px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #7c3aed;
  color: #a78bfa;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: rgba(124, 58, 237, 0.15);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: #252a4a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .card { padding: 2rem; }
}

/* ── Table Wrapper (responsive scroll) ─────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(124, 58, 237, 0.2);
}

thead th {
  color: #f8fafc;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s ease;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
  background: rgba(124, 58, 237, 0.08);
}

tbody td {
  padding: 0.875rem 1rem;
  color: #94a3b8;
  vertical-align: top;
}

tbody td:first-child {
  color: #f8fafc;
  font-weight: 500;
}

.td-good { color: #10b981; font-weight: 600; }
.td-bad  { color: #f87171; font-weight: 600; }
.td-mid  { color: #fbbf24; font-weight: 600; }

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #252a4a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(124, 58, 237, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  user-select: none;
  gap: 1rem;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #7c3aed;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #94a3b8;
  font-size: 0.925rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Section Spacing ────────────────────────────────────────── */
.section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

@media (min-width: 1024px) {
  .section { padding-block: 6rem; }
}

.section-alt {
  background: rgba(37, 42, 74, 0.5);
}

.section-title {
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
  color: #94a3b8;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ── Highlight Pill ─────────────────────────────────────────── */
.pill {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Success Rate Tag ───────────────────────────────────────── */
.rate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f8fafc;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.nav-link {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  text-decoration: none;
}

.nav-link:hover { color: #f8fafc; }

/* Mobile menu — checkbox hack */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.menu-toggle-label:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .menu-toggle-label { display: none; }
}

.menu-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger → X animation */
.menu-toggle:checked + .header-inner .menu-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle:checked + .header-inner .menu-toggle-label span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .header-inner .menu-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #1e2445;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0;
}

.menu-toggle:checked ~ .mobile-nav {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.mobile-nav .btn {
  margin: 0.75rem 1.5rem;
}

.header-cta { display: none; }

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: #12162e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* CTA Banner */
.footer-cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 3rem;
  text-align: center;
}

.footer-cta-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-inline: auto;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 3rem;
}

@media (min-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col-title {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #64748b;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer-links a:hover { color: #94a3b8; }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  color: #475569;
  font-size: 0.8rem;
}

.footer-disclaimer {
  color: #475569;
  font-size: 0.75rem;
  max-width: 480px;
  line-height: 1.5;
}

/* ── Utility: visually-hidden ───────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus Styles ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #7c3aed;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 999;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}
