/* Obsidian Dynamics — o-d.live
   Palette sampled from the horizontal Orbitron logo. */
:root {
  --bg: #11121f;
  --bg-deep: #0b0c15;
  --surface: #161829;
  --surface-2: #1c1f33;
  --line: rgba(193, 199, 219, 0.10);
  --line-strong: rgba(193, 199, 219, 0.20);
  --facet-1: #585f88;
  --facet-2: #424766;
  --facet-3: #2b2f47;
  --text: #e6e8f2;
  --steel: #c1c7db;
  --muted: #9097b3;
  --dim: #6b7190;
  --ember: #ff7a1a;
  --ember-soft: #ffa347;
  --ember-glow: rgba(255, 122, 26, 0.35);
  --radius: 14px;
  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(88, 95, 136, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255, 122, 26, 0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-soft); text-decoration: none; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 18, 31, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; mix-blend-mode: lighten; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--line-strong);
  padding: 8px 14px; border-radius: 999px;
}
.nav .nav-cta:hover { border-color: var(--ember); color: var(--text); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand img { height: 30px; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ember-soft);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember-soft); box-shadow: 0 0 12px var(--ember);
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.display {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #eceef6 0%, #b9bfd4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.display { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.08; }
h2.display { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 19px; color: var(--text); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--steel); max-width: 640px; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--text); border-color: var(--facet-1); transform: translateY(-1px); }
.btn-ember {
  background: linear-gradient(180deg, #ff8a2e, #f2680d);
  border-color: transparent; color: #1a0d02;
  box-shadow: 0 6px 24px -6px var(--ember-glow);
}
.btn-ember:hover { color: #1a0d02; border-color: transparent; box-shadow: 0 8px 30px -4px var(--ember-glow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.store-btn { padding: 10px 18px; }
.store-btn small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.store-btn span { line-height: 1.15; text-align: left; }

/* ---------- Hero (home) ---------- */
.hero { padding: 88px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-mark { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-mark img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.hero-mark::after {
  content: ""; position: absolute; left: 46%; top: 47%; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,163,71,0.85), rgba(255,122,26,0) 70%);
  filter: blur(6px); animation: pulse 3.6s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .hero-mark::after { animation: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { width: min(260px, 70%); order: -1; }
  .hero { padding-top: 48px; }
}

/* ---------- Product cards (home) ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr; } }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  color: var(--text); overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--ember)), transparent);
  opacity: .6;
}
.product-card:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); }
.product-card .icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 22px; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6); }
.product-card .tag { font-family: var(--display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.product-card h3 { font-size: 24px; margin-bottom: 4px; }
.product-card .tagline { color: var(--accent, var(--ember-soft)); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.product-card p.desc { color: var(--steel); font-size: 15.5px; margin: 0 0 22px; flex: 1; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.product-card .go { color: var(--text); font-weight: 600; white-space: nowrap; }
.product-card:hover .go { color: var(--accent, var(--ember)); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 8px rgba(60,207,142,.6); }
.status.soon::before { background: var(--ember-soft); box-shadow: 0 0 8px var(--ember-glow); }

.soon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 56px 0 20px; font-size: 14px; }
.soon-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .soon-grid { grid-template-columns: 1fr; } }
.product-card.soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.product-card.soon:hover { transform: none; box-shadow: none; }
.product-card.soon .meta span:last-child { text-align: right; }
.icon-mono {
  display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-deep));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.icon-mono svg { width: 30px; height: 30px; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.principles > div { background: var(--bg); padding: 32px 28px; }
.principles .num { font-family: var(--display); color: var(--ember-soft); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 14px; }
.principles p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-deep));
  border: 1px solid var(--line); border-radius: 22px; padding: 44px;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,0.18), transparent 70%);
  pointer-events: none;
}
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: 14px; background: var(--bg-deep); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-grid img { height: 30px; width: auto; mix-blend-mode: lighten; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-links h4 { font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.footer-links a { display: block; color: var(--steel); margin-bottom: 6px; }
.footer-links a:hover { color: var(--ember-soft); }

/* =========================================================
   Product pages
   ========================================================= */
.p-hero { padding: 80px 0 64px; }
.p-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .p-hero-grid { grid-template-columns: 1fr; gap: 40px; } .p-hero { padding-top: 44px; } }
.p-title { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.p-title img { width: 60px; height: 60px; border-radius: 15px; }
.p-title .name { font-family: var(--display); font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); }
.p-title .by { font-size: 13px; color: var(--dim); }
.p-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.p-hero h1 em { font-style: normal; color: var(--accent); }
.p-hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px);
  gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory;
  scrollbar-color: var(--facet-2) transparent;
}
.shots img { border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; width: 100%; height: auto; }
.hero-shot { justify-self: center; width: min(340px, 100%); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--line); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.step p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--steel); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--steel); background: var(--surface); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.plan .pname { font-family: var(--display); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.plan .ptag { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.plan .price { font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .alt { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.plan .badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #1a0d02; background: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plan .badge.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.plan .checks li { font-size: 15px; }
.fine { font-size: 13.5px; color: var(--dim); margin-top: 22px; max-width: 760px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* RigKeeper app mock (no screenshots yet) */
.mock {
  justify-self: center; width: min(330px, 100%); border-radius: 36px; padding: 12px;
  background: linear-gradient(160deg, #2a2e45, #0b0c15); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85), 0 0 0 1px var(--line-strong);
}
.mock-screen { border-radius: 26px; overflow: hidden; background: #eef2f8; color: #0a1b3d; font-size: 13px; }
.mock-top { background: #0a1b3d; color: #fff; padding: 20px 18px 54px; }
.mock-top .row { display: flex; justify-content: space-between; align-items: center; }
.mock-top .hi { font-size: 12px; opacity: .7; }
.mock-top .biz { font-weight: 700; font-size: 16px; }
.mock-truck { margin: -40px 14px 0; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px -10px rgba(10,27,61,.35); }
.mock-truck .unit { font-size: 11px; color: #5b6b8a; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mock-truck .miles { font-family: "Barlow Semi Condensed", var(--body); font-weight: 700; font-size: 28px; color: #0a1b3d; line-height: 1.1; }
.mock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.mock-actions div { background: #1665f5; color: #fff; border-radius: 12px; padding: 14px 12px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.mock-actions div:nth-child(2) { background: #0a1b3d; }
.mock-actions div:nth-child(3) { background: #0a1b3d; }
.mock-actions i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.18); flex: none; }
.mock-list { padding: 0 14px 18px; }
.mock-list .h { font-size: 11px; font-weight: 700; color: #5b6b8a; letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 8px; }
.mock-item { background: #fff; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-item b { display: block; font-size: 13px; }
.mock-item small { color: #5b6b8a; font-size: 11.5px; }
.pill { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill.red { background: #fde2e2; color: #b42318; }
.pill.amber { background: #fff1d6; color: #a15c00; }
.pill.green { background: #dcf5e7; color: #127a43; }
