/* ReignVoIP v2 — premium layer on top of styles.css / enhancements.css */
:root {
  --gold: #f59e0b;
  --gold-soft: #fbbf24;
  --gold-glow: rgba(245, 158, 11, .28);
  --v2-bg: #0b1220;
  --v2-card: #131c2e;
  --v2-border: rgba(148, 163, 184, .18);
  --v2-text: #e2e8f0;
  --v2-muted: #94a3b8;
  --v2-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Hero upgrades ---------- */
.hero { position: relative; overflow: hidden; }
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-route { fill: none; stroke: url(#routeGrad); stroke-width: 1.2; stroke-dasharray: 6 10; animation: routeFlow 14s linear infinite; }
.hero-route:nth-child(2n) { animation-duration: 19s; animation-direction: reverse; }
.hero-node { fill: var(--gold-soft); filter: drop-shadow(0 0 6px var(--gold-glow)); animation: nodePulse 3.2s ease-in-out infinite; }
.hero-node:nth-child(3n) { animation-delay: 1.1s; }
@keyframes routeFlow { to { stroke-dashoffset: -320; } }
@keyframes nodePulse { 50% { opacity: .35; } }
.hero-badge-dot { background: var(--gold-soft) !important; box-shadow: 0 0 0 4px var(--gold-glow) !important; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--v2-muted); font-size: .9rem; }
.hero-facts li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--gold-soft); flex: none; }

/* ---------- Generic v2 section ---------- */
.v2-section { position: relative; padding: 96px 0; background: var(--v2-bg); color: var(--v2-text); }
.v2-section .section-title { color: #fff; }
.v2-section .section-desc { color: var(--v2-muted); }
.v2-section .section-label { color: var(--gold-soft); }
.v2-section .section-label::before { background: var(--gold-soft); }
.v2-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .22; pointer-events: none; }
.v2-glow.g1 { background: #2563eb; top: -120px; left: -140px; }
.v2-glow.g2 { background: var(--gold); bottom: -180px; right: -120px; opacity: .12; }

/* ---------- Platform suite tabs ---------- */
.suite { position: relative; z-index: 1; margin-top: 48px; }
.suite-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.suite-tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--v2-border); background: rgba(19, 28, 46, .7);
  color: var(--v2-text); font: 700 .95rem/1 var(--font-family, Manrope, sans-serif); cursor: pointer;
  transition: transform .25s var(--v2-ease), background .25s, border-color .25s, box-shadow .25s;
}
.suite-tab svg { width: 18px; height: 18px; }
.suite-tab:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, .5); }
.suite-tab:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.suite-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #2563eb, #38bdf8); border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .4);
}
.suite-panel { display: none; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.suite-panel.is-active { display: grid; animation: suiteIn .55s var(--v2-ease); }
@keyframes suiteIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.suite-copy h3 { color: #fff; font-size: 1.7rem; margin: 0 0 14px; }
.suite-copy > p { color: var(--v2-muted); margin: 0 0 22px; line-height: 1.7; }
.suite-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.suite-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--v2-text); line-height: 1.55; }
.suite-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-soft); }
.suite-note { color: var(--v2-muted); font-size: .8rem; margin-top: 18px; }

/* app window mockups */
.app-win {
  background: var(--v2-card); border: 1px solid var(--v2-border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transition: transform .5s var(--v2-ease); transform-style: preserve-3d;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--v2-border); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.app-bar i:nth-child(2) { background: #f59e0b; }
.app-bar i:nth-child(3) { background: #10b981; }
.app-bar span { margin-left: 10px; font-size: .78rem; color: var(--v2-muted); font-weight: 600; }
.app-body { padding: 22px; display: grid; gap: 14px; }

.dial { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.dial-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dial-key { aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; font-weight: 700; border: 1px solid var(--v2-border); }
.dial-call { grid-column: 1 / -1; padding: 12px; border-radius: 12px; text-align: center; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 800; position: relative; }
.dial-call::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ring 2s infinite; }
@keyframes ring { to { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); } }
.dial-screen { background: rgba(0, 0, 0, .25); border: 1px solid var(--v2-border); border-radius: 12px; padding: 16px; }
.dial-num { font: 800 1.4rem/1.2 var(--font-family, sans-serif); color: #fff; letter-spacing: .02em; }
.dial-state { display: flex; align-items: center; gap: 8px; color: #34d399; font-size: .85rem; margin-top: 6px; }
.dial-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: blink 1.2s infinite; }
.dial-wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 14px; }
.dial-wave b { flex: 1; background: linear-gradient(#38bdf8, #2563eb); border-radius: 3px; height: 20%; animation: wave 1.1s ease-in-out infinite; }
.dial-wave b:nth-child(2n) { animation-delay: .18s; } .dial-wave b:nth-child(3n) { animation-delay: .36s; } .dial-wave b:nth-child(5n) { animation-delay: .54s; }
@keyframes wave { 50% { height: 95%; } }

.mini-table { display: grid; gap: 2px; font-size: .85rem; }
.mini-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--v2-text); align-items: center; }
.mini-row.head { background: none; color: var(--v2-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.mini-row code { font-family: Consolas, monospace; color: #7dd3fc; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.pill.ok { background: rgba(16, 185, 129, .15); color: #34d399; }
.pill.gold { background: rgba(245, 158, 11, .15); color: var(--gold-soft); }
.pill.blue { background: rgba(56, 189, 248, .15); color: #7dd3fc; }
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-trio div { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--v2-border); }
.stat-trio small { display: block; color: var(--v2-muted); font-size: .72rem; margin-bottom: 4px; }
.stat-trio strong { color: #fff; font-size: 1.2rem; }

/* ---------- Buttons: gold CTA ---------- */
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #0f172a; border: 0; font-weight: 800; box-shadow: 0 10px 30px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--gold-glow); }
.btn-gold:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Reveal ---------- */
.v2-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--v2-ease), transform .7s var(--v2-ease); }
.v2-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .suite-panel.is-active { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .v2-section { padding: 64px 0; }
  .suite-tab { padding: 0 16px; min-height: 44px; font-size: .85rem; }
  .dial { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: 1.2fr 1fr; }
  .mini-row > :nth-child(3) { display: none; }
  .stat-trio { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-route, .hero-node, .dial-wave b, .dial-call::after, .suite-panel.is-active { animation: none !important; }
  .v2-reveal { opacity: 1; transform: none; transition: none; }
}
