/* ==========================================================================
   Vericlude — modern site styles
   ========================================================================== */

:root {
  --brand:       #6B5BD6;   /* primary */
  --brand-2:     #9A6CF0;   /* violet accent */
  --brand-ink:   #4a3ba6;   /* deep purple for text on light */
  --brand-dark:  #150f2e;   /* hero base */
  --ink:         #15131d;
  --muted:       #57545f;
  --bg:          #ffffff;
  --bg-soft:     #f6f5fb;
  --line:        #ececf3;
  --grad:        linear-gradient(120deg, #6B5BD6 0%, #9A6CF0 100%);
  --grad-soft:   linear-gradient(120deg, #efe9ff 0%, #f6effc 100%);
  --maxw:        1180px;
  --radius:      18px;
  --shadow:      0 24px 60px -20px rgba(55, 40, 120, .28);
  --shadow-sm:   0 10px 30px -12px rgba(55, 40, 120, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; transition: color .18s; }
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); }
.nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background: var(--grad); }
.nav-cta {
  background: var(--grad); color:#fff !important; padding:11px 22px !important;
  border-radius: 999px; font-weight:600; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.nav-cta::after { display:none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(107,91,214,.6); }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; transition:.2s; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color:#fff; font-weight:600; font-size:1rem;
  padding: 15px 32px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(107,91,214,.6); }
.btn-ghost {
  background: transparent; color: #fff; box-shadow: none;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow:none; }
.btn-light { background:#fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand-ink); }

/* ---------- Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, #3a2a80 0%, transparent 55%),
              radial-gradient(1000px 700px at 100% 0%, #7b4fd6 0%, transparent 50%),
              linear-gradient(160deg, #191139 0%, #241653 55%, #2f1d63 100%);
  color: #fff;
}
.hero .blob { position:absolute; border-radius:50%; filter: blur(70px); opacity:.55; z-index:0; }
.hero .blob.b1 { width:420px; height:420px; background:#8b5cf6; top:-120px; right:6%; animation: float1 14s ease-in-out infinite; }
.hero .blob.b2 { width:360px; height:360px; background:#5b6ef0; bottom:-140px; left:-60px; animation: float2 16s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-24px)} }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 96px 0 104px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 22px;
}
.hero h1 .hl {
  background: linear-gradient(120deg,#c4b5fd,#a78bfa 60%,#f0abfc);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.hero .sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #d6d1ea; max-width: 520px; margin: 0 0 34px; font-weight: 400; }
.hero-cta { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.hero-badges { display:flex; gap:22px; margin-top:38px; flex-wrap:wrap; }
.hero-badges span { font-size:.9rem; color:#c7c2dd; display:flex; align-items:center; gap:8px; }
.hero-badges span::before { content:""; width:7px; height:7px; border-radius:50%; background:linear-gradient(120deg,#a78bfa,#f0abfc); }

.hero-visual { position: relative; }
.hero-visual img {
  width:100%; border-radius: 20px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.hero-visual .float-card {
  position:absolute; bottom:-26px; left:-26px;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow);
  display:flex; align-items:center; gap:14px; max-width: 260px;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.float-card .dot { width:38px; height:38px; border-radius:11px; background:var(--grad); flex:none; display:grid; place-items:center; color:#fff; font-weight:700; }
.float-card small { display:block; color:var(--muted); font-size:.78rem; }
.float-card strong { font-size:.95rem; line-height:1.2; }

.hero-wave { position:relative; z-index:2; height:60px; background:var(--bg); border-radius:60px 60px 0 0; margin-top:-30px; }

/* ---------- Sections -------------------------------------------------- */
section { padding: 92px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem,3.4vw,2.8rem); line-height:1.14; font-weight:800; letter-spacing:-.02em; margin:0 0 16px; }
.section-head p { font-size:1.12rem; color: var(--muted); margin:0; }

h2.section-title { font-size: clamp(1.9rem,3.4vw,2.8rem); line-height:1.14; font-weight:800; letter-spacing:-.02em; color:var(--ink); margin:0 0 22px; }

.split { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split.reverse .split-media { order:-1; }
.split-media { position: relative; }
.split-media img { width:100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit:cover; }
.split-media::after {
  content:""; position:absolute; inset:auto -18px -18px auto; width:60%; height:60%;
  background: var(--grad); filter: blur(60px); opacity:.28; z-index:-1; border-radius:50%;
}
.prose p { margin:0 0 18px; color: var(--muted); font-size:1.08rem; }
.prose p strong { color: var(--ink); }

/* ---------- Feature cards -------------------------------------------- */
.feature-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.feature {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color:#e0d9f7; }
.feature .icon {
  width:52px; height:52px; border-radius:14px; background:var(--grad-soft);
  display:grid; place-items:center; margin-bottom:18px;
}
.feature .icon svg { width:26px; height:26px; stroke: var(--brand); fill:none; stroke-width:2; }
.feature h3 { margin:0 0 10px; font-size:1.2rem; font-weight:700; }
.feature p { margin:0; color:var(--muted); font-size:1rem; }

/* ---------- Quote ----------------------------------------------------- */
.quote-section {
  background: radial-gradient(900px 500px at 100% 0%, #7b4fd6 0%, transparent 55%),
              linear-gradient(160deg,#1c1440,#2c1c63);
  color:#fff; overflow:hidden;
}
.quote-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:center; position:relative; z-index:1; }
.quote-grid img { border-radius: var(--radius); border:1px solid rgba(255,255,255,.14); box-shadow:0 30px 70px -24px rgba(0,0,0,.55); }
.quote-grid blockquote { margin:0; font-size:clamp(1.5rem,2.8vw,2.25rem); font-weight:700; line-height:1.28; letter-spacing:-.01em; }
.quote-grid .mark { font-size:4rem; line-height:0; color:var(--brand-2); display:block; height:.5em; }
.quote-grid cite { display:block; margin-top:24px; font-style:normal; font-weight:500; font-size:1.05rem; color:#cfc8ea; }

/* ---------- CTA band -------------------------------------------------- */
.cta-band { text-align:center; }
.cta-inner {
  background: radial-gradient(700px 400px at 50% 0%, #7b4fd6 0%, transparent 60%),
              linear-gradient(120deg,#241653,#3a2472);
  color:#fff; border-radius: 28px; padding: 68px 40px; box-shadow: var(--shadow);
  position: relative; overflow:hidden;
}
.cta-inner h2 { font-size: clamp(1.8rem,3.2vw,2.6rem); font-weight:800; letter-spacing:-.02em; margin:0 0 14px; }
.cta-inner p { color:#d6d1ea; font-size:1.1rem; margin:0 0 30px; }

/* ---------- Page hero (interior) ------------------------------------- */
.page-hero {
  position: relative; overflow:hidden; text-align:center;
  background: radial-gradient(900px 420px at 50% -30%, #efe9ff 0%, transparent 60%);
  padding: 92px 0 56px;
}
.page-hero h1 { font-size: clamp(2.2rem,4.4vw,3.6rem); font-weight:800; letter-spacing:-.02em; margin:0 auto 16px; max-width:900px; }
.page-hero p { font-size:1.18rem; color:var(--muted); margin:0 auto; max-width:620px; }

/* ---------- Demo page ------------------------------------------------- */
.demo-grid { display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:start; }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top:0; font-size:1.25rem; font-weight:700; }
.card.sticky-cta { position: sticky; top: 100px; text-align:center; background: var(--grad-soft); border-color:#e4dbfb; }
.checklist { list-style:none; padding:0; margin:0; }
.checklist li { padding:9px 0 9px 32px; position:relative; color:var(--muted); }
.checklist li::before { content:"✓"; position:absolute; left:0; top:9px; color:var(--brand); font-weight:800; }
.tags { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.tag { background:#efe9ff; color:var(--brand-ink); padding:7px 15px; border-radius:999px; font-size:.88rem; font-weight:600; }

/* ---------- Blog ------------------------------------------------------ */
.post-list { display:grid; gap:24px; max-width:820px; margin:0 auto; }
.post-card {
  display:block; border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 34px; background:#fff; box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color:#e0d9f7; }
.post-card .meta { color:var(--brand); font-weight:600; font-size:.85rem; letter-spacing:.02em; margin-bottom:10px; }
.post-card h2 { margin:0 0 12px; font-size:1.55rem; font-weight:700; color:var(--ink); line-height:1.22; }
.post-card p { margin:0; color:var(--muted); }
.post-card .arrow { margin-top:16px; color:var(--brand); font-weight:600; font-size:.95rem; }

.article { max-width:720px; margin:0 auto; }
.article .meta { color:var(--brand); font-weight:600; margin-bottom:12px; letter-spacing:.02em; }
.article h1 { font-size:clamp(2.1rem,3.8vw,3rem); line-height:1.14; font-weight:800; letter-spacing:-.02em; margin:0 0 20px; }
.article h2 { font-size:1.55rem; font-weight:700; margin:44px 0 14px; letter-spacing:-.01em; }
.article p { font-size:1.12rem; color:#33313c; margin:0 0 22px; }
.article .byline { margin-top:46px; padding-top:26px; border-top:1px solid var(--line); color:var(--muted); font-weight:500; }
.post-nav { display:flex; justify-content:space-between; gap:18px; margin-top:40px; flex-wrap:wrap; }
.post-nav a { max-width:47%; }

/* ---------- Footer ---------------------------------------------------- */
.site-footer { background:#100b24; color:#b9b4d0; padding:60px 0 40px; }
.site-footer .container { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.site-footer .foot-brand { font-weight:800; font-size:1.5rem; color:#fff; letter-spacing:.02em; }
.site-footer a { color:#b9b4d0; transition:color .18s; }
.site-footer a:hover { color:#fff; }
.foot-links { display:flex; gap:26px; flex-wrap:wrap; align-items:center; }
.foot-copy { width:100%; margin-top:28px; padding-top:22px; border-top:1px solid #241d43; font-size:.85rem; color:#7d7799; }

/* ---------- Scroll reveal --------------------------------------------
   Progressive enhancement: elements only hide when JS is active (html.js).
   Without JS, content is always visible. */
.js .reveal { opacity:0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns:1fr; gap:40px; padding:70px 0 84px; text-align:center; }
  .hero .sub { margin-left:auto; margin-right:auto; }
  .hero-cta, .hero-badges { justify-content:center; }
  .hero-visual img { transform:none; }
  .split, .quote-grid, .demo-grid, .feature-grid { grid-template-columns:1fr; gap:34px; }
  .split.reverse .split-media { order:0; }
  .card.sticky-cta { position:static; }
  section { padding:64px 0; }

  .nav {
    position: fixed; inset: 78px 0 auto 0; background:#fff; flex-direction:column; gap:0;
    padding:8px 0; border-bottom:1px solid var(--line);
    transform: translateY(-150%); transition: transform .25s ease; box-shadow:0 20px 40px rgba(0,0,0,.08);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding:15px 26px; width:100%; }
  .nav a.active::after { display:none; }
  .nav-cta { margin:10px 26px; text-align:center; justify-content:center; }
  .nav-toggle { display:block; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity:1 !important; transform:none !important; }
  .hero .blob, .hero-visual .float-card { animation:none; }
  html { scroll-behavior:auto; }
}
