/* ============================================================
   RizwanAI — Orbiz-style SaaS theme
   Dark hero -> light body, indigo accent #5F59FF (Orbiz signature)
   ============================================================ */
:root {
  --accent: #5F59FF;        /* Orbiz indigo */
  --accent-2: #7B76FF;
  --accent-ink: #4A44E0;
  --accent-soft: #EEEDFF;   /* tinted chip bg on light */

  --dark: #0E0D14;          /* hero / footer / dark blocks */
  --dark-2: #16151F;        /* dark cards */
  --dark-line: #24222F;

  --bg: #FFFFFF;            /* body background */
  --bg-2: #F7F7FB;         /* alt section */
  --card: #FFFFFF;
  --ink: #0E0D14;           /* headings on light */
  --body: #5B5966;          /* body text on light */
  --muted: #8E8C99;
  --line: #ECECF2;

  --on-dark: #F4F4F8;       /* text on dark */
  --on-dark-dim: #A8A6B8;

  --maxw: 1200px;
  --r: 22px; --r-sm: 16px; --pill: 999px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 24px 64px -30px rgba(14,13,20,.28);
  --shadow-sm: 0 10px 30px -18px rgba(14,13,20,.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--body);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }

/* pill eyebrow */
.eyebrow { font-family: 'Inter'; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); padding: 7px 15px; border-radius: var(--pill); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

.accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk'; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: var(--pill); cursor: pointer; border: none; background: var(--accent); color: #fff; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 14px 30px -14px rgba(95,89,255,.7); }
.btn:hover { transform: translateY(-2px); background: var(--accent-ink); box-shadow: 0 18px 38px -14px rgba(95,89,255,.8); }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--on-dark); border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }

/* nav (dark, sits on hero) */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(14,13,20,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--dark-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 21px; color: var(--on-dark); }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--on-dark-dim); padding: 9px 15px; border-radius: var(--pill); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.nav-links a.cta { background: var(--accent); color: #fff; font-family: 'Space Grotesk'; font-weight: 600; padding: 11px 22px; }
.nav-links a.cta:hover { background: var(--accent-ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--dark-line); border-radius: 11px; padding: 9px 11px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--on-dark); margin: 4px 0; border-radius: 2px; }

/* HERO — dark, centered like Orbiz */
.hero { background: var(--dark); position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 480px at 50% -10%, rgba(95,89,255,.28), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.hero .eyebrow { margin: 0 auto; }
.hero h1 { font-size: clamp(40px,6.6vw,72px); margin: 24px auto 22px; color: #fff; max-width: 14ch; }
.hero h1 .accent { -webkit-text-fill-color: var(--accent-2); color: var(--accent-2); }
.hero p.lead { font-size: 18.5px; color: var(--on-dark-dim); max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; gap: 13px; margin: 34px auto 0; justify-content: center; flex-wrap: wrap; }

/* hero product preview (light card floating on dark) */
.viewport { position: relative; aspect-ratio: 16/8.5; max-width: 940px; margin: 56px auto 0; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(170deg,#FFFFFF,#F2F2F8); box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); }
.viewport .vp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(14,13,20,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,13,20,.05) 1px, transparent 1px); background-size: 38px 38px; }
.viewport .scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .65; animation: scan 4.5s linear infinite; }
@keyframes scan { 0% { top: 6%; } 100% { top: 94%; } }
.bbox { position: absolute; border: 2px solid var(--accent); border-radius: 8px; opacity: 0; animation: pop .6s var(--ease) forwards; background: rgba(95,89,255,.06); }
.bbox.v { border-color: #C66BFF; background: rgba(198,107,255,.06); }
.bbox .tag { position: absolute; top: -24px; left: -2px; font-family: 'Space Grotesk'; font-size: 11px; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 8px 8px 8px 0; white-space: nowrap; font-weight: 600; }
.bbox.v .tag { background: #C66BFF; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.vp-readout { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-family: 'Space Grotesk'; font-size: 11px; font-weight: 500; color: var(--muted); }
.vp-readout .live { color: #1FAF6B; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.vp-readout .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1FAF6B; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* STATS band — light card row */
.stats-band { background: var(--bg); padding: 64px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); height: 48px; width: 1px; background: var(--line); }
.stat b { font-family: 'Space Grotesk'; font-size: clamp(34px,4.5vw,52px); font-weight: 700; display: block; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.stat span { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 11px; display: block; }

/* SECTIONS */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-2); }
.sec-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(30px,4.4vw,46px); margin: 0 0 14px; }
.sec-head p { color: var(--body); font-size: 17px; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 28px 26px 30px; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); width: 38px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--body); font-size: 14px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 26px 24px; }
.step .k { font-family: 'Space Grotesk'; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: var(--pill); display: inline-block; }
.step h4 { font-size: 18px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--body); }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--body); font-size: 16.5px; margin-bottom: 18px; }
.checks { list-style: none; margin: 26px 0 0; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.checks li svg { width: 22px; height: 22px; stroke: #fff; background: var(--accent); border-radius: 50%; padding: 4px; flex-shrink: 0; }
.feature-panel { background: var(--dark); border-radius: var(--r); padding: 56px 40px; position: relative; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.feature-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 70% 10%, rgba(95,89,255,.3), transparent 60%); }
.feature-panel .vp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; }
.feature-panel .chip-ic { width: 78px; height: 78px; border-radius: 22px; background: var(--accent); display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 20px 44px -16px rgba(95,89,255,.7); position: relative; z-index: 2; }
.feature-panel .chip-ic svg { width: 38px; height: 38px; stroke: #fff; fill: none; stroke-width: 1.6; }
.feature-panel b { font-family: 'Space Grotesk'; font-size: 32px; font-weight: 700; color: #fff; position: relative; z-index: 2; }
.feature-panel .cap { color: var(--on-dark-dim); font-size: 15px; position: relative; z-index: 2; }
.feature-panel .float-badge { position: absolute; bottom: 32px; right: 32px; background: var(--accent); color: #fff; border-radius: var(--r-sm); padding: 16px 22px; box-shadow: var(--shadow); text-align: left; z-index: 3; }
.feature-panel .float-badge b { color: #fff; font-size: 22px; display: block; }
.feature-panel .float-badge span { color: rgba(255,255,255,.8); font-size: 12px; }

/* platforms */
.platform-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s; }
.platform:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.platform .pic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.platform .pic svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.platform h3 { font-size: 18px; margin-bottom: 9px; }
.platform p { color: var(--body); font-size: 14px; }

/* CTA (dark, like Orbiz footer banner) */
.cta { border-radius: var(--r); background: var(--dark); padding: 70px 48px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -10%, rgba(95,89,255,.4), transparent 62%); }
.cta > * { position: relative; }
.cta .eyebrow { background: rgba(255,255,255,.08); color: #fff; }
.cta .eyebrow::before { background: var(--accent-2); }
.cta h2 { color: #fff; font-size: clamp(30px,4.2vw,46px); margin: 16px 0 14px; }
.cta p { color: var(--on-dark-dim); max-width: 540px; margin: 0 auto 28px; font-size: 17px; }

/* footer (dark) */
footer { background: var(--dark); padding: 64px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-top .brand { color: var(--on-dark); }
.foot-top p { color: var(--on-dark-dim); font-size: 14.5px;
  max-width: 360px; margin-top: 16px; }
.foot-social { display: flex; gap: 25px; flex-wrap: wrap; }
.foot-social a {width: 35px; height: 35px; display: grid;
  place-items: center; color: var(--on-dark);
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,0,255,.2);
  border-radius: 50%; transition: all .2s;
}
.foot-social a svg {width: 20px;height: 20px;}
.foot-bottom { padding-top: 26px; border-top: 1px solid var(--dark-line); font-size: 13.5px; color: var(--on-dark-dim); }

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

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .platform-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); gap: 32px 18px; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(14,13,20,.98); border-bottom: 1px solid var(--dark-line); padding: 12px; gap: 2px; transform: translateY(-130%); transition: transform .3s var(--ease); backdrop-filter: blur(14px); }
  .nav-links.open { transform: none; }
  .menu-toggle { display: block; }
  .cards, .steps, .platform-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .foot-top { flex-direction: column; }
  .cta { padding: 48px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
