:root {
  --navy: #0b1220;
  --navy-2: #101a33;
  --navy-3: #16233f;
  --primary: #4f46e5;
  --primary-2: #2563eb;
  --primary-3: #7c3aed;
  --accent: #06b6d4;
  --accent-2: #14b8a6;
  --gold: #f59e0b;
  --danger: #e11d48;
  --warning: #d97706;
  --success: #059669;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.14);
  --ring: rgba(79, 70, 229, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 35%, #f8fafc 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(79, 70, 229, 0.22); color: #1e1b4b; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 40px)); margin: 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, rgba(11,18,32,.97), rgba(16,26,51,.94));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-2), var(--accent), var(--primary-3), transparent);
  opacity: .75;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 750; font-size: 20px; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}
.brand-name { white-space: nowrap; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: #cbd5e1; padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 600;
  letter-spacing: .01em; transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff; background: rgba(255,255,255,0.08); text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(6, 182, 212, .8);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important; box-shadow: 0 8px 20px rgba(79, 70, 229, .32);
}
.nav-cta:hover { box-shadow: 0 10px 24px rgba(79, 70, 229, .45); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 88px 0 72px;
  background:
    radial-gradient(900px 460px at 10% -8%, rgba(99,102,241,.55), transparent 62%),
    radial-gradient(760px 420px at 90% 6%, rgba(6,182,212,.28), transparent 60%),
    radial-gradient(640px 420px at 60% 110%, rgba(124,58,237,.30), transparent 62%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 48%, var(--navy) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px); line-height: 1.04; margin: 0 0 16px;
  letter-spacing: -.038em; font-weight: 800;
}
.hero p.lead { font-size: 18px; color: #cbd5e1; margin: 0 0 26px; max-width: 700px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #a5f3fc; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(6,182,212,.12); border: 1px solid rgba(34,211,238,.3);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
  backdrop-filter: blur(12px);
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-3), transparent);
}
.hero-card h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.01em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: #e2e8f0; border: 1px solid rgba(255,255,255,.14);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px; padding: 13px; transition: background .2s ease, transform .2s ease;
}
.stat:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.stat .num {
  font-size: 24px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------- Sections & cards ---------------- */
.section { padding: 76px 0; }
.section.alt { background: linear-gradient(180deg, #fff 0%, #f9fafc 100%); border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.section-header { margin-bottom: 28px; }
.section-header h2 {
  margin: 0 0 10px; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.03em;
  line-height: 1.15; font-weight: 780; position: relative; padding-bottom: 12px;
}
.section-header h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-header.center h2::after { left: 50%; transform: translateX(-50%); }
.section-header p { margin: 0; color: var(--muted); max-width: 760px; font-size: 15px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(79,70,229,.24); }
.card.soft { box-shadow: none; background: linear-gradient(160deg, #f8fafc, #eef2ff); }
.card.soft:hover { transform: none; box-shadow: none; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.card p { margin: 0 0 10px; color: #334155; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 10px 22px rgba(79,70,229,.24);
}

/* ---------------- Buttons & tags ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  font-weight: 650; cursor: pointer; font-size: 14px; letter-spacing: .005em;
  box-shadow: 0 10px 22px rgba(79,70,229,.24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(79,70,229,.34); filter: brightness(1.03); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--primary); border-color: #c7d2fe; box-shadow: none; }
.btn.secondary:hover { background: #f5f3ff; color: var(--primary); box-shadow: 0 10px 22px rgba(79,70,229,.12); }
.btn.ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.14); box-shadow: 0 10px 22px rgba(2,6,23,.22); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.success { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 22px rgba(5,150,105,.24); }
.btn.warn { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 10px 22px rgba(217,119,6,.22); }
.btn.danger { background: linear-gradient(135deg, #be123c, #e11d48); box-shadow: 0 10px 22px rgba(190,18,60,.22); }

.tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 750;
  letter-spacing: .03em; text-transform: uppercase; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569;
}
.tag.primary { background: #eef2ff; color: #4338ca; border-color: #ddd6fe; }
.tag.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tag.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tag.danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.tag.info { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 12px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }

/* ---------------- Trial portal components ---------------- */
.brand-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 9px; border-radius: 999px; color: #99f6e4; white-space: nowrap;
  background: rgba(20,184,166,.14); border: 1px solid rgba(45,212,191,.34);
}
.trial-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.trial-steps li { color: #334155; font-size: 14px; }
.trial-steps.light li { color: #dbeafe; }
.trial-steps.light strong { color: #fff; }

.app-card { overflow: hidden; padding: 0; position: relative; }
.app-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--primary-2), var(--primary-3), var(--accent));
  opacity: 0; transition: opacity .25s ease;
}
.app-card:hover::before { opacity: 1; }
.app-card .thumb {
  width: 100%; height: 172px; object-fit: cover; background: #e2e8f0;
  transition: transform .45s ease;
}
.app-card:hover .thumb { transform: scale(1.025); }
.app-card .body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.app-card h3 { margin: 2px 0 0; font-size: 18px; }
.app-facts { display: grid; gap: 5px; padding: 12px 0; border-top: 1px solid var(--border); }
.app-facts > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fact-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

.trial-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; }
.status-badge.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-badge.danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.key-box {
  margin: 14px 0 10px; padding: 16px; border-radius: 13px; text-align: center;
  font-size: 19px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(135deg, #0b1220, #16233f); color: #99f6e4;
  border: 1px solid rgba(148,163,184,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.expiry-meta { display: grid; gap: 6px; margin: 14px 0; }
.expiry-meta > div { display: flex; justify-content: space-between; gap: 10px; }
.expiry-bar { height: 9px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.expiry-fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--gold), var(--danger)); }

.download-card { display: flex; flex-direction: column; gap: 9px; }
.download-head { display: flex; align-items: center; gap: 12px; }
.download-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; color: #fff; flex: 0 0 auto;
  box-shadow: 0 10px 20px rgba(15,23,42,.14);
}
.checksum {
  padding: 9px 11px; border-radius: 10px; background: #f8fafc;
  border: 1px solid var(--border); color: #475569; word-break: break-all; font-family: Consolas, monospace; font-size: 12px;
}
.code-block {
  padding: 11px 13px; border-radius: 10px; background: linear-gradient(135deg, #0b1220, #16233f);
  color: #e2e8f0; overflow-x: auto; font-size: 12px; margin: 6px 0 0;
}
.notice { padding: 13px 16px; border-radius: 12px; border: 1px solid; border-left-width: 4px; font-size: 14px; }
.notice.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice.danger { background: #fff1f2; border-color: #fecdd3; color: #be123c; }

/* ---------------- Legacy portfolio helpers ---------------- */
.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.project-card .thumb { width: 100%; height: 170px; object-fit: cover; background: #e2e8f0; }
.project-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card .meta { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px;
  display: grid; place-items: center; border-radius: 50%; font-size: 11px;
  background: rgba(5,150,105,.12); color: var(--success); font-weight: 800;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------------- Forms & feedback ---------------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring);
}
input[type=file] {
  width: 100%; padding: 11px 12px; border: 1px dashed #cbd5e1; border-radius: var(--radius-sm);
  font: inherit; font-size: 13px; background: #f8fafc; color: #475569;
}
.flash-stack { margin: 18px auto 0; }
.flash { padding: 13px 15px; border-radius: 12px; border: 1px solid; font-size: 14px; box-shadow: var(--shadow); }
.flash.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.flash.error { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.notice.success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* Client-type selector on the project request form */
.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 650; color: #334155;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.choice:hover { border-color: #c7d2fe; background: #f8f7ff; }
.choice:has(input:checked) {
  border-color: var(--primary); background: #eef2ff; color: #3730a3;
  box-shadow: 0 0 0 3px var(--ring);
}
.choice input { accent-color: var(--primary); margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #475569; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.kpi .v { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.kpi .l { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-page {
  position: relative; overflow: hidden; padding: 58px 0 44px; color: #fff;
  background:
    radial-gradient(700px 360px at 12% -10%, rgba(99,102,241,.48), transparent 60%),
    radial-gradient(600px 320px at 88% 0%, rgba(6,182,212,.25), transparent 60%),
    linear-gradient(130deg, #1e1b4b 0%, #312e81 42%, #1d4ed8 100%);
}
.hero-page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-3), transparent);
}
.hero-page h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; font-weight: 800; }
.hero-page p { margin: 0; color: #dbeafe; max-width: 800px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; min-width: 140px; }
.ml-1 { margin-left: 6px; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Guided demo wizard ---------------- */
.demo-wizard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.wizard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wizard-steps { list-style: none; padding: 0; margin: 20px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.wizard-step {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: #f8fafc;
  color: var(--muted); font-weight: 650; font-size: 13px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.wizard-step:hover { border-color: #c7d2fe; color: #3730a3; }
.wizard-step.is-current { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; box-shadow: 0 0 0 3px var(--ring); }
.wizard-step.is-done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.wizard-num {
  width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; background: #fff; border: 1px solid currentColor;
  font-size: 11px; font-weight: 800;
}
.wizard-progress { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.wizard-progress-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .25s ease;
}
.demo-step { display: none; padding-top: 20px; }
.demo-step.is-active { display: block; }
.section-header.compact { margin-bottom: 16px; }
.section-header.compact h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.section-header.compact p { margin: 0; font-size: 13px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.wizard-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.grid-table { font-size: 13px; }
.grid-table th { background: #eef2ff; color: #3730a3; font-size: 11px; }
.grid-table td { padding: 6px; }
.grid-table input {
  width: 100%; min-width: 90px; padding: 8px 9px; border: 1px solid #cbd5e1;
  border-radius: 8px; font: inherit; font-size: 13px; background: #fff;
}
.grid-table input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.grid-remove {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid #fecdd3;
  background: #fff1f2; color: #be123c; font-size: 18px; line-height: 1; cursor: pointer;
}
.grid-remove:hover { background: #ffe4e6; }
.grid-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.grid-source { display: none; }
.output-grid tbody tr:nth-child(even) { background: #f8fafc; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 46px 17px 18px; position: relative;
  font-weight: 700; font-size: 15px; color: #1e293b;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 17px; top: 15px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 8px; font-weight: 800;
  color: var(--primary); background: #eef2ff; border: 1px solid #ddd6fe;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 16px 18px; font-size: 14px; color: #475569; }
.faq-answer a { font-weight: 650; }

/* ---------------- Reviews ---------------- */
.rating-grid { grid-template-columns: repeat(5, 1fr); }
.rating-choice { justify-content: center; gap: 6px; padding: 10px 6px; }
.rating-stars { color: var(--gold); font-size: 15px; letter-spacing: -1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stars { display: inline-flex; gap: 2px; color: #cbd5e1; font-size: 17px; }
.stars .on { color: var(--gold); }
.review-card { display: flex; flex-direction: column; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-card p { flex: 1; }

/* ---------------- Web development projects ---------------- */
.project-visual {
  position: relative; height: 168px; padding: 18px; color: #fff; overflow: hidden;
}
.project-visual::after {
  content: ""; position: absolute; right: -50px; bottom: -80px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.project-icon {
  position: relative; z-index: 1; display: block; font-size: 42px; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(2,6,23,.28));
}
.project-category {
  position: absolute; left: 18px; bottom: 16px; z-index: 1; font-size: 12px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  padding: 5px 10px; border-radius: 999px;
}
.project-year {
  position: absolute; right: 18px; bottom: 16px; z-index: 1; font-size: 13px;
  font-weight: 700; color: rgba(255,255,255,.9);
}
.project-card .body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.project-card .list-check { margin: 2px 0; }
.project-meta { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---------------- Live preview ---------------- */
.preview-app-head { display: flex; align-items: center; gap: 13px; }
.preview-app-head h2 { margin: 0; font-size: 20px; }
.preview-output .kpis { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.preview-output .kpi { padding: 12px; }
.preview-output .kpi .v { font-size: 19px; }
.preview-output table { font-size: 13px; }
.preview-output table th { font-size: 11px; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative; overflow: hidden; color: #94a3b8; padding: 44px 0 30px; margin-top: 48px;
  background: linear-gradient(135deg, #0b1220 0%, #101a33 55%, #0b1220 100%);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-2), var(--accent), var(--primary-3), var(--primary-2));
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr 1.25fr; gap: 22px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid a { color: #cbd5e1; }
.footer-grid a:hover { color: #fff; }
.footer-grid h4 + div a[href^="https://wa.me"], .footer-grid a[href^="mailto:"] { color: #5eead4; }
.footnote { border-top: 1px solid rgba(148,163,184,.14); margin-top: 26px; padding-top: 16px; font-size: 12px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; align-items: stretch; }
  .main-nav { justify-content: center; }
  .hero { padding: 68px 0 56px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1200px); }
  .hero h1 { font-size: 34px; }
  .hero-actions .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .app-card .thumb { height: 150px; }
  .choice-grid { grid-template-columns: 1fr; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .brand { font-size: 18px; }
  .brand-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
