/* KnobOne — knobone.com */

:root {
  --bg: #E9EAEB;
  --frame: #F2F2F3;
  --surface: #FFFFFF;
  --ink: #161616;
  --ink-2: #444444;
  --muted: #8A8A8A;
  --btn: #191919;
  --divider: #DCDCDE;
  --shadow: 0 8px 30px rgba(0, 0, 0, .05);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .08);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1440px;
  --pad: clamp(20px, 4.2vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-dark { background: var(--btn); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.btn-lg { height: 68px; padding: 0 34px; font-size: 18px; }
.arrow { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero frame ---------- */
.stage { padding: clamp(0px, 2.3vw, 34px); min-height: 100vh; min-height: 100svh; display: flex; }
.frame {
  position: relative;
  width: 100%; max-width: 1600px; margin: 0 auto;
  background: var(--frame);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0 var(--pad);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
/* soft geometric backdrop shapes, as in the reference */
.frame::before, .frame::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.frame::before {
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  right: -14%; top: -28%;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0));
}
.frame::after {
  width: 48vw; height: 48vw; max-width: 700px; max-height: 700px;
  left: -12%; bottom: -30%;
  background: radial-gradient(closest-side, rgba(255,255,255,.5), rgba(255,255,255,0));
}

/* ---------- Nav ---------- */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 124px; position: relative; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 28px; letter-spacing: -.04em; }
.brand img { width: 44px; height: auto; }
.brand-sm { font-size: 20px; gap: 10px; }
.brand-sm img { width: 26px; }
.nav-links { display: flex; gap: clamp(28px, 4.5vw, 68px); font-size: 18px; }
.nav-links a { position: relative; color: #555; padding: 6px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active { font-weight: 500; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 42px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transform: translateX(-50%) scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a.is-active::after, .nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-links-contact { display: none; }
.nav-cta { justify-self: end; height: 50px; padding: 0 34px; font-size: 17px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 40fr) minmax(0, 23fr);
  align-items: center;
  gap: 0;
  padding: 12px 0 40px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  white-space: nowrap;
}
.lede { margin-top: 36px; max-width: 390px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.58; color: var(--ink-2); }
.actions { margin-top: 44px; display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; margin: 0 1% 0 -8%; }
.halo {
  position: absolute; inset: 50% auto auto 50%;
  width: 80%; aspect-ratio: 1; transform: translate(-48%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FBFBFB 0%, #F4F4F5 55%, rgba(242,242,243,0) 71%);
}
.hero-visual img {
  position: relative; width: 106%; max-width: 620px;
  filter: drop-shadow(0 30px 28px rgba(0,0,0,.12)) drop-shadow(0 6px 8px rgba(0,0,0,.06));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-features { list-style: none; margin: 0; padding: 0 0 0 clamp(0px, 1vw, 16px); }
.hero-features li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 34px 0;
  border-bottom: 1px solid var(--divider);
}
.hero-features li:first-child { padding-top: 0; }
.hero-features li:last-child { border-bottom: 0; padding-bottom: 0; }
.ico {
  flex: none; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: #EBEBEC; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.ico svg { width: 30px; height: 30px; }
.hero-features li:hover .ico { background: var(--btn); color: #fff; transform: rotate(-8deg); }
.hero-features h3 { font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; letter-spacing: -.035em; margin: 10px 0 10px; white-space: nowrap; }
.hero-features p { font-size: 15px; color: #6E6E6E; line-height: 1.55; }

/* ---------- Hero footer ---------- */
.hero-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-top: 1px solid var(--divider);
  padding: 40px 0 42px;
}
.hero-foot > * { position: relative; }
.hero-foot p {
  max-width: 560px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink-2);
  padding: 0 clamp(24px, 5vw, 120px);
  border-left: 1px solid var(--divider); border-right: 1px solid var(--divider);
}
.scroll-hint { white-space: nowrap; display: inline-flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); justify-self: start; }
.mouse { width: 34px; height: 60px; border: 1.5px solid #777; border-radius: 17px; display: grid; justify-items: center; padding-top: 10px; }
.mouse span { width: 3px; height: 9px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.discover { justify-self: end; white-space: nowrap; display: inline-flex; align-items: center; gap: 20px; font-size: 16px; color: #333; }
.circle-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.circle-btn svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.discover:hover .circle-btn { background: var(--btn); color: #fff; }
.discover:hover .circle-btn svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 80px); }
.eyebrow {
  display: inline-block; margin-bottom: 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section h2 { font-size: clamp(36px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.05em; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Product split */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #ddd; }
.photo img { width: 100%; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.split-copy > p { margin-top: 26px; font-size: 18px; color: var(--ink-2); max-width: 480px; }
.specs { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--divider); }
.specs div { padding: 22px 0; border-bottom: 1px solid var(--divider); }
.specs div:nth-child(odd) { padding-right: 20px; }
.specs dt { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.specs dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }

/* Apps grid */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app {
  background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.08); }
.app .ico { width: 56px; height: 56px; background: #F2F2F3; }
.app .ico svg { width: 26px; height: 26px; }
.app:hover .ico { background: var(--btn); color: #fff; }
.app h3 { margin: 26px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.app p { font-size: 15px; color: #6E6E6E; line-height: 1.5; }

/* Highlights (dark) */
.section-dark { background: #141414; color: #fff; }
.section-dark .eyebrow { color: rgba(255,255,255,.5); }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12); }
.hl { padding: 40px 36px 44px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hl:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid rgba(255,255,255,.12); }
.num { font-size: 13px; color: rgba(255,255,255,.4); letter-spacing: .1em; }
.hl h3 { margin: 30px 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.hl p { color: rgba(255,255,255,.6); font-size: 16px; }
.hl code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: #fff; }

/* Small pill label and muted note (used on the Updates page) */
.tag { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: #F2F2F3; }
.muted { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* Contact */
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--frame); border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(32px, 3.6vw, 52px); }
.contact p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Footer */
.site-foot { padding: 0 0 48px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--divider); padding-top: 36px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; color: #555; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot p { font-size: 14px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hero { grid-template-columns: minmax(0, 38fr) minmax(0, 36fr) minmax(0, 26fr); }
  .hero-features li { gap: 16px; padding: 26px 0; }
  .ico { width: 58px; height: 58px; }
  .ico svg { width: 26px; height: 26px; }
  .hero-features p { font-size: 14px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .hero-features {
    grid-column: 1 / -1; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .hero-features li, .hero-features li:first-child, .hero-features li:last-child { padding: 28px 0 0; border: 0; border-top: 1px solid var(--divider); }
  .hero h1 { white-space: normal; }
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; height: 88px; }
  .nav-cta { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 7px;
    width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--btn);
  }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 10px 24px; font-size: 20px;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--divider); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-links-contact { display: block; }

  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-visual { margin: 12px auto 20px; max-width: 540px; width: 100%; }
  .hero-visual img { width: 100%; }
  .hero-features { grid-template-columns: 1fr; gap: 0; }
  .hero-features li, .hero-features li:first-child { padding: 22px 0; border-top: 0; border-bottom: 1px solid var(--divider); }
  .hero-features li:last-child { border-bottom: 0; }

  .hero-foot { grid-template-columns: 1fr; gap: 24px; justify-items: start; padding: 32px 0 36px; }
  .hero-foot p { text-align: left; padding: 0; border: 0; order: -1; }
  .scroll-hint { display: none; }
  .discover { justify-self: start; }

  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights { grid-template-columns: 1fr 1fr; }
  .hl, .hl:not(:nth-child(3n+1)) { padding: 32px 24px 36px 0; border-left: 0; }
  .hl:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 480px) {
  .stage { padding: 0; }
  .frame { border-radius: 0; padding: 0 16px; }
  .brand { font-size: 24px; gap: 10px; }
  .brand img { width: 36px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 52px); }
  .lede { margin-top: 24px; }
  .actions { margin-top: 32px; gap: 18px; }
  .btn-lg { height: 60px; padding: 0 26px; font-size: 17px; }
  .wrap { padding: 0 16px; }
  .apps { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .hl, .hl:not(:nth-child(3n+1)), .hl:nth-child(even) { padding: 28px 0 32px; border-left: 0; }
  .specs { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; justify-content: space-between; font-size: 16px; }
}

/* ---------- Highlights link ---------- */
.hl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 500; color: #fff; }
.hl-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.hl-link:hover svg { transform: translateX(4px); }

/* ---------- Updates page ---------- */
.stage-auto { min-height: 0; }
.upd-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(24px, 5vw, 72px) 0 clamp(40px, 6vw, 88px);
}
.upd-hero h1 { font-size: clamp(42px, 5vw, 76px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.upd-hero .lede { max-width: 440px; }

.latest {
  background: var(--surface); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 3.6vw, 48px);
}
.latest-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.latest-date { font-size: 14px; color: var(--muted); }
.latest-version { margin-top: 26px; font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.latest-notes { margin-top: 18px; color: var(--ink-2); font-size: 16px; white-space: pre-line; }
.downloads { margin-top: 30px; display: grid; gap: 10px; }

.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 16px 16px 24px; border-radius: 999px;
  background: #F2F2F3; color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.dl:hover { transform: translateY(-2px); background: #E8E8EA; }
.dl-primary { background: var(--btn); color: #fff; }
.dl-primary:hover { background: #000; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.dl-text { display: grid; line-height: 1.3; min-width: 0; }
.dl-label { font-weight: 600; font-size: 16px; }
.dl-meta { font-size: 13px; opacity: .6; }
.dl-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ink);
}
.dl-primary .dl-icon { background: rgba(255,255,255,.12); color: #fff; }
.dl-icon svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.dl:hover .dl-icon svg { transform: translateY(2px); }

.tag-sm { margin-left: 10px; padding: 4px 10px; font-size: 12px; vertical-align: middle; letter-spacing: 0; }

.skeleton {
  display: block; height: .9em; width: 100%; margin: .35em 0; border-radius: 6px;
  background: linear-gradient(90deg, #EDEDEE 25%, #F6F6F7 50%, #EDEDEE 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.latest-version .skeleton { height: .85em; }
@keyframes shimmer { to { background-position: -200% 0; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 32px 30px 36px; box-shadow: var(--shadow); }
.step .num { color: var(--muted); }
.step h3 { margin: 26px 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.step p { font-size: 15px; color: #5E5E5E; }
.step code, .latest code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.step b { font-weight: 600; color: var(--ink); }

.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.history-item {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr); gap: 16px 40px;
  padding: 30px 0; border-bottom: 1px solid var(--divider);
}
.history-head { display: grid; align-content: start; gap: 4px; }
.history-version { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.history-date { font-size: 14px; color: var(--muted); }
.history-body p { color: var(--ink-2); white-space: pre-line; }
.history-files { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--divider); background: var(--surface); font-size: 14px; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.file-link:hover { background: var(--btn); border-color: var(--btn); color: #fff; }

@media (max-width: 960px) {
  .upd-hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .history-item { grid-template-columns: 1fr; gap: 12px; }
  .dl { padding-left: 20px; }
}
