:root {
  --bg: #f5f6ef;
  --bg-accent: linear-gradient(135deg, #edf6f2 0%, #f6f3e8 48%, #e8eef6 100%);
  --surface: rgba(255, 255, 250, 0.84);
  --surface-strong: #fffefa;
  --surface-dark: #16231f;
  --text: #14201d;
  --muted: #5b6862;
  --line: rgba(20, 32, 29, 0.12);
  --primary: #0d766e;
  --primary-strong: #095c55;
  --success: #1d6f58;
  --warning: #986a10;
  --accent: #c84f2b;
  --shadow: 0 18px 60px rgba(17, 42, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg-accent);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input,
a {
  font: inherit;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 auto 24px;
  max-width: 1240px;
}

.eyebrow,
.panel-label,
.hero-kicker,
.firmware-tag {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#page-title,
.hero-panel h2,
.panel-header h2,
.firmware-card h3,
.requirements-card h3,
.security-card h3,
.capability-card h3 {
  font-family: "Fraunces", serif;
}

#page-title {
  margin: 6px 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button,
.ghost-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.lang-switch button {
  min-width: 52px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
}

.lang-switch button.active {
  background: var(--surface-dark);
  color: #fff7ef;
}

.ghost-button {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.primary-button {
  padding: 14px 18px;
  background: var(--primary);
  color: #fffaf4;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(13, 118, 110, 0.2);
}

.ghost-button:hover,
.primary-button:hover,
.lang-switch button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--primary-strong);
}

.layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.hero-panel,
.auth-panel,
.dashboard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-panel h2 {
  margin: 10px 0 16px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
  max-width: 10ch;
}

.hero-copy {
  max-width: 50ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.capability-grid {
  display: grid;
  gap: 16px;
}

.capability-card,
.demo-card,
.requirements-card,
.security-card,
.firmware-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(53, 38, 26, 0.08);
  border-radius: 8px;
}

.capability-card {
  padding: 20px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 118, 110, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.capability-card h3 {
  margin: 16px 0 8px;
  font-size: 1.35rem;
}

.capability-card p,
.panel-copy,
.demo-copy,
.firmware-copy,
.security-card p,
#status-strip {
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel,
.dashboard {
  padding: 32px;
}

.panel-header h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(53, 38, 26, 0.14);
  border-radius: 8px;
  color: var(--text);
}

.login-form input:focus {
  outline: 2px solid rgba(13, 118, 110, 0.2);
  border-color: rgba(13, 118, 110, 0.4);
}

.form-error {
  margin: 0;
  color: #b02921;
  font-weight: 700;
}

.demo-card,
.requirements-card,
.security-card {
  margin-top: 22px;
  padding: 22px;
}

.demo-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.demo-creds {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.demo-creds div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(53, 38, 26, 0.08);
}

.demo-creds dt {
  font-weight: 700;
}

.demo-creds dd {
  margin: 0;
}

code {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(32, 24, 17, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
}

.status-strip {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(29, 111, 88, 0.1);
  border: 1px solid rgba(29, 111, 88, 0.18);
  border-radius: 8px;
}

.status-strip.warning {
  background: rgba(127, 77, 0, 0.1);
  border-color: rgba(127, 77, 0, 0.2);
  color: var(--warning);
}

.requirements-card ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.firmware-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.firmware-card {
  padding: 24px;
}

.firmware-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.firmware-card h3 {
  margin: 10px 0 8px;
  font-size: 1.6rem;
}

.firmware-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(52, 38, 26, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.artifact-list {
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted);
}

.artifact-list li {
  margin: 8px 0;
}

.firmware-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.product-page {
  background: var(--bg);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-dark);
  color: #fff;
}

.product-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-nav a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.product-nav a:hover {
  color: var(--text);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 44px 24px 56px;
}

.hero-content h1,
.section-heading h2 {
  font-family: "Fraunces", serif;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 10.5ch;
  margin: 14px 0 20px;
  font-size: clamp(3.4rem, 4.4rem, 4.4rem);
  line-height: 0.96;
}

.hero-content p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.device-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.78fr) 150px minmax(310px, 1.22fr);
  align-items: center;
  gap: 26px;
  min-height: 430px;
  padding: 34px;
  background:
    linear-gradient(rgba(20, 32, 29, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 29, 0.06) 1px, transparent 1px),
    #eef3ee;
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(20, 32, 29, 0.18);
}

.phone-mock,
.screen-mock,
.dongle-body {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(17, 42, 39, 0.12);
}

.phone-mock {
  justify-self: center;
  width: 176px;
  min-height: 344px;
  padding: 12px;
  border-radius: 34px;
  background: #16231f;
}

.phone-bar {
  width: 54px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #52615c;
}

.phone-screen {
  min-height: 276px;
  padding: 24px 18px;
  border-radius: 24px;
  background: #f8fbf6;
}

.phone-mock::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: var(--accent);
}

.mock-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dictation-line,
.screen-line,
.cursor-line {
  height: 14px;
  margin: 14px 0;
  border-radius: 999px;
  background: #cbd8d2;
}

.dictation-line.active {
  width: 92%;
  background: var(--primary);
}

.dictation-line {
  width: 76%;
}

.dictation-line.short {
  width: 54%;
}

.ble-wave {
  position: relative;
  justify-self: center;
  width: 150px;
  height: 180px;
}

.wave,
.wave-dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.wave {
  border: 4px solid var(--accent);
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 999px 999px 0;
}

.wave-a {
  width: 46px;
  height: 74px;
}

.wave-b {
  width: 88px;
  height: 118px;
  opacity: 0.72;
}

.wave-c {
  width: 128px;
  height: 162px;
  opacity: 0.42;
}

.wave-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.pc-station {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 330px);
  padding: 0 88px 24px 0;
  perspective: 900px;
}

.screen-mock {
  position: relative;
  min-height: 178px;
  padding: 20px;
  border: 9px solid #16231f;
  border-bottom-width: 12px;
  border-radius: 10px 10px 4px 4px;
  background: #f8fbf6;
  transform: rotateX(9deg);
  transform-origin: bottom center;
}

.laptop-base {
  position: relative;
  width: 108%;
  height: 24px;
  margin: -4px 0 0 -4%;
  border-radius: 0 0 18px 18px;
  background: #16231f;
  transform: rotateX(62deg);
  transform-origin: top center;
  z-index: 2;
}

.laptop-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: #52615c;
}

.usb-port {
  position: absolute;
  right: 74px;
  bottom: 39px;
  width: 10px;
  height: 20px;
  border-radius: 3px;
  background: #0f1916;
  z-index: 4;
}

.dongle-mock {
  position: absolute;
  right: -16px;
  bottom: 38px;
  display: flex;
  align-items: center;
  transform: none;
  transform-origin: left center;
  z-index: 3;
}

.usb-plug {
  width: 24px;
  height: 18px;
  background: #b8c4be;
  border: 1px solid rgba(20, 32, 29, 0.18);
  border-radius: 0;
  border-right: 0;
  border-left: 0;
}

.dongle-body {
  display: grid;
  align-content: center;
  width: 76px;
  height: 36px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 0 8px 8px 0;
}

.dongle-body span,
.dongle-body strong {
  display: block;
  color: var(--muted);
  line-height: 1;
  text-transform: uppercase;
}

.dongle-body span {
  font-size: 0.58rem;
  font-weight: 800;
}

.dongle-body strong {
  margin-top: 3px;
  color: var(--text);
  font-family: "Fraunces", serif;
  font-size: 0.82rem;
}

.screen-line {
  width: 52%;
}

.screen-line.wide {
  width: 76%;
  background: var(--primary);
}

.cursor-line {
  width: 34%;
  background: var(--accent);
}

.product-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
}

.feature-grid,
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.hardware-grid article {
  min-height: 190px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card span {
  color: var(--primary);
  font-weight: 900;
}

.feature-card h3,
.hardware-grid h3 {
  margin: 18px 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.feature-card p,
.hardware-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.hardware-band {
  padding-bottom: 88px;
}

.hardware-action {
  align-self: end;
  min-height: 190px;
  padding: 24px;
}

.text-link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-panel h2 {
    max-width: none;
  }

  .product-hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .feature-grid,
  .hardware-grid {
    grid-template-columns: 1fr;
  }

  .hardware-action {
    min-height: 72px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px;
  }

  .topbar,
  .firmware-head {
    flex-direction: column;
  }

  .hero-panel,
  .auth-panel,
  .dashboard {
    padding: 24px;
  }

  .firmware-grid {
    grid-template-columns: 1fr;
  }

  .demo-creds div {
    flex-direction: column;
  }

  .product-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .product-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .product-nav a {
    font-size: 0.92rem;
  }

  .product-hero,
  .product-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content h1 {
    max-width: 11ch;
    font-size: 3rem;
  }

  .device-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding: 18px 18px 72px;
  }

  .product-icon {
    position: static;
    width: 58px;
    height: 58px;
  }

  .ble-wave {
    width: 180px;
    height: 70px;
    transform: rotate(90deg);
  }

  .phone-mock {
    width: 156px;
    min-height: 308px;
  }

  .phone-mock::after {
    width: 10px;
    height: 10px;
    margin-top: 8px;
  }

  .phone-screen {
    min-height: 240px;
  }

  .pc-station {
    width: 100%;
    padding-right: 76px;
  }

  .screen-mock {
    min-height: 150px;
    padding: 16px;
  }

  .laptop-base {
    width: 108%;
    height: 24px;
    margin-left: -4%;
  }

  .dongle-mock {
    right: -14px;
    bottom: 34px;
  }

  .usb-port {
    right: 68px;
    bottom: 35px;
  }

  .dongle-body {
    width: 66px;
    height: 34px;
    padding: 6px 8px;
  }

  .dongle-body strong {
    font-size: 0.74rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }
}
