/* ============================================================================
   Joltify — 2026 site design system
   One stylesheet for the redesigned homepage. Self-contained: no dependency
   on shared-styles.css / light-theme.css used by the legacy product pages.
   ========================================================================== */

:root {
  --ink: #0b1020;
  --ink-2: #101830;
  --paper: #f7f8fc;
  --white: #ffffff;
  --text: #1c2333;
  --muted: #5b6478;
  --line: #e5e8f0;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-ink: #4f46e5;
  --success: #10b981;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 24px 48px -24px rgb(15 23 42 / 0.25);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(99 102 241 / 0.35), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(34 211 238 / 0.18), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(50rem 28rem at 70% 20%, black, transparent 70%);
}
.hero .container { position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #c7d2fe; margin-bottom: 20px;
}
.hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero h1 { max-width: 15ch; }
.hero h1 .jolt {
  background: linear-gradient(90deg, #a5b4fc, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3cadd; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--ink);
  box-shadow: 0 12px 32px -12px rgb(99 102 241 / 0.7);
}
.btn-ghost {
  background: rgb(255 255 255 / 0.08); color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.22);
}
.btn-dark { background: var(--ink); color: var(--white); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.88rem; color: #9aa4bf;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }

/* ---------------------------------------------------------------- products */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d2fe;
}
.product-card .badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); background: #eef2ff;
  padding: 4px 10px; border-radius: 999px;
}
.product-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--accent-ink);
}
.product-icon svg { width: 22px; height: 22px; }
.product-card h3 { margin-bottom: 6px; }
.product-card .tagline { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.product-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; font-weight: 600; }
.product-links a { display: inline-flex; align-items: center; gap: 6px; }
.product-links a:hover { text-decoration: none; color: var(--accent); }
.product-links .muted-link { color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------------- why */
.why { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.why-card svg { width: 26px; height: 26px; color: var(--accent-ink); margin-bottom: 14px; }
.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------- cta */
.cta-band {
  background:
    radial-gradient(40rem 20rem at 15% 0%, rgb(34 211 238 / 0.25), transparent 60%),
    var(--ink);
  color: var(--white); text-align: center;
  padding: clamp(64px, 8vw, 96px) 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c3cadd; max-width: 46ch; margin: 0 auto 28px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink-2); color: #9aa4bf; padding: 56px 0 40px; font-size: 0.92rem; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: #9aa4bf; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------- blog */
.blog-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.blog-date { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; letter-spacing: 0.02em; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.blog-excerpt { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.blog-read { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.post { padding: 40px 0 80px; }
.post .container { max-width: 760px; }
.post-meta { color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.post-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 28px; }
.post-body { font-size: 1.05rem; color: #2a3245; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { margin: 2em 0 0.6em; font-size: 1.45rem; }
.post-body h3 { margin: 1.8em 0 0.5em; font-size: 1.15rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { text-decoration: underline; text-underline-offset: 2px; }
.post-body blockquote {
  border-left: 3px solid var(--accent); margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em;
  color: var(--muted); font-style: italic;
}
.post-body img { border-radius: 12px; margin: 1.5em 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-back { margin-top: 48px; font-weight: 600; }

/* ------------------------------------------------------- content & contact */
.container.narrow { max-width: 860px; }
.doc h2 { margin-top: 2em; }
.doc h3 { margin-top: 1.6em; }

.contact-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(240px, 1fr) 1.4fr;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 26px; }
.contact-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.contact-value { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: grid; gap: 18px; box-shadow: var(--shadow-sm);
}
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font); font-size: 0.98rem; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); outline: none; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { justify-self: start; }
.form-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
