/* =========================================================
   THEVOIPER — Premium VoIP Website
   Shared stylesheet
   ========================================================= */

:root {
  /* Core palette */
  --bg:            #070b1a;
  --bg-2:          #0b1124;
  --surface:       #0f1730;
  --surface-2:     #131c3b;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --text:          #e8ecf8;
  --text-soft:     #aab3cf;
  --text-dim:      #7a86a8;

  /* Brand */
  --indigo:        #6366f1;
  --violet:        #8b5cf6;
  --cyan:          #22d3ee;
  --gold:          #f5c451;

  --grad-brand:    linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --grad-soft:     linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.10));
  --glow-indigo:   0 0 60px rgba(99,102,241,.35);

  --radius:        20px;
  --radius-sm:     14px;
  --shadow:        0 24px 60px -20px rgba(2, 6, 23, .85);
  --maxw:          1200px;
  --ease:          cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(34,211,238,.12), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(139,92,246,.14), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Layout ---------- */
[id] { scroll-margin-top: 96px; } /* offset for sticky header on anchor jumps */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px; border-radius: 100px;
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-sub { color: var(--text-soft); max-width: 620px; font-size: 17px; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 30px -8px rgba(99,102,241,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(99,102,241,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7,11,26,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7,11,26,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: var(--glow-indigo); flex: none;
}
.brand .logo-mark svg { width: 21px; height: 21px; }
.brand .brand-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand .brand-logo { height: 38px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-soft); font-weight: 500; font-size: 15px;
  padding: 9px 15px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 22px; }
.hero p.lead { font-size: 19px; color: var(--text-soft); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .stat strong { display: block; font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: 26px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-trust .stat span { font-size: 13px; color: var(--text-dim); }

.hero-visual { position: relative; }
.hero-visual .glass-card {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.hero-float {
  position: absolute; backdrop-filter: blur(10px);
  background: rgba(15,23,48,.85); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.hero-float .dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); }
.hero-float strong { font-size: 15px; display: block; }
.hero-float span { font-size: 12px; color: var(--text-dim); }
.hero-float.f1 { top: 30px; left: -34px; animation: floaty 6s var(--ease) infinite; }
.hero-float.f2 { bottom: 36px; right: -28px; animation: floaty 6s var(--ease) infinite 1.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Logo strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.logos p { text-align: center; color: var(--text-dim); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; align-items: center; }
.logos-row span { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 19px; color: var(--text-dim); opacity: .7; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 18px;
  color: var(--cyan);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* feature mini-list inside cards */
.card ul.ticks { margin-top: 14px; display: grid; gap: 8px; }
.card ul.ticks li { display: flex; gap: 9px; font-size: 14px; color: var(--text-soft); }
.card ul.ticks li svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }

/* ---------- Value props (why choose) ---------- */
.value { text-align: center; padding: 26px 18px; }
.value .v-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--cyan); }
.value .v-ic svg { width: 30px; height: 30px; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { color: var(--text-soft); font-size: 14px; }

/* ---------- Split feature section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split-body h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.split-body p { color: var(--text-soft); margin-bottom: 22px; font-size: 16px; }
.split-list { display: grid; gap: 14px; }
.split-list li { display: flex; gap: 13px; }
.split-list .li-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-soft); display: grid; place-items: center; color: var(--cyan); flex: none; }
.split-list .li-ic svg { width: 16px; height: 16px; }
.split-list strong { display: block; font-size: 15px; }
.split-list span { font-size: 14px; color: var(--text-dim); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad-soft); border: 1px solid var(--line); border-radius: 26px; padding: 48px 32px; }
.stats-band .grid-4 { gap: 24px; }
.stat-box { text-align: center; }
.stat-box strong { display: block; font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: clamp(34px, 5vw, 48px); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { color: var(--text-soft); font-size: 15px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.price-card.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 1.5px solid transparent; box-shadow: var(--glow-indigo); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; }
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .plan-cap { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.price-card .price { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: 48px; font-weight: 700; line-height: 1; }
.price-card .price span { font-size: 16px; color: var(--text-dim); font-family: 'Plus Jakarta Sans'; font-weight: 500; }
.price-card .price-sub { color: var(--text-soft); font-size: 14px; margin: 14px 0 24px; }
.price-card ul.plan-feats { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card ul.plan-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-soft); }
.price-card ul.plan-feats li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--line-strong); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: inherit; font-size: 16.5px; font-weight: 600; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--cyan); transition: transform .3s var(--ease); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-soft); font-size: 15px; }

/* ---------- Testimonials ---------- */
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s var(--ease), border-color .3s; }
.testi:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.testi .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testi p { color: var(--text); font-size: 16px; margin-bottom: 20px; }
.testi .who { display: flex; align-items: center; gap: 13px; }
.testi .who .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; }
.testi .who strong { display: block; font-size: 15px; }
.testi .who span { font-size: 13px; color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 30px; overflow: hidden; padding: 64px 40px; text-align: center; background: var(--surface-2); border: 1px solid var(--line-strong); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(99,102,241,.4), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 72px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.page-hero p { color: var(--text-soft); font-size: 18px; max-width: 600px; margin: 0 auto; }
.breadcrumb { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.contact-card .ci { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; color: var(--cyan); flex: none; }
.contact-card .ci svg { width: 23px; height: 23px; }
.contact-card strong { display: block; font-size: 16px; margin-bottom: 3px; }
.contact-card span, .contact-card a { color: var(--text-soft); font-size: 15px; }
.contact-card a:hover { color: var(--cyan); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
.form-success { display: none; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); color: var(--text); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.form-success.show { display: block; }

/* Thank-you state */
.thankyou { display: none; text-align: center; padding: 26px 8px; }
.thankyou.show { display: block; animation: ty-in .55s var(--ease); }
@keyframes ty-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.thankyou .ty-check {
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-soft);
  border: 1px solid var(--line-strong); box-shadow: var(--glow-indigo);
  position: relative;
}
.thankyou .ty-check::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(34,211,238,.25); animation: ty-ring 1.6s var(--ease) infinite; }
@keyframes ty-ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.thankyou .ty-check svg { width: 46px; height: 46px; color: var(--cyan); }
.thankyou .ty-check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ty-draw .6s var(--ease) .25s forwards; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
.thankyou h2 { font-size: 28px; margin-bottom: 12px; }
.thankyou p { color: var(--text-soft); font-size: 16px; max-width: 400px; margin: 0 auto 26px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 38px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-soft); font-size: 16px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose ul li { margin-bottom: 8px; }
.prose .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-soft); font-size: 15px; margin: 16px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-soft); transition: all .25s; }
.footer-social a:hover { color: #fff; background: var(--grad-soft); border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* collapse nav to hamburger here so the desktop nav + CTA never overflow on tablets */
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(11,17,36,.98); backdrop-filter: blur(14px); padding: 16px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 13px 14px; width: 100%; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { display: none; }
}
