/* ============================================================
   IQRev — marketing site design system
   Dark, premium, credible. Teal brand accent (#1a7a6e).
   ============================================================ */

:root{
  --bg:        #090b0c;
  --bg-2:      #0c0f10;
  --panel:     #12171a;
  --panel-2:   #171d21;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --ink:       #f5f3ef;   /* headings */
  --text:      #c4c9cd;   /* body */
  --muted:     #828a90;   /* secondary */

  --teal:      #1a7a6e;   /* brand */
  --teal-400:  #25a592;
  --teal-300:  #45d6c0;   /* glow / links on dark */
  --teal-100:  #b9f1e7;

  --indigo:    #6366f1;   /* mockup accents (mirror product) */
  --amber:     #f59e0b;
  --rose:      #f43f5e;
  --slate:     #64748b;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--sans); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
h1,h2,h3,h4{ color:var(--ink); font-weight:650; letter-spacing:-.02em; line-height:1.08; margin:0; }
p{ margin:0; }

/* ---------- layout ---------- */
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:108px 0; position:relative; }
.section--tight{ padding:72px 0; }
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.measure{ max-width:680px; }
.measure-sm{ max-width:560px; }

/* ---------- type helpers ---------- */
.eyebrow{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--teal-300);
  padding:6px 12px; border:1px solid rgba(69,214,192,.25); border-radius:999px;
  background:rgba(69,214,192,.06); margin-bottom:22px;
}
.display{ font-size:clamp(2.5rem, 5.2vw, 4.1rem); }
.h-xl{ font-size:clamp(2rem, 3.8vw, 3rem); }
.h-lg{ font-size:clamp(1.5rem, 2.6vw, 2.1rem); }
.serif-em{ font-family:var(--serif); font-style:italic; font-weight:400; }
.lead{ font-size:clamp(1.05rem, 1.5vw, 1.28rem); color:var(--text); line-height:1.6; }
.muted{ color:var(--muted); }
.teal{ color:var(--teal-300); }
.nowrap{ white-space:nowrap; }

/* gradient text accent */
.grad{
  background:linear-gradient(100deg,#7af2df 0%, #2bb9a6 45%, #1a7a6e 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:600; line-height:1;
  padding:13px 22px; border-radius:11px; border:1px solid transparent;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; }
.btn-primary{
  color:#04211d; background:linear-gradient(180deg,#43d8c2,#1f9c8b);
  box-shadow:0 10px 30px -10px rgba(37,165,146,.6), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 38px -10px rgba(37,165,146,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost{ color:var(--ink); background:rgba(255,255,255,.04); border-color:var(--line-2); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.28); transform:translateY(-2px); }
.btn-lg{ padding:16px 28px; font-size:16px; border-radius:12px; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(9,11,12,.72); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; gap:28px; height:70px; }
.brand{ display:flex; align-items:center; gap:11px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }
.brand img{ width:30px; height:30px; }
.brand .wm{ font-size:19px; }
.brand .wm b{ font-weight:750; }
.brand .wm span{ color:var(--teal-300); font-weight:600; }
.nav-links{ display:flex; align-items:center; gap:30px; margin-left:14px; }
.nav-links a{ font-size:15px; color:var(--text); font-weight:500; transition:color .15s; }
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-right{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.nav-right .btn{ padding:10px 18px; font-size:14px; }
.nav-toggle{ display:none; background:none; border:0; color:var(--ink); cursor:pointer; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; }

/* ---------- backgrounds / glow ---------- */
.glow{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.5; pointer-events:none; z-index:0; }
.glow--teal{ background:radial-gradient(circle, rgba(37,165,146,.55), transparent 70%); }
.glow--indigo{ background:radial-gradient(circle, rgba(99,102,241,.32), transparent 70%); }
.grid-bg::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image:radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity:.6;
}
.section > .container{ position:relative; z-index:1; }

/* ---------- hero ---------- */
.hero{ padding:74px 0 96px; position:relative; overflow:hidden; }
.hero .glow--teal{ width:720px; height:720px; top:-280px; left:50%; transform:translateX(-50%); }
.hero .glow--indigo{ width:480px; height:480px; top:120px; right:-160px; }
.hero-grid{ display:grid; grid-template-columns:1.02fr .98fr; gap:54px; align-items:center; }
.hero h1{ margin-bottom:22px; }
.hero .lead{ margin-bottom:30px; max-width:540px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.hero-note{ margin-top:20px; font-size:13.5px; color:var(--muted); display:flex; align-items:center; gap:8px; }
.hero-note svg{ width:16px; height:16px; color:var(--teal-300); }

/* ---------- trust strip ---------- */
.trust{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--bg-2); }
.trust-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; padding:30px 0; flex-wrap:wrap; }
.trust-label{ font-size:13px; color:var(--muted); letter-spacing:.04em; max-width:230px; }
.trust-stats{ display:flex; gap:44px; flex-wrap:wrap; }
.trust-stat .n{ font-size:30px; font-weight:700; color:var(--ink); font-family:var(--mono); letter-spacing:-.02em; }
.trust-stat .n span{ color:var(--teal-300); }
.trust-stat .l{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; margin-top:3px; }

/* ---------- section header ---------- */
.shead{ max-width:660px; margin:0 auto 56px; text-align:center; }
.shead p{ margin-top:16px; color:var(--text); font-size:1.06rem; }

/* ---------- 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:linear-gradient(180deg, var(--panel), var(--bg-2));
  border:1px solid var(--line); border-radius:var(--radius); padding:28px;
  position:relative; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{ transform:translateY(-3px); border-color:rgba(69,214,192,.28); box-shadow:var(--shadow); }
.card .ico{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(37,165,146,.12); border:1px solid rgba(69,214,192,.22); color:var(--teal-300); margin-bottom:18px;
}
.card .ico svg{ width:22px; height:22px; }
.card h3{ font-size:1.18rem; margin-bottom:9px; }
.card p{ font-size:.96rem; color:var(--muted); }

/* feature list w/ checks */
.checks{ list-style:none; padding:0; margin:18px 0 0; display:grid; gap:11px; }
.checks li{ display:flex; gap:10px; align-items:flex-start; font-size:.95rem; color:var(--text); }
.checks svg{ width:18px; height:18px; color:var(--teal-300); flex-shrink:0; margin-top:2px; }

/* ---------- split feature rows ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split + .split{ margin-top:96px; }
.split.rev .split-media{ order:-1; }
.split h2{ margin-bottom:16px; }
.split p{ color:var(--text); }

/* ---------- mockup window ---------- */
.win{
  background:#0e1316; border:1px solid var(--line-2); border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow); position:relative;
}
.win-bar{ display:flex; align-items:center; gap:7px; padding:11px 14px; background:#0a0f11; border-bottom:1px solid var(--line); }
.win-bar i{ width:11px; height:11px; border-radius:50%; background:#2a3338; display:inline-block; }
.win-bar i:nth-child(1){ background:#e25b5b; } .win-bar i:nth-child(2){ background:#e6b13e; } .win-bar i:nth-child(3){ background:#48b96a; }
.win-bar .tab{ margin-left:12px; font-size:12px; color:var(--muted); font-family:var(--mono); }
.win-body{ padding:18px; }

/* mini KPI cards inside mockups */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.kpi{ background:#121a1e; border:1px solid var(--line); border-radius:10px; padding:11px 12px; position:relative; overflow:hidden; }
.kpi::before{ content:""; position:absolute; top:0; left:0; right:0; height:2px; background:var(--teal); }
.kpi .l{ font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.kpi .v{ font-size:18px; font-weight:650; color:var(--ink); font-family:var(--mono); margin-top:4px; }
.kpi .d{ font-size:11px; margin-top:3px; font-weight:600; }
.up{ color:#34d399; } .down{ color:#fb7185; }

/* ---------- how it works ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; counter-reset:step; }
.step{ position:relative; padding:30px 26px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); }
.step .num{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:700; color:var(--teal-300); background:rgba(37,165,146,.12);
  border:1px solid rgba(69,214,192,.25); margin-bottom:16px;
}
.step h3{ font-size:1.1rem; margin-bottom:8px; }
.step p{ font-size:.95rem; color:var(--muted); }

/* ---------- integrations ---------- */
.intg{ display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; }
.chip{ display:inline-flex; align-items:center; gap:9px; padding:11px 18px; border:1px solid var(--line-2); border-radius:999px; background:var(--panel); color:var(--text); font-size:14px; font-weight:500; }
.chip .dot{ width:8px; height:8px; border-radius:50%; background:var(--teal-300); }
.chip.soon .dot{ background:var(--amber); }

/* ---------- CTA band ---------- */
.cta-band{ position:relative; overflow:hidden; border-radius:24px; padding:64px 40px; text-align:center;
  background:linear-gradient(180deg,#10201d,#0b1413); border:1px solid rgba(69,214,192,.2); }
.cta-band .glow--teal{ width:520px; height:520px; top:-260px; left:50%; transform:translateX(-50%); opacity:.4; }
.cta-band h2{ margin-bottom:14px; }
.cta-band p{ color:var(--text); margin:0 auto 28px; max-width:520px; }

/* ---------- pricing ---------- */
.price-card{ background:linear-gradient(180deg,var(--panel),var(--bg-2)); border:1px solid var(--line); border-radius:var(--radius); padding:34px; }
.price-card.feat{ border-color:rgba(69,214,192,.4); box-shadow:0 0 0 1px rgba(69,214,192,.15), var(--shadow); }
.price-card .tier{ font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--teal-300); font-weight:700; }
.price-card .amt{ font-size:2.6rem; font-weight:700; color:var(--ink); margin:14px 0 4px; letter-spacing:-.02em; }
.price-card .amt small{ font-size:1rem; color:var(--muted); font-weight:500; }
.price-card .sub{ color:var(--muted); font-size:.95rem; margin-bottom:22px; }

/* ---------- FAQ ---------- */
.faq{ max-width:760px; margin:0 auto; }
.faq details{ border-bottom:1px solid var(--line); padding:22px 4px; }
.faq summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--ink); font-weight:600; font-size:1.05rem; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--teal-300); font-size:1.5rem; line-height:1; transition:transform .2s; }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq p{ color:var(--muted); margin-top:12px; font-size:.98rem; }

/* ---------- forms ---------- */
.form{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:8px; letter-spacing:.01em; }
.field input, .field select, .field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--line-2); border-radius:10px;
  color:var(--ink); font-family:inherit; font-size:15px; padding:12px 14px; transition:border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder{ color:#5d656b; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--teal-400); box-shadow:0 0 0 3px rgba(37,165,146,.18); }
.field textarea{ resize:vertical; min-height:118px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-msg{ display:none; margin-top:14px; padding:13px 16px; border-radius:10px; font-size:14px; }
.form-msg.ok{ display:block; background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.3); color:#6ee7b7; }
.form-msg.err{ display:block; background:rgba(244,63,94,.1); border:1px solid rgba(244,63,94,.32); color:#fda4af; }

/* ---------- contact split ---------- */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; align-items:start; }
.contact-item{ display:flex; gap:14px; margin-bottom:26px; }
.contact-item .ico{ width:42px; height:42px; flex-shrink:0; border-radius:11px; display:flex; align-items:center; justify-content:center; background:rgba(37,165,146,.12); border:1px solid rgba(69,214,192,.22); color:var(--teal-300); }
.contact-item h4{ font-size:1rem; margin-bottom:3px; }
.contact-item p{ color:var(--muted); font-size:.95rem; }

/* ---------- footer ---------- */
.footer{ border-top:1px solid var(--line); background:var(--bg-2); padding:60px 0 34px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; margin-bottom:42px; }
.foot-brand p{ color:var(--muted); font-size:.94rem; margin-top:16px; max-width:280px; }
.foot-col h5{ color:var(--ink); font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin:0 0 16px; }
.foot-col a{ display:block; color:var(--muted); font-size:.95rem; margin-bottom:11px; transition:color .15s; }
.foot-col a:hover{ color:var(--teal-300); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; flex-wrap:wrap; gap:12px; }

/* ---------- reveal animation ---------- */
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.js .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .js .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero{ padding:80px 0 30px; position:relative; overflow:hidden; text-align:center; }
.page-hero .glow--teal{ width:560px; height:560px; top:-300px; left:50%; transform:translateX(-50%); opacity:.4; }
.page-hero h1{ margin-bottom:18px; }
.page-hero .lead{ margin:0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .hero .lead{ max-width:none; }
  .split, .contact-grid{ grid-template-columns:1fr; gap:34px; }
  .split.rev .split-media{ order:0; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav.open .nav-links{
    display:flex; flex-direction:column; position:absolute; top:70px; left:0; right:0;
    background:var(--bg-2); border-bottom:1px solid var(--line); padding:18px 24px; gap:18px; margin:0;
  }
  .section{ padding:74px 0; }
  .grid-2, .grid-3, .grid-4, .form-row{ grid-template-columns:1fr; }
  .trust-inner{ justify-content:flex-start; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:48px 22px; }
}
@media (max-width: 460px){
  .kpis{ grid-template-columns:repeat(2,1fr); }
  .foot-grid{ grid-template-columns:1fr; }
}
