/* ============================================================
   Joseph Medina L. — Software studio site
   ============================================================ */

:root {
  /* Default warm-navy palette (Tweaks can swap these) */
  --bg:        oklch(0.135 0.018 250);
  --bg-2:      oklch(0.165 0.022 250);
  --bg-3:      oklch(0.205 0.024 250);
  --surface:   oklch(0.22  0.026 250);
  --border:    oklch(0.30  0.025 250 / 0.5);
  --border-2:  oklch(0.40  0.028 250 / 0.35);

  --fg:        oklch(0.97  0.006 85);
  --fg-muted:  oklch(0.74  0.012 250);
  --fg-dim:    oklch(0.55  0.014 250);

  --accent:    oklch(0.80  0.155 75);   /* amber-gold */
  --accent-2:  oklch(0.72  0.175 55);   /* orange */
  --accent-3:  oklch(0.65  0.13  240);  /* electric blue */

  --gas-color: oklch(0.74  0.18  60);   /* Gas-O-Matic orange */
  --kro-color: oklch(0.85  0.14  85);   /* Kronos gold */
  --mob-color: oklch(0.78  0.11  80);   /* MobiRent bronze */

  --radius-s: 6px;
  --radius:   12px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --font-sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --content-w: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #1a1208; }

/* ============================================================ */
/* Layout */
/* ============================================================ */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.eyebrow.no-dot::before { display: none; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 600; }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { color: var(--fg-muted); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--fg-muted); max-width: 65ch; }

.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.01em; }

/* ============================================================ */
/* Nav */
/* ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  background: oklch(from var(--bg) l c h / 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1208;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s, background .15s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ============================================================ */
/* Hero */
/* ============================================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero-headline {
  margin: 28px 0 32px;
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 50ch;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta strong { color: var(--fg); font-weight: 500; display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 14px; text-transform: none; letter-spacing: 0; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background:
    radial-gradient(60% 50% at 30% 20%, oklch(0.30 0.04 250 / 0.7), transparent 70%),
    radial-gradient(50% 60% at 80% 80%, oklch(0.28 0.05 60 / 0.4), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  padding: 32px;
}
.hero-logo-row {
  position: absolute;
  inset: auto 32px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.hero-logo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: grid;
  place-items: center;
  padding: 14px;
  transition: transform .3s, border-color .3s;
}
.hero-logo:hover { transform: translateY(-4px); border-color: var(--accent); }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo svg { width: 100%; height: 100%; }
.hero-tag {
  position: absolute;
  top: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: oklch(0.25 0.03 250 / 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.7 0.2 145); box-shadow: 0 0 12px oklch(0.7 0.2 145); }

.hero-art-big {
  font-family: var(--font-mono);
  font-size: 140px;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--fg);
  position: absolute;
  top: 80px;
  left: 32px;
  opacity: 0.95;
}
.hero-art-big span:nth-child(2) { color: var(--accent); }
.hero-art-cap {
  position: absolute;
  top: 76px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-align: right;
  max-width: 140px;
  line-height: 1.4;
}

/* ============================================================ */
/* Buttons / CTAs */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s, background .15s, color .15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #1a1208;
}
.btn-primary:hover { transform: translateY(-1px); background: oklch(from var(--accent) calc(l + 0.04) c h); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--fg);
}
.btn-ghost:hover { background: oklch(from var(--bg-2) l c h / 0.6); border-color: var(--fg-muted); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================ */
/* Products overview */
/* ============================================================ */
.products-overview {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-2);
}
.po-row {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.po-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.po-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.po-item:first-of-type { padding-left: 0; border-left: none; }
.po-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  padding: 6px;
}
.po-logo img { width: 100%; height: 100%; object-fit: contain; }
.po-item .name { font-weight: 600; font-size: 16px; }
.po-item .desc { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }

/* ============================================================ */
/* Section header */
/* ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .right { max-width: 60ch; }
.section-head h2 { margin: 16px 0 0; }

/* ============================================================ */
/* Product section blocks */
/* ============================================================ */
.product-section {
  padding: 140px 0 120px;
  border-top: 1px solid var(--border);
  position: relative;
}
.product-section.gas { --pc: var(--gas-color); }
.product-section.kro { --pc: var(--kro-color); }
.product-section.mob { --pc: var(--mob-color); }

.product-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}
.product-logo-big {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 14px;
  display: grid;
  place-items: center;
}
.product-logo-big img, .product-logo-big svg { width: 100%; height: 100%; object-fit: contain; }
.product-title-block .index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc);
  margin-bottom: 14px;
}
.product-title-block h2 { font-size: clamp(40px, 4.5vw, 64px); }
.product-title-block .product-name {
  color: var(--pc);
}
.product-tagline {
  color: var(--fg-muted);
  font-size: 18px;
  margin-top: 18px;
  max-width: 55ch;
}
.product-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}
.product-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 200px;
}
.product-stack span {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Body grid */
.product-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

/* Feature list */
.features {
  display: grid;
  gap: 6px;
}
.feature {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}
.feature:last-child { border-bottom: none; }
.feature .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pc, var(--accent));
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.feature h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; }

/* Product showcase / mock area */
.showcase {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, oklch(from var(--pc) l c h / 0.16), transparent 60%);
  pointer-events: none;
}
.showcase-inner {
  background: var(--bg);
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}

/* Window chrome */
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }
.win-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  margin-left: auto;
  margin-right: auto;
  padding-right: 70px;
}

/* ============================================================ */
/* KPI grids (used in mocks) */
/* ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.kpi .value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kpi .delta {
  font-size: 11px;
  margin-top: 6px;
  color: oklch(0.75 0.16 145);
  font-family: var(--font-mono);
}
.kpi .delta.neg { color: oklch(0.7 0.16 25); }

/* App side nav (mock) */
.app-shell {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 460px;
}
.app-nav {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: var(--bg-2);
}
.app-nav .brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc);
  margin-bottom: 18px;
  padding: 0 8px;
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--fg-muted);
  border-radius: 6px;
  margin-bottom: 2px;
}
.app-nav-link.active {
  background: oklch(from var(--pc) l c h / 0.12);
  color: var(--fg);
}
.app-nav-link .ic {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--border-2);
  flex-shrink: 0;
}
.app-nav-link.active .ic { background: var(--pc); }

.app-body { padding: 0; }
.app-body-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-body-header h5 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.app-body-header .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }

/* ============================================================ */
/* Specific mocks: tables, bars, calendar */
/* ============================================================ */
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 12.5px;
}
.bar-row .lbl { color: var(--fg-muted); }
.bar-track {
  height: 6px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--pc);
  border-radius: 100px;
}
.bar-row .val { font-family: var(--font-mono); font-size: 11.5px; text-align: right; color: var(--fg); }

table.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.mock-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.mock-table td {
  padding: 11px 12px;
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.4);
  color: var(--fg-muted);
}
table.mock-table td.strong { color: var(--fg); font-weight: 500; }
table.mock-table td.mono { font-family: var(--font-mono); font-size: 11.5px; }
table.mock-table tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.tag.ok { background: oklch(0.30 0.08 145 / 0.4); border-color: oklch(0.5 0.12 145 / 0.5); color: oklch(0.85 0.14 145); }
.tag.warn { background: oklch(0.30 0.08 75 / 0.35); border-color: oklch(0.5 0.14 75 / 0.5); color: oklch(0.85 0.14 75); }
.tag.bad { background: oklch(0.30 0.08 25 / 0.4); border-color: oklch(0.5 0.13 25 / 0.5); color: oklch(0.85 0.14 25); }

/* Heat map */
.heatmap {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  padding: 18px;
}
.heatmap div { aspect-ratio: 1; border-radius: 3px; background: var(--bg-3); }

/* Calendar */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.cal-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px;
  background: var(--bg-2);
  position: relative;
}
.cal-cell .d { color: var(--fg-dim); font-size: 10px; }
.cal-cell .ev {
  position: absolute;
  bottom: 4px;
  left: 4px; right: 4px;
  height: 4px;
  border-radius: 100px;
}
.cal-cell.dim { opacity: 0.35; }

/* Country chips */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
}
.country {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  font-size: 12.5px;
}
.country .n { font-weight: 500; font-size: 13px; }
.country .id { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); margin-top: 4px; letter-spacing: 0.04em; }
.country .tax { font-family: var(--font-mono); font-size: 10.5px; color: var(--pc); margin-top: 1px; }

/* ============================================================ */
/* Stats strip */
/* ============================================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat .v {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--pc, var(--fg));
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* ============================================================ */
/* About / Studio */
/* ============================================================ */
.studio {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.studio h2 { margin-bottom: 24px; }
.principles {
  list-style: none;
  display: grid;
  gap: 16px;
}
.principles li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
}
.principles li .mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  background: oklch(from var(--accent) l c h / 0.15);
  margin-top: 3px;
  flex-shrink: 0;
  position: relative;
}
.principles li .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.principles li strong { display: block; color: var(--fg); font-weight: 500; }
.principles li span { color: var(--fg-muted); font-size: 14.5px; }

/* ============================================================ */
/* Contact / CTA */
/* ============================================================ */
.contact {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 50% 50%, oklch(from var(--accent) l c h / 0.18), transparent 70%);
  pointer-events: none;
}
.contact .container { position: relative; }
.contact h2 { max-width: 18ch; margin: 24px auto 28px; font-size: clamp(48px, 7vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.contact .lead { margin: 0 auto 40px; }
.contact-rows {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.contact-rows .item {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.contact-rows .item:last-child { border-right: none; }
.contact-rows .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.contact-rows .val {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-rows .val a:hover { color: var(--accent); }

/* ============================================================ */
/* Footer */
/* ============================================================ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

/* ============================================================ */
/* Screenshot containers (auto-fill when file exists) */
/* ============================================================ */
.screenshot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      oklch(from var(--pc, var(--accent)) l c h / 0.07) 14px 15px),
    var(--bg-2);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px oklch(from var(--pc, var(--accent)) l c h / 0.25);
}
.screenshot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, oklch(from var(--pc, var(--accent)) l c h / 0.18), transparent 70%);
  pointer-events: none;
}
.screenshot[data-file]:not(.has-image)::after {
  content: "📸  " attr(data-file);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: oklch(from var(--bg) l c h / 0.85);
  border: 1px solid var(--border-2);
  padding: 12px 18px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
}
.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.screenshot.compact { aspect-ratio: 4 / 3; }
.screenshot.wide { aspect-ratio: 21 / 10; }
.screenshot.portrait { aspect-ratio: 9 / 16; }
.screenshot.square { aspect-ratio: 1; }

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

@media (max-width: 1024px) {
  .screenshot-grid, .screenshot-grid.three { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* WhatsApp button */
/* ============================================================ */
.btn-whatsapp {
  background: oklch(0.62 0.18 145);
  color: #051a0a;
}
.btn-whatsapp:hover {
  background: oklch(0.7 0.19 145);
  transform: translateY(-1px);
}
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ============================================================ */
/* Detail page specifics */
/* ============================================================ */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: 0.5; }

.detail-hero {
  padding: 100px 0 60px;
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-hero .product-logo-big {
  width: 84px; height: 84px;
  margin-bottom: 28px;
}
.detail-hero h1 {
  font-size: clamp(48px, 6.5vw, 80px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 24px;
}
.detail-hero h1 .product-name { color: var(--pc); }
.detail-hero .lead { font-size: 19px; }
.detail-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.detail-hero-stack {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.detail-hero-stack strong { display: block; color: var(--fg); font-weight: 500; font-family: var(--font-sans); font-size: 14px; text-transform: none; letter-spacing: 0; margin-top: 4px; }

.detail-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.detail-section.tight { padding: 64px 0; }
.detail-section h2 { margin-bottom: 24px; }
.detail-section .intro { max-width: 65ch; margin-bottom: 56px; }

/* Spec cards */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.spec-grid.two { grid-template-columns: 1fr 1fr; }
.spec-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  transition: border-color .2s, transform .2s;
}
.spec-card:hover { border-color: var(--pc, var(--accent)); transform: translateY(-2px); }
.spec-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc, var(--accent));
  margin-bottom: 16px;
}
.spec-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.spec-card p { font-size: 14.5px; line-height: 1.5; }

/* Two-col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.two-col .lhs h3 { font-size: 28px; line-height: 1.1; margin-bottom: 16px; }
.two-col .lhs .lead { font-size: 16px; }

/* Permissions table */
.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.perm-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  font-weight: 500;
  padding: 14px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.perm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.4);
  color: var(--fg);
}
.perm-table td:first-child { color: var(--fg); font-weight: 500; }
.perm-table td.mark-yes { color: oklch(0.78 0.16 145); text-align: center; font-family: var(--font-mono); }
.perm-table td.mark-no { color: oklch(0.55 0.05 25); text-align: center; font-family: var(--font-mono); }
.perm-table tr:last-child td { border-bottom: none; }
.perm-table tr:hover td { background: oklch(from var(--bg-2) l c h / 0.5); }

/* Shortcuts */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--fg);
  letter-spacing: 0.02em;
  font-weight: 500;
  white-space: nowrap;
}

/* Big numbered list */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.step .n {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: oklch(from var(--pc, var(--accent)) l c h / 0.15);
  color: var(--pc, var(--accent));
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}
.step h5 { font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.005em; }
.step p { font-size: 13.5px; }

/* Detail nav (per-product secondary nav) */
.product-nav {
  position: sticky;
  top: 65px;
  z-index: 30;
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.product-nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  overflow-x: auto;
}
.product-nav-inner .pname {
  font-weight: 600;
  color: var(--pc);
  margin-right: 8px;
  white-space: nowrap;
}
.product-nav-inner a {
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color .15s;
}
.product-nav-inner a:hover { color: var(--fg); }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
details summary {
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg-muted);
  font-weight: 300;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 16px; max-width: 75ch; font-size: 15px; }

/* Variants (Tweaks) */
/* ============================================================ */
body.theme-mono {
  --accent: oklch(0.95 0.01 85);
  --gas-color: oklch(0.95 0.01 85);
  --kro-color: oklch(0.95 0.01 85);
  --mob-color: oklch(0.95 0.01 85);
}
body.theme-warm {
  --bg:        oklch(0.14 0.022 60);
  --bg-2:      oklch(0.17 0.025 60);
  --bg-3:      oklch(0.21 0.028 60);
  --surface:   oklch(0.24 0.03  60);
  --accent: oklch(0.78 0.16 55);
}
body.density-compact .section-pad { padding: 80px 0; }
body.density-compact .product-section { padding: 100px 0 80px; }

/* ============================================================ */
/* Responsive */
/* ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { aspect-ratio: 16/10; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .product-body { grid-template-columns: 1fr; gap: 32px; }
  .product-head { grid-template-columns: auto 1fr; }
  .product-cta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .product-stack { justify-content: flex-start; max-width: none; }
  .po-row { grid-template-columns: 1fr; gap: 16px; }
  .po-item { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 16px; }
  .po-item:first-of-type { border-top: none; padding-top: 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .contact-rows { grid-template-columns: 1fr; }
  .contact-rows .item { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-rows .item:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .app-nav { display: none; }
}
