/* ===========================================================
   VivaanX Digital — light, aesthetic theme
   =========================================================== */
:root {
  --bg: #fbfaff;
  --bg-soft: #f3f1fb;
  --surface: #ffffff;
  --ink: #14122b;
  --ink-soft: #514f6b;
  --muted: #8b89a3;
  --line: #ece9f6;

  --brand: #6d5efc;
  --brand-2: #22c1dc;
  --accent: #ff7a59;
  --grad: linear-gradient(115deg, #6d5efc 0%, #8b5cf6 45%, #22c1dc 100%);
  --grad-soft: linear-gradient(115deg, rgba(109,94,252,.12), rgba(34,193,220,.12));

  --shadow-sm: 0 2px 10px rgba(28, 20, 80, .06);
  --shadow-md: 0 14px 40px rgba(40, 30, 110, .10);
  --shadow-lg: 0 30px 70px rgba(40, 30, 110, .14);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1140px;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(109,94,252,.10), transparent 60%),
    radial-gradient(900px 500px at -5% 5%, rgba(34,193,220,.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(109,94,252,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(109,94,252,.42); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #d9d4f0; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(251, 250, 255, .78);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { display: inline-flex; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.main-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0; }
.nav-menu a { padding: .5rem .9rem; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; transition: color .15s, background .15s; }
.nav-menu a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { background: var(--ink); color: #fff !important; }
.nav-cta:hover { background: #2a2550; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section bits ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.06rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 .9rem; }
.eyebrow.center { justify-content: center; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.grid { display: grid; gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 2.2rem; }
.hero-trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-trust span { font-size: .8rem; color: var(--muted); }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; }
.orb-1 { width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 70%); top: -10px; right: 10px; }
.orb-2 { width: 200px; height: 200px; background: radial-gradient(circle at 60% 40%, #22c1dc, transparent 70%); bottom: 0; left: 0; }
.glass-card {
  position: absolute; background: rgba(255,255,255,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px 20px;
}
.card-a { top: 18px; left: 8%; width: 240px; }
.card-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(34,193,220,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,193,220,.5)} 70%{box-shadow:0 0 0 10px rgba(34,193,220,0)} 100%{box-shadow:0 0 0 0 rgba(34,193,220,0)} }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin: 14px 0 8px; }
.bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 6px 6px 3px 3px; animation: grow 1.1s ease both; }
@keyframes grow { from { height: 0; opacity: .3; } }
.card-foot { font-weight: 700; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.card-b { bottom: 70px; right: 0; text-align: center; }
.kpi-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.kpi-label { font-size: .82rem; color: var(--ink-soft); }
.card-c { bottom: 6px; left: 22%; display: flex; flex-direction: column; gap: 2px; }
.stars { color: #ffb547; letter-spacing: 2px; }

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 18px 22px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.trust-inner span:nth-child(even) { color: var(--brand); }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service .ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: var(--grad-soft); margin-bottom: 14px; }
.service h3 { margin-bottom: .35rem; }
.service p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd6f5; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- Results ---------- */
.results-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: left; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad); font-size: .85rem; }
.testimonial figcaption strong { display: block; font-family: var(--font-head); }
.testimonial figcaption em { color: var(--muted); font-style: normal; font-size: .88rem; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.ci { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); font-size: 1.15rem; }
.contact-list em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--brand); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--surface); transition: .18s; }
.socials a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.contact-form { display: grid; gap: 14px; }
.contact-form h3 { margin-bottom: .2rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem .95rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109,94,252,.12); }
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcce6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: #9d9ac0; max-width: 38ch; margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a, .site-footer ul li { color: #b6b3d4; font-size: .94rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #908dba; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy .lede { max-width: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .results-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px 22px 22px; background: rgba(251,250,255,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: .8rem 1rem; }
  .nav-cta { text-align: center; }
}
@media (max-width: 560px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
