/* ===========================
   VOIP2 - Modern Static HTML
   Design tokens & global styles
   =========================== */

:root {
  --primary: #0a1f2e;
  --primary-light: #12304a;
  --primary-soft: #1a3a4e;
  --accent: #c8ff00;
  --accent-hover: #d9ff33;
  --accent-dark: #a8d800;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-mute: #eef2f6;
  --text: #0a1f2e;
  --text-muted: #5b6b7a;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 46, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 31, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 31, 46, 0.15);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; margin: 0; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,255,0,0.3); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ==== Header ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { font-size: 26px; font-weight: 800; color: white; letter-spacing: -0.03em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  color: rgba(255,255,255,0.85); font-weight: 500; font-size: 15px;
  background: transparent; border: none; transition: all .15s;
}
.nav-links a:hover, .nav-links button:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-links .chevron { width: 14px; height: 14px; transition: transform .2s; }
.nav-links li.has-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px;
  background: white; color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .18s ease;
}
.nav-links li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; color: var(--primary); font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.dropdown-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 8px 12px 4px; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-signin { color: white; border: 2px solid var(--accent); padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn-signin:hover { background: var(--accent); color: var(--primary); }
.btn-getstarted { background: var(--accent); color: var(--primary); padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.btn-getstarted:hover { background: var(--accent-hover); }

.mobile-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 10px; border-radius: 8px; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); align-items: stretch; }
  .mobile-open .nav-links a, .mobile-open .nav-links button { width: 100%; justify-content: flex-start; }
  .mobile-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.04); color: white; border-color: rgba(255,255,255,0.1); }
  .mobile-open .dropdown a { color: white; }
  .mobile-open .dropdown a:hover { background: rgba(255,255,255,0.08); }
  .mobile-open .nav-cta { display: flex; flex-direction: column; padding: 0 16px 16px; gap: 8px; }
  .mobile-open .btn-signin, .mobile-open .btn-getstarted { width: 100%; justify-content: center; }
}

/* ==== Hero ==== */
.hero { position: relative; background: linear-gradient(135deg, #061622 0%, #0a1f2e 60%, #12304a 100%); color: white; overflow: hidden; padding: 120px 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(200,255,0,0.12), transparent 40%), radial-gradient(circle at 80% 70%, rgba(80,200,255,0.08), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(200,255,0,0.1); border: 1px solid rgba(200,255,0,0.3); color: var(--accent); border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; margin-bottom: 20px; color: white; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2vw, 22px); max-width: 720px; margin: 0 auto 36px; color: rgba(255,255,255,0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; max-width: 800px; margin: 60px auto 0; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 800; color: var(--accent); }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==== Sections ==== */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--primary); color: white; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: white; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dark); padding: 6px 14px; background: rgba(200,255,0,0.12); border-radius: 999px; margin-bottom: 16px; }
.section.dark .section-eyebrow { background: rgba(200,255,0,0.15); color: var(--accent); }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.section-head h2 .accent { color: var(--accent-dark); }
.section.dark .section-head h2 .accent { color: var(--accent); }
.section-head p { font-size: 18px; color: var(--text-muted); }
.section.dark .section-head p { color: rgba(255,255,255,0.7); }

/* ==== Cards ==== */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .25s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 18px; }
.card-icon.accent { background: var(--accent); color: var(--primary); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--primary); font-weight: 600; font-size: 14px; }
.card-link:hover { color: var(--accent-dark); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ==== Feature card variants ==== */
.feature-card { padding: 36px 28px; border-radius: 16px; color: white; transition: all .3s; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%); transition: transform .4s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::after { transform: scale(1.4); }
.feature-card.dark { background: var(--primary); }
.feature-card.darker { background: #061622; }
.feature-card.muted { background: var(--primary-light); }
.feature-card.teal { background: #1f4e5f; }
.feature-card.gray { background: #2a3441; }
.feature-card.accent { background: var(--accent); color: var(--primary); }
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: inherit; position: relative; z-index: 1; }
.feature-card p { opacity: 0.9; font-size: 15px; position: relative; z-index: 1; }

/* ==== Logo bar (deprecated - kept for backwards compat) ==== */
.logo-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 40px; align-items: center; margin-top: 40px; }
.logo-bar .logo-item { text-align: center; color: var(--text-muted); font-weight: 600; font-size: 16px; opacity: 0.7; transition: opacity .2s; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; }
.logo-bar .logo-item:hover { opacity: 1; color: var(--primary); border-color: var(--primary); }

/* ==== Client logos (real images) ==== */
.client-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}
.client-logo {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.client-logo:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(10, 31, 46, 0.08);
  transform: translateY(-2px);
}
.client-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s ease;
}
.client-logo:hover img { filter: grayscale(0%); }

@media (max-width: 1100px) {
  .client-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .client-logo { height: 56px; }
}

/* ==== Country / Coverage ==== */
.coverage-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search-input { flex: 1; min-width: 240px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: white; transition: border-color .2s; }
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,31,46,0.08); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--border); background: white; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.country-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: all .2s; cursor: pointer; }
.country-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.country-card .head { display: flex; align-items: center; gap: 12px; }
.country-card .flag { width: 36px; height: 24px; border-radius: 4px; background: var(--bg-mute); flex-shrink: 0; overflow: hidden; }
.country-card .flag img { width: 100%; height: 100%; object-fit: cover; }
.country-card .info { flex: 1; min-width: 0; }
.country-card .name { font-weight: 700; font-size: 15px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-card .prefix { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.country-card .services { display: flex; flex-wrap: wrap; gap: 4px; }
.svc-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.svc-tag.local { background: #dbeafe; color: #1e40af; }
.svc-tag.national { background: #ede9fe; color: #5b21b6; }
.svc-tag.mobile { background: #d1fae5; color: #065f46; }
.svc-tag.twoway { background: #fef3c7; color: #92400e; }
.svc-tag.itfs { background: #fee2e2; color: #991b1b; }
.svc-tag.uifn { background: #f3e8ff; color: #6b21a8; }

/* ==== Tables ==== */
.tbl-wrap { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 14px 16px; background: var(--bg-soft); font-weight: 700; color: var(--primary); border-bottom: 1px solid var(--border); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg-soft); }
.checkmark { color: var(--success); font-weight: 700; }
.dashmark { color: var(--text-muted); }

/* ==== Pricing ==== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 36px 28px; transition: all .25s; position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 24px 60px rgba(200,255,0,0.2); }
.price-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.price-card h3 { font-size: 18px; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.price-card .price { font-size: 48px; font-weight: 800; color: var(--primary); }
.price-card .price small { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text); }
.price-card li::before { content: "\2713"; color: var(--success); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ==== CTA ==== */
.cta-band { background: var(--primary); color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(200,255,0,0.08), transparent 60%); }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); color: white; margin-bottom: 16px; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==== Footer ==== */
.site-footer { background: #061622; color: rgba(255,255,255,0.7); padding: 80px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 12px; font-size: 14px; max-width: 280px; }
.footer-col h5 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; }

/* ==== Page header (sub-pages) ==== */
.page-header { background: linear-gradient(135deg, #061622 0%, #0a1f2e 70%, #12304a 100%); color: white; padding: 80px 0 60px; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); }
.page-header .container { position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: rgba(255,255,255,0.3); }
.page-header h1 { font-size: clamp(32px, 5vw, 56px); color: white; margin-bottom: 14px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 720px; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* Animation */
.fade-in { animation: fadeIn .6s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #c4cdd6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #97a4b1; }
