/* ==========================================================================
   Cyron Design — site styles
   Palette derives from the logo (navy/cream) + the Moto Knob display (cyan).
   ========================================================================== */

:root {
  --navy-900: #0a1220;
  --navy-800: #0f1b2e;
  --navy-700: #14263f;
  --navy-600: #1e3a63;
  --navy-500: #2b5085;
  --brand:    #2f5fa0;
  --cyan:     #29c5e8;
  --cyan-dim: #1a8fad;
  --magenta:  #d94ec4;
  --cream:    #f7f4ea;
  --ink:      #e8eef7;
  --muted:    #93a4bd;
  --line:     rgba(147, 164, 189, .18);
  --line-str: rgba(41, 197, 232, .35);

  --bg:      var(--navy-900);
  --surface: rgba(255, 255, 255, .035);

  --font-display: 'Chakra Petch', 'Rajdhani', 'Eurostile', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --wrap: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient field ------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -6%, rgba(41,197,232,.16), transparent 62%),
    radial-gradient(760px 520px at 8% 4%,  rgba(47,95,160,.22),  transparent 60%),
    radial-gradient(700px 700px at 50% 108%, rgba(217,78,196,.09), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--cyan); text-decoration: none; }
a:hover { color: #7fe0f7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: .6;
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* Layout ------------------------------------------------------------------- */
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-head { max-width: 68ch; margin-bottom: 3rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10, 18, 32, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 18, 32, .9);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--cream);
  margin-right: auto;
}
.brand svg { width: 26px; height: 34px; color: var(--cyan); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-size: .58rem;
  letter-spacing: .34em;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 500;
  opacity: .82;
  position: relative;
  padding: .3rem 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--cyan); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--cyan);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: .45rem .6rem;
  cursor: pointer;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--brand));
  color: #04121b;
  box-shadow: 0 10px 30px -12px rgba(41,197,232,.75);
}
.btn-primary:hover { color: #04121b; transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(41,197,232,.85); }
/* TowFit's own amber, so its buttons read as that product without dragging the
   rest of the palette off-brand. */
.btn-towfit {
  background: linear-gradient(135deg, #f5893a, #d9631a);
  color: #1c0d03;
  box-shadow: 0 10px 30px -12px rgba(245, 137, 58, .7);
}
.btn-towfit:hover { color: #1c0d03; transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(245, 137, 58, .85); }
.btn-ghost { border-color: var(--line-str); color: var(--ink); background: rgba(41,197,232,.05); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(41,197,232,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* "Coming soon" badge ------------------------------------------------------ */
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-str);
  background: rgba(41, 197, 232, .08);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 .4rem;
}
.badge-soon svg { width: 15px; height: 15px; flex: none; }

/* Cards -------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  position: relative;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--line-str); transform: translateY(-3px); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(41,197,232,.11);
  border: 1px solid var(--line-str);
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 21px; height: 21px; }

/* Hero --------------------------------------------------------------------- */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 span { color: var(--cyan); display: block; }
.hero .lede { font-size: 1.24rem; }
.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--cream);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .45rem;
}

/* Knob visual -------------------------------------------------------------- */
.knob-stage { display: grid; place-items: center; position: relative; min-height: 380px; }
.knob-stage::before {
  content: "";
  position: absolute;
  width: 330px; height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,197,232,.22), transparent 68%);
  filter: blur(8px);
}
.knob {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, #2f7fc4, #10365c 62%, #071626);
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(41,197,232,.35),
    0 40px 70px -26px rgba(0,0,0,.9),
    inset 0 2px 12px rgba(255,255,255,.16);
  animation: knob-float 7s ease-in-out infinite;
}
@keyframes knob-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.knob-bezel {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #050d16;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.05), inset 0 6px 22px rgba(0,0,0,.9);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.knob-screen {
  width: 84%; height: 84%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 38%, rgba(41,197,232,.35), transparent 55%),
    radial-gradient(circle at 74% 62%, rgba(217,78,196,.35), transparent 55%),
    #030a14;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
}
.knob-screen::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px dotted rgba(41,197,232,.5);
}
.knob-vol {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--cyan);
  border: 1px solid rgba(41,197,232,.5);
  border-radius: 999px;
  padding: .18rem .8rem;
  background: rgba(3,10,20,.65);
}
.knob-time { font-size: .66rem; color: var(--muted); margin: .4rem 0 .5rem; }
.knob-play {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: rgba(41,197,232,.16);
  display: grid; place-items: center;
  margin: 0 auto;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(41,197,232,.45);
}
.knob-play svg { width: 24px; height: 24px; margin-left: 3px; }
.knob-track {
  font-size: .82rem;
  color: var(--cream);
  letter-spacing: .08em;
  margin-top: .6rem;
  text-transform: uppercase;
}
.knob-artist { font-size: .7rem; color: var(--cyan); }
.knob-status {
  margin-top: .5rem;
  font-size: .62rem;
  letter-spacing: .16em;
  color: #05121c;
  background: var(--cyan);
  border-radius: 999px;
  padding: .16rem .75rem;
}
.knob-caption {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* Image slots (drop your photos in assets/img/) ---------------------------- */
.shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: block;
  width: 100%;
  margin: 0;               /* <figure> default margin */
}
.shot img { display: block; width: 100%; height: auto; }

/* Cut-out product renders (transparent PNG) float directly on the page — no
   panel, no frame — lit from behind so the knob sits in the dark rather than
   on top of it. */
.shot--float {
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
  isolation: isolate;
}
.shot--float::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 197, 232, .3), rgba(47, 95, 160, .18) 45%, transparent 70%);
  filter: blur(30px);
}
.shot--float img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .65));
}
.shot-empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  gap: .4rem;
  text-align: center;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, rgba(147,164,189,.05) 0 12px, transparent 12px 24px),
    var(--surface);
}
.shot-empty strong { color: var(--cyan); font-weight: 600; letter-spacing: .04em; }
/* Product-card media: one consistent box so the three cards' text blocks line
   up, whatever the source aspect ratio. Screenshots crop; the transparent
   cut-out is contained so it never loses an edge. */
.card-media { aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--contain img { object-fit: contain; }

.phone-frame {
  max-width: 300px;
  margin-inline: auto;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2c45, #070e19);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.phone-frame .shot { border-radius: 26px; }
.phone-frame .shot-empty { aspect-ratio: 9 / 19.5; }

/* Feature list ------------------------------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.feature-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: .62rem;
  transform: rotate(45deg);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(41,197,232,.9);
}
.feature-list strong { color: var(--ink); font-weight: 600; }

/* Spec table --------------------------------------------------------------- */
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th {
  width: 42%;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.specs td { color: var(--ink); }

/* Process steps ------------------------------------------------------------ */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: -.15rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cyan);
  opacity: .55;
}

/* Tool (barcode → QR) ------------------------------------------------------ */
.tool {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
label.field { display: block; margin-bottom: 1.2rem; }
label.field > span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--ink);
}
label.field .hint { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
input[type="text"], input[type="url"], textarea, select {
  width: 100%;
  background: rgba(3, 10, 20, .6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .95rem;
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41,197,232,.16);
}
select { font-family: var(--font-body); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.segmented { display: flex; gap: .4rem; background: rgba(3,10,20,.6); border: 1px solid var(--line); border-radius: 10px; padding: .3rem; }
.segmented button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  padding: .55rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.segmented button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.qr-stage { display: grid; place-items: center; gap: 1rem; }
.qr-canvas-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  line-height: 0;
}
.qr-canvas-wrap canvas { width: 240px; height: 240px; image-rendering: pixelated; display: block; }
.qr-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: center;
}
.qr-error { color: #ff8a8a; font-size: .88rem; text-align: center; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.batch-item { background: #fff; border-radius: 10px; padding: 10px; text-align: center; }
.batch-item canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.batch-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: #10243a;
  margin-top: .45rem;
  word-break: break-all;
  line-height: 1.3;
}

/* Contact ------------------------------------------------------------------ */
.cta {
  border: 1px solid var(--line-str);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(41,197,232,.14), transparent 65%),
    var(--surface);
  text-align: center;
}
.cta h2 { margin-bottom: .6rem; }
.cta .lede { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Contact split (sales / support) ------------------------------------------ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.contact-split h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.contact-split p { font-size: .93rem; margin-bottom: .7rem; }
.contact-split a { font-weight: 600; word-break: break-word; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .tool { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 1.5rem 1.2rem;
    background: rgba(10,18,32,.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2.2rem); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
