/* ==========================================================================
   POPI DIGITAL LLC — Global Stylesheet
   Palette: Midnight + Cyan Glow  |  Style: Modern / Luxury / Tech / Corporate
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #060912;
  --bg-alt: #0a0f1e;
  --surface: #0e1526;
  --surface-2: #131c31;
  --border: rgba(120, 160, 220, 0.12);
  --border-strong: rgba(120, 160, 220, 0.24);

  --text: #eef3fb;
  --text-muted: #9fb0c9;
  --text-dim: #6b7c99;

  --cyan: #22d3ee;
  --cyan-bright: #5eeaff;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(139,92,246,0.16));

  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-md: 0 16px 40px -18px rgba(0, 0, 0, 0.55);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-muted); }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan-bright); padding: 7px 14px; border-radius: 999px;
  background: var(--accent-gradient-soft); border: 1px solid var(--border-strong); margin-bottom: 20px;
}
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: 56px; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent-gradient); color: #04121b; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.6); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 45px -12px rgba(34, 211, 238, 0.75); }
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(34,211,238,0.08); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px);
  background: rgba(6, 9, 18, 0.72); border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(6, 9, 18, 0.9); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--accent-gradient); display: grid; place-items: center; color: #04121b; font-weight: 800; box-shadow: var(--glow-cyan); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 9px 15px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(70px, 10vw, 130px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: 1.2rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 28px; margin-top: 46px; flex-wrap: wrap; }
.hero__trust .stat strong { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.hero__trust .stat span { font-size: 0.86rem; color: var(--text-dim); }
.hero__visual { position: relative; }
.glass-card { background: linear-gradient(160deg, rgba(19,28,49,0.9), rgba(10,15,30,0.75)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.dash-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dash-row:last-child { border-bottom: none; }
.dash-row .label { color: var(--text-muted); font-size: 0.92rem; }
.dash-row .val { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.dash-row .val.up { color: #34d399; }
.spark { height: 8px; border-radius: 999px; background: var(--accent-gradient); flex: 1; margin: 0 16px; opacity: 0.85; }
.hero__badge { position: absolute; bottom: -22px; left: -22px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 42px; opacity: 0.7; }
.logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(165deg, var(--surface), var(--bg-alt)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--accent-gradient); opacity: 0; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 0.35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::after { opacity: 0.6; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-gradient-soft); border: 1px solid var(--border-strong); color: var(--cyan-bright); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card__list { margin-top: 18px; display: grid; gap: 10px; }
.card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-muted); }
.card__list li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 3px; }

/* Feature */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { width: 48px; height: 48px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--accent-gradient-soft); border: 1px solid var(--border-strong); color: var(--cyan-bright); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { font-size: 0.96rem; }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.statband .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); }
.statband .lbl { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* Testimonials */
.quote-card { background: linear-gradient(165deg, var(--surface), var(--bg-alt)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote-card .stars { color: var(--cyan-bright); letter-spacing: 2px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--text); line-height: 1.7; }
.quote-card .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #04121b; background: var(--accent-gradient); }
.who .name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.who .role { font-size: 0.83rem; color: var(--text-dim); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq__item[aria-expanded="true"] { border-color: var(--border-strong); }
.faq__q { width: 100%; text-align: left; background: none; border: none; color: var(--text); cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__icon { flex: none; width: 24px; height: 24px; transition: transform 0.3s var(--ease); color: var(--cyan); }
.faq__item[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 24px 22px; font-size: 0.98rem; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(139,92,246,0.14)); border: 1px solid var(--border-strong); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 50% 0%, rgba(34,211,238,0.22), transparent 60%); }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-panel { background: linear-gradient(165deg, var(--surface), var(--bg-alt)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(6,9,18,0.6); border: 1px solid var(--border-strong); color: var(--text); font-family: inherit; font-size: 0.98rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #fb7185; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #fb7185; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 14px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #6ee7b7; }
.form-status.bad { display: block; background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.4); color: #fda4af; }
.contact-info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .feature__icon { width: 44px; height: 44px; }
.info-row h3 { font-size: 1.05rem; margin-bottom: 3px; }
.info-row a, .info-row p { color: var(--text-muted); font-size: 0.96rem; }
.info-row a:hover { color: var(--cyan-bright); }

/* Page hero */
.page-hero { padding-block: clamp(64px, 8vw, 110px); text-align: center; }
.page-hero p { max-width: 640px; margin: 18px auto 0; font-size: 1.15rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 16px; }
.value-list { display: grid; gap: 16px; margin-top: 24px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 3px; }
.value-list b { color: var(--text); }

/* Team */
.team-card { text-align: center; }
.team-card .avatar { width: 84px; height: 84px; font-size: 1.5rem; margin: 0 auto 16px; }
.team-card .role { color: var(--cyan-bright); font-size: 0.88rem; font-weight: 600; }
.team-card p { font-size: 0.92rem; margin-top: 10px; }

/* Pricing */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.featured { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.price-card .tier { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.price-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 10px 0 4px; }
.price-card .price span { font-size: 0.95rem; color: var(--text-dim); font-weight: 400; }
.price-card .price-sub { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 22px; }
.price-card .card__list { flex: 1; margin-bottom: 24px; }
.badge-pop { position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--accent-gradient); color: #04121b; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-block: 56px 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid p { font-size: 0.94rem; max-width: 320px; margin-top: 16px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.95rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan-bright); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text-muted); transition: all 0.25s var(--ease); }
.socials a:hover { color: var(--cyan-bright); border-color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { font-size: 0.86rem; color: var(--text-dim); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header.nav-open .nav__links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(6,9,18,0.98); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .site-header.nav-open .nav__links a { padding: 13px 16px; }
  .site-header.nav-open .nav__cta { margin: 8px 0 0; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px; }
}
