/* ==========================================================================
   JobStar — Complete Job Portal Platform
   Design system + components. Vanilla CSS3, no frameworks.
   Palette, spacing, and components are token-driven for easy theming.
   ========================================================================== */

:root {
  /* Brand */
  --bg: #0a0913;
  --bg-2: #111022;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.028);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-soft: #c8cfe6;
  --muted: #9aa2bd;
  --muted-2: #6f7793;

  --accent: #265df5;   /* JobStar blue   */
  --accent-2: #6c63ff; /* JobStar violet */
  --accent-3: #7b8cff; /* periwinkle     */
  --accent-4: #34d399; /* green          */
  --warn: #fbbf24;
  --danger: #fb7185;

  --grad: linear-gradient(135deg, #265df5, #6c63ff 55%, #7b5cff);
  --grad-soft: linear-gradient(135deg, #8fb0ff, #b3aaff 55%, #c4b6ff);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --container: 1200px;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 30px 80px -32px rgba(38, 93, 245, 0.55);

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);

  --nav-h: 68px;
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(38, 93, 245, 0.22), transparent 60%),
    radial-gradient(1000px 560px at 100% -6%, rgba(108, 99, 255, 0.16), transparent 55%),
    radial-gradient(900px 700px at 50% 118%, rgba(123, 92, 255, 0.10), transparent 60%),
    var(--bg);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 6px; }

/* ---- Utilities ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.gradient-text {
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-3);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.lead { color: var(--text-soft); font-size: 19px; }
.muted { color: var(--muted); }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.pill { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(38,93,245,0.75); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---- Navbar --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(38,93,245,0.7); }
.brand .logo svg { width: 20px; height: 20px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; color: var(--text-soft); font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: #fff; background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(6, 9, 17, 0.96); backdrop-filter: blur(20px);
  padding: 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 15px 12px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn { margin-top: 22px; }

/* ---- Hero + Slider -------------------------------------------------------- */
.hero { padding: 72px 0 64px; position: relative; }
.slider { position: relative; }
.slides { position: relative; min-height: 520px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: opacity .6s ease, transform .6s ease;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.slide-eyebrow { margin-bottom: 22px; }
.slide h1 { font-size: clamp(34px, 5.4vw, 60px); }
.slide h1 .gradient-text { display: inline; }
.slide p { color: var(--muted); font-size: 19px; margin: 22px 0 30px; max-width: 560px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-visual { position: relative; }

.slider-dots { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.slider-dots button { width: 34px; height: 5px; border-radius: 99px; border: none; background: var(--border-strong); transition: background .2s; }
.slider-dots button.active { background: var(--grad); }
.slider-arrows { position: absolute; top: 42%; width: 100%; display: flex; justify-content: space-between; pointer-events: none; }
.slider-arrows button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10,15,26,0.7); backdrop-filter: blur(8px); color: var(--text); display: grid; place-items: center; }
.slider-arrows button:hover { background: var(--surface); }
.slider-arrows svg { width: 20px; height: 20px; }

/* ---- Screenshot / mock frames -------------------------------------------- */
.frame {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-glow); overflow: hidden; position: relative;
}
.frame::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 34px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.frame .dots { position: absolute; top: 12px; left: 14px; display: flex; gap: 7px; z-index: 2; }
.frame .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame .dots span:nth-child(1){ background:#fb7185; } .frame .dots span:nth-child(2){ background:#fbbf24; } .frame .dots span:nth-child(3){ background:#34d399; }
.frame img, .frame .shot { display: block; width: 100%; margin-top: 34px; }
.shot { min-height: 300px; background:
  radial-gradient(500px 220px at 20% 0%, rgba(38,93,245,0.16), transparent 60%),
  var(--bg-2); }

.phone {
  width: 260px; border-radius: 34px; border: 1px solid var(--border-strong);
  background: var(--bg-2); padding: 12px; box-shadow: var(--shadow-glow); position: relative;
}
.phone .notch { width: 90px; height: 20px; background: #000; border-radius: 0 0 14px 14px; margin: 0 auto 10px; }
.phone img, .phone .shot { border-radius: 24px; min-height: 440px; margin-top: 0; }

/* Placeholder screenshot caption */
.shot-note { position: absolute; inset: auto 0 0 0; padding: 10px; font-size: 11px; color: var(--muted-2); text-align: center; letter-spacing: .04em; }

/* ---- Trusted / logos ------------------------------------------------------ */
.trusted { text-align: center; }
.trusted p { color: var(--muted-2); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; opacity: .8; }
.logo-row .logo-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; filter: grayscale(1); transition: filter .2s, color .2s, opacity .2s; }
.logo-row .logo-item:hover { filter: grayscale(0); color: var(--text-soft); }
.logo-row svg { width: 22px; height: 22px; }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s ease, background .18s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: rgba(255,255,255,0.06); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(38,93,245,0.24), rgba(108,99,255,0.16)); border: 1px solid var(--border);
}
.card .ic svg { width: 24px; height: 24px; color: var(--accent-3); }
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tag { position:absolute; top:16px; right:16px; }

.benefit { display: flex; gap: 16px; }
.benefit .ic { flex: none; }
.benefit h3 { font-size: 17px; }

/* Feature list (checkmarks) */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: 15px; }
.checks li svg { width: 20px; height: 20px; color: var(--accent-4); flex: none; margin-top: 1px; }

/* ---- Split feature rows --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }

/* ---- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 18px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---- Workflow / timeline -------------------------------------------------- */
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.wf-step { text-align: center; position: relative; }
.wf-step .num { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(38,93,245,0.7); }
.wf-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.wf-step p { color: var(--muted); font-size: 13px; }
.wf-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

/* Vertical timeline (product tour) */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-3), transparent); }
.tl-item { position: relative; padding: 0 0 40px 0; }
.tl-item::before { content:""; position:absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(38,93,245,0.16); }
.tl-item.done::before { background: var(--accent); }

/* ---- Testimonials --------------------------------------------------------- */
.quote { padding: 28px; }
.quote .stars { color: var(--warn); margin-bottom: 14px; letter-spacing: 2px; }
.quote p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #fff; font-size: 15px; }
.quote .who b { display: block; font-size: 14px; }
.quote .who span { color: var(--muted); font-size: 13px; }

/* ---- Pricing -------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { padding: 32px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: rgba(108,99,255,0.5); box-shadow: 0 30px 70px -30px rgba(108,99,255,0.5); }
.price-card .plan { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.price-card .desc { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.price-card .amount { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card .amount .cur { font-size: 22px; vertical-align: super; color: var(--muted); }
.price-card .terms { color: var(--muted); font-size: 13px; margin: 8px 0 24px; }
.price-card ul { margin-bottom: 26px; }
.price-card .btn { margin-top: auto; }
.ribbon { position: absolute; top: 18px; right: 18px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }

/* ---- Comparison table ----------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.compare thead th { position: sticky; top: 0; background: rgba(12,17,28,0.96); backdrop-filter: blur(6px); }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th:not(:first-child), table.compare td:not(:first-child) { text-align: center; }
table.compare thead th { font-family: var(--font-display); font-size: 16px; }
table.compare thead th small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
table.compare tbody tr:hover { background: var(--surface-2); }
table.compare .grp td { background: var(--surface-2); font-weight: 700; color: var(--accent-3); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.yes { color: var(--accent-4); } .no { color: var(--muted-2); }
.yes svg, .no svg { width: 19px; height: 19px; }
.col-pop { background: rgba(108,99,255,0.07); }

/* ---- Accordion (FAQ / docs) ---------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: none; color: var(--text); text-align: left; font-size: 16px; font-weight: 600; }
.acc-head .chev { flex: none; width: 22px; height: 22px; transition: transform .25s ease; color: var(--muted); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); color: var(--accent-3); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.faq-cats button { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 13.5px; font-weight: 500; }
.faq-cats button.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---- Docs layout ---------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding-right: 8px; }
.docs-side h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 20px 0 8px; }
.docs-side a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--text); background: var(--surface); }
.docs-side a.active { color: var(--text); border-left-color: var(--accent); background: var(--surface); }
.docs-main { min-width: 0; }
.docs-main section { padding-top: 12px; margin-bottom: 44px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-main h2 { font-size: 26px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.docs-main h3 { font-size: 18px; margin: 24px 0 10px; }
.docs-main p { color: var(--text-soft); margin-bottom: 14px; }
.docs-main ul.dot { list-style: disc; padding-left: 22px; color: var(--text-soft); margin-bottom: 16px; }
.docs-main ul.dot li { margin-bottom: 7px; }
.docs-main ol { padding-left: 22px; color: var(--text-soft); margin-bottom: 16px; }
.docs-main ol li { margin-bottom: 7px; }
.code {
  background: #0b111f; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; color: #b9c6de; margin-bottom: 18px; line-height: 1.7;
}
.code .k { color: #c4b5fd; } .code .s { color: #7dd3fc; } .code .c { color: var(--muted-2); }
.callout { border-left: 3px solid var(--accent-3); background: var(--surface); border-radius: 0 12px 12px 0; padding: 14px 18px; margin-bottom: 18px; color: var(--text-soft); font-size: 14.5px; }

/* ---- Breadcrumb ----------------------------------------------------------- */
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.crumb a:hover { color: var(--text); }
.crumb svg { width: 14px; height: 14px; }

/* ---- Page hero ------------------------------------------------------------ */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 18px 0 16px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 auto; }

/* ---- Lightbox ------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3,5,10,0.9); backdrop-filter: blur(10px); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox .lb-content { max-width: min(1000px, 92vw); max-height: 86vh; border-radius: 16px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.lightbox .close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: #fff; display: grid; place-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .frame { cursor: zoom-in; }

/* ---- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
  border-radius: 11px; padding: 12px 14px; font-family: inherit; font-size: 15px; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { color: var(--accent-4); font-size: 14px; }
.form-err { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .form-err { display: block; }

/* ---- CTA ------------------------------------------------------------------ */
.cta {
  border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(38,93,245,0.32), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta p { color: var(--text-soft); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 34px; margin-top: 40px; background: rgba(6,9,17,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; margin-bottom: 44px; }
.footer .brand { margin-bottom: 16px; }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 300px; margin-bottom: 18px; }
.footer h6 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--text); border-color: var(--border-strong); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); } .footer-bottom a:hover { color: var(--text); }

/* ---- Cookie consent bar --------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 15px 20px;
  box-shadow: var(--shadow);
  transform: translateY(160%); transition: transform .4s ease;
}
.cookie-bar.show { transform: none; }
.cookie-bar p { color: var(--text-soft); font-size: 14px; margin: 0; }
.cookie-bar a { color: var(--accent-3); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* ---- Reveal animations ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.floaty { animation: float 6s ease-in-out infinite; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .wf-step:not(:last-child)::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .slide { grid-template-columns: 1fr; text-align: center; }
  .slide p { margin-inline: auto; }
  .slide-actions { justify-content: center; }
  .slide-visual { display: none; }
  .slides { min-height: 340px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .docs { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 10px; }
  .pricing { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .cta { padding: 38px 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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

/* ==========================================================================
   LIGHT THEME (default)
   The :root palette above is DARK. Pages ship with <html data-theme="light">,
   so light is the default; the nav theme-toggle (and the saved preference)
   flip data-theme to "dark". Everything here overrides the dark tokens plus
   the handful of selectors that hardcoded dark rgba() backgrounds.
   ========================================================================== */
:root[data-theme="light"] {
  --bg: #f6f8fe;
  --bg-2: #eef1fb;
  --surface: rgba(20, 33, 74, 0.038);
  --surface-2: rgba(20, 33, 74, 0.022);
  --border: rgba(20, 33, 74, 0.10);
  --border-strong: rgba(20, 33, 74, 0.17);
  --text: #10142b;
  --text-soft: #2f3960;
  --muted: #59628a;
  --muted-2: #8791ad;

  /* Light periwinkle gradient text is invisible on white — use the vivid grad. */
  --grad-soft: linear-gradient(135deg, #265df5, #6c63ff 55%, #7b5cff);

  --shadow: 0 24px 55px -30px rgba(20, 33, 74, 0.28);
  --shadow-glow: 0 30px 70px -34px rgba(38, 93, 245, 0.30);
}

/* Smooth fade when switching themes (disabled under reduced-motion above). */
body { transition: background-color .35s ease, color .35s ease; }

/* Softer ambient glows on a light canvas. */
[data-theme="light"] body::before {
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(38, 93, 245, 0.10), transparent 60%),
    radial-gradient(1000px 560px at 100% -6%, rgba(108, 99, 255, 0.08), transparent 55%),
    radial-gradient(900px 700px at 50% 118%, rgba(123, 92, 255, 0.06), transparent 60%),
    var(--bg);
}

/* Chrome / surfaces that hardcoded dark rgba() backgrounds. */
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.80); border-bottom-color: var(--border); }
[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.97); }
[data-theme="light"] .mobile-menu a:hover { color: var(--accent); }
[data-theme="light"] .nav-links a.active { color: var(--accent); }
[data-theme="light"] .btn-ghost:hover { background: rgba(20, 33, 74, 0.06); }
[data-theme="light"] .card:hover { background: rgba(20, 33, 74, 0.035); }
[data-theme="light"] .glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow); }
[data-theme="light"] .frame { background: linear-gradient(180deg, #ffffff, #eef2fc); }
[data-theme="light"] .frame::before { background: rgba(20, 33, 74, 0.03); }
[data-theme="light"] .slider-arrows button { background: rgba(255, 255, 255, 0.82); }
[data-theme="light"] table.compare thead th { background: rgba(246, 248, 254, 0.96); }
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: rgba(20, 33, 74, 0.03); }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus { background: rgba(20, 33, 74, 0.05); }
[data-theme="light"] .footer { background: rgba(20, 33, 74, 0.025); }
[data-theme="light"] .cookie-bar { background: rgba(255, 255, 255, 0.95); }
/* (Code blocks and the lightbox overlay stay dark by design.) */

/* ---- Theme toggle button (in the navbar) --------------------------------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
