:root {
  color-scheme: light;
  --ink: #071326;
  --muted: #556170;
  --line: #dfe7f2;
  --paper: #f7fbff;
  --surface: #ffffff;
  --navy: #101b31;
  --cyan: #20d3e5;
  --blue: #526ff1;
  --green: #37b679;
  --coral: #f57b65;
  --shadow: 0 24px 70px rgba(16, 27, 49, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(223, 231, 242, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  width: 184px;
  flex: 0 0 auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a:hover,
.header-action:hover {
  color: var(--blue);
}

.header-action {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(16, 27, 49, 0.07);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 7vw, 96px) clamp(20px, 6vw, 84px) 42px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.4rem, 10.5vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions,
.download-list,
.pricing-grid,
.feature-grid {
  display: flex;
  gap: 14px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 14px 34px rgba(82, 111, 241, 0.25);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 48px 0 0;
}

.hero-metrics div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-metrics dt {
  font-weight: 900;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 0 12% 9%;
  background:
    linear-gradient(145deg, rgba(32, 211, 229, 0.2), rgba(82, 111, 241, 0.12)),
    #e9f5fb;
  border: 1px solid rgba(223, 231, 242, 0.9);
  border-radius: 26px;
  transform: rotate(-4deg);
  z-index: -2;
}

.hero-mark {
  position: absolute;
  top: 2%;
  right: 2%;
  width: min(38vw, 360px);
  opacity: 0.16;
  z-index: -1;
}

.product-panel {
  width: min(100%, 520px);
  padding: 18px;
  background: var(--navy);
  border-radius: 18px;
  color: white;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.panel-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.panel-top span:nth-child(2) {
  background: #f4c64c;
}

.panel-top span:nth-child(3) {
  background: var(--green);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.status-row p {
  margin: 0;
  color: #a9b5c8;
}

.status-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(55, 182, 121, 0.16);
  color: #91efbf;
  font-size: 0.82rem;
  font-weight: 900;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.camera-grid div {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 211, 229, 0.24), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 9px),
    #1c2a45;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.timeline span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section,
.download-section,
.account-section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 84px);
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.account-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature-card,
.price-card,
.download-item,
.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(16, 27, 49, 0.07);
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-icon,
.plan-name {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card h3,
.price-card h3 {
  margin-top: 18px;
}

.feature-card p,
.price-card p {
  color: var(--muted);
}

.download-section {
  background: #edf7f4;
}

.download-list {
  flex-direction: column;
}

.download-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.download-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.price-card.featured {
  border-color: rgba(32, 211, 229, 0.7);
  background:
    linear-gradient(180deg, rgba(32, 211, 229, 0.08), transparent 42%),
    var(--surface);
}

.price {
  margin: 18px 0;
  color: var(--ink) !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 950;
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--navy);
  color: white;
}

.account-copy .eyebrow {
  color: var(--cyan);
}

.account-copy p:not(.eyebrow) {
  color: #c6d2e3;
}

.account-card {
  padding: 18px;
  color: var(--ink);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f6fb;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.account-form {
  display: none;
  gap: 14px;
}

.account-form.active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(32, 211, 229, 0.28);
  border-color: var(--cyan);
}

.subdomain-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.subdomain-input input {
  border: 0;
  border-radius: 0;
}

.subdomain-input span {
  padding: 0 13px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.subdomain-input:focus-within {
  outline: 3px solid rgba(32, 211, 229, 0.28);
  border-color: var(--cyan);
}

.subdomain-input input:focus {
  outline: 0;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note[data-variant="success"] {
  color: var(--green);
  font-weight: 800;
}

.form-note[data-variant="error"] {
  color: #c84738;
  font-weight: 800;
}

.form-note[data-variant="info"] {
  color: var(--blue);
  font-weight: 800;
}

.machine-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(32, 211, 229, 0.42);
  border-radius: 8px;
  background: #f5fcff;
}

.machine-panel[hidden] {
  display: none;
}

.panel-label {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.machine-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.machine-panel p:not(.panel-label) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-code {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.link-code[data-variant="success"] {
  border: 1px solid rgba(55, 182, 121, 0.45);
  color: var(--green);
}

.link-code[data-variant="error"] {
  border: 1px solid rgba(200, 71, 56, 0.45);
  color: #c84738;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px clamp(20px, 6vw, 84px);
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

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

  .hero-visual {
    min-height: 420px;
  }

  .feature-grid,
  .pricing-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 148px;
  }

  .header-action {
    padding-inline: 13px;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 5.4rem);
  }

  .download-item,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 350px;
  }

  .product-panel {
    padding: 14px;
  }
}
