/* ============================================================
   InspecX — Design tokens
   ============================================================ */
:root {
  --bg: #07070a;
  --bg-alt: #0c0c10;
  --surface: #131318;
  --surface-2: #191921;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --primary: #0099ff;
  --primary-light: #00ccff;
  --gradient: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 153, 255, 0.15), rgba(0, 204, 255, 0.05));

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.42);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 0 1px rgba(0, 153, 255, 0.25), 0 8px 30px rgba(0, 153, 255, 0.15);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--primary-light);
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 18px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 153, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(0, 153, 255, 0.08);
}

.btn-block { width: 100%; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand-x {
  color: var(--primary-light);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 200px 0 120px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 700px;
  background: radial-gradient(closest-side, rgba(0, 153, 255, 0.22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Device mockup */
.device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.tablet {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3.05;
  background: linear-gradient(160deg, #17171d, #0a0a0d);
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  padding: 16px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  position: relative;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
}

.tablet-screen {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.screen-bar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.screen-bar .dot-row { display: flex; gap: 6px; }
.screen-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.screen-bar .title { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.screen-body {
  flex: 1;
  padding: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat-card .num {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card .label {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.bar-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}

.bar-card i {
  display: block;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--gradient-soft);
  border-top: 2px solid var(--primary-light);
}

.float-chip {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.float-chip svg { width: 16px; height: 16px; color: var(--primary-light); }

.chip-pdf { top: 8%; left: -6%; }
.chip-offline { bottom: 10%; right: -8%; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item .num {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.trust-item .label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 153, 255, 0.35);
  background: var(--surface-2);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 153, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step .step-num {
  font-family: "Sora", sans-serif;
  font-size: 40px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
  margin-bottom: 14px;
  display: block;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Custom forms / code block section
   ============================================================ */
.code-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.code-split h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 18px;
}

.code-split p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.code-window {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.code-window .code-bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.code-window .code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.code-window pre {
  margin: 0;
  padding: 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  color: #cbd5e1;
}

.code-window .tok-key { color: #7dd3fc; }
.code-window .tok-str { color: #86efac; }
.code-window .tok-punc { color: #64748b; }

/* ============================================================
   Screens showcase
   ============================================================ */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.showcase-card .mock {
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  height: 190px;
  margin-bottom: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-line.w80 { width: 80%; }

.mock-block { flex: 1; border-radius: 6px; background: var(--gradient-soft); border: 1px dashed rgba(0,153,255,0.3); margin-top: 6px; }

.showcase-card h4 { font-size: 15px; margin-bottom: 6px; }
.showcase-card p { font-size: 13px; color: var(--text-faint); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0,153,255,0.08), var(--surface) 40%);
}

.price-card .tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card .tag.tag-save {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.price-card h3 { font-size: 18px; }
.price-card .price { font-family: "Sora", sans-serif; font-size: 30px; font-weight: 700; }
.price-card .price span { font-size: 14px; color: var(--text-faint); font-weight: 500; }
.price-card .desc { font-size: 13px; color: var(--text-faint); }

.price-card ul { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.price-card li svg { width: 16px; height: 16px; color: var(--primary-light); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,153,255,0.14), rgba(0,204,255,0.05));
  border: 1px solid rgba(0,153,255,0.25);
  padding: 70px 60px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-faint); font-size: 14px; max-width: 280px; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero {
  padding: 180px 0 60px;
  text-align: center;
}

.contact-hero h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 18px; }
.contact-hero p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }

.contact-info-item .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0,153,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon-wrap svg { width: 18px; height: 18px; color: var(--primary-light); }
.contact-info-item h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14px; color: var(--text-muted); }
.contact-info-item a:hover { color: var(--primary-light); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,153,255,0.15);
}

.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  display: none;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.form-status.success { display: block; background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.form-status.error { display: block; background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tablet { transform: none; max-width: 380px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .code-split { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 14px 0; }
  .nav .container { padding: 0 16px; }
  .container { padding: 0 20px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }

  .hero { padding: 110px 0 56px; }
  .hero-grid { gap: 40px; }
  .hero-grid > div:first-child { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero h1 { font-size: 31px; margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; margin-left: auto; margin-right: auto; }
  .hero-actions { margin-bottom: 28px; justify-content: center; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 14px 18px; }
  .hero-badges { gap: 10px 20px; justify-content: center; }
  .hero-badge { font-size: 13px; }

  .tablet { max-width: 320px; padding: 12px; }
  .float-chip { display: none; }

  .trust-strip { padding: 28px 0; }
  .trust-grid { gap: 20px 12px; }
  .trust-item .num { font-size: 21px; }
  .trust-item .label { font-size: 12px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px 20px 20px; }
  .step .step-num { font-size: 32px; margin-bottom: 10px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-card { padding: 28px 22px; }

  .cta-banner { padding: 44px 22px; }
  .cta-actions .btn { width: 100%; }

  .contact-hero { padding: 130px 0 44px; }
  .contact-hero p { font-size: 16px; }
  .contact-info { padding: 24px; gap: 20px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
