* { box-sizing: border-box; }
body {
  margin: 0;
  background: #09090b;
  color: #fafafa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: #a1a1aa; text-decoration: none; }
.app-shell { max-width: 1240px; margin: 0 auto; padding: 24px; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.sidebar {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 16px;
}
.nav-title { color: #71717a; font-size: 11px; letter-spacing: .06em; margin: 8px 8px 10px; text-transform: uppercase; }
.nav-link {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: #d4d4d8;
  border: 1px solid transparent;
  margin-bottom: 6px;
}
.nav-link:hover { background: #18181b; border-color: #27272a; }
.nav-link.active { background: #18181b; border-color: #3f3f46; color: #fafafa; }
.nav-link.danger { color: #fda4af; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.brand { font-size: 22px; font-weight: 700; }
.muted { color: #a1a1aa; font-size: 14px; }
.panel {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { color: #a1a1aa; font-size: 12px; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #09090b;
  color: #fafafa;
  padding: 8px 10px;
}
.field { min-width: 220px; flex: 1; }
button, .btn-link {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid #27272a; min-height: 36px;
  padding: 0 12px; background: #18181b; color: #fafafa; font-size: 13px; font-weight: 600;
}
button:hover, .btn-link:hover { background: #27272a; }
.btn-primary { background: #fafafa; color: #09090b; border-color: #fafafa; }
.btn-primary:hover { background: #e4e4e7; }
.btn-danger, .btn-link.danger { background: #3f1d1d; border-color: #7f1d1d; color: #fda4af; }
.btn-danger:hover, .btn-link.danger:hover { background: #5a2323; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #27272a; padding: 10px 8px; font-size: 13px; text-align: left; }
th { color: #a1a1aa; font-weight: 500; }
.msg-ok, .msg-err {
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #27272a; font-size: 13px;
}
.msg-ok { background: #052e1a; color: #86efac; }
.msg-err { background: #3f1111; color: #fda4af; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #fafafa;
  color: #18181b;
  font-size: 14px;
  font-weight: 700;
}
.btn-google:hover { background: #e4e4e7; color: #18181b; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #71717a;
  font-size: 12px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #27272a;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.api-list { margin: 0; padding-left: 18px; color: #d4d4d8; }
.api-list li { margin-bottom: 8px; }
.api-list code {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 4px 8px;
  color: #e4e4e7;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plan-price {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 12px;
}
.plan-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.plan-selected {
  border-color: #fafafa;
  box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.4) inset;
}
.build-progress {
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: #27272a;
  overflow: hidden;
  margin-bottom: 4px;
}
.build-progress-fill {
  height: 100%;
  width: 0;
  background: #3f3f46;
}
.build-progress-fill.running {
  background: #60a5fa;
}
.build-progress-fill.ok {
  background: #22c55e;
}
.build-progress-fill.err {
  background: #ef4444;
}
.usage-steps {
  margin: 0;
  padding-left: 18px;
  color: #d4d4d8;
}
.usage-steps li {
  margin-bottom: 6px;
}
.usage-steps code {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 2px 6px;
  color: #e4e4e7;
}
.btn-download {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  min-width: 94px;
}
.btn-download:hover {
  background: #15803d;
  border-color: #15803d;
}
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.site-body {
  background: #09090b;
  color: #fafafa;
}
.site-nav {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
  backdrop-filter: blur(18px);
}
.site-logo {
  color: #fafafa;
  font-size: 19px;
  font-weight: 800;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.site-links a {
  color: #d4d4d8;
}
.site-links a.active {
  color: #fafafa;
  font-weight: 800;
}
.site-links a:hover {
  color: #fafafa;
}
.site-cta {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #fafafa;
  color: #09090b !important;
  font-weight: 700;
}
.site-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 6vw, 86px) 76px;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/sensorflow-dashboard-preview.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.7;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.98) 0%, rgba(9, 9, 11, 0.82) 42%, rgba(9, 9, 11, 0.48) 100%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.2) 0%, rgba(9, 9, 11, 0.78) 100%);
}
.hero-content {
  position: relative;
  max-width: 760px;
}
.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #e4e4e7;
  font-size: 20px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-actions .btn-primary,
.hero-actions .btn-link {
  min-height: 44px;
  padding: 0 18px;
}
.site-band {
  padding: 76px clamp(18px, 6vw, 86px);
  border-top: 1px solid rgba(250, 250, 250, 0.08);
}
.site-main {
  padding-top: 74px;
}
.site-subpage {
  min-height: 100vh;
}
.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}
.section-head h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}
.section-head h2,
.feature-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-head p,
.feature-copy p {
  margin: 0;
  color: #c7c7cf;
  font-size: 17px;
  line-height: 1.7;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.compare-card,
.price-card {
  min-height: 176px;
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #111113;
  padding: 20px;
}
.compare-card span,
.price-card span {
  color: #a1a1aa;
  font-size: 14px;
}
.compare-card strong,
.price-card strong {
  display: block;
  margin: 14px 0 10px;
  color: #fafafa;
  font-size: 28px;
  line-height: 1.1;
}
.compare-card small,
.price-card small {
  display: block;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.55;
}
.compare-card.active,
.price-card.featured {
  border-color: #86efac;
  background: #102018;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.value-grid article {
  min-height: 210px;
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #111113;
  padding: 22px;
}
.value-grid b,
.value-grid span {
  display: block;
}
.value-grid b {
  margin-bottom: 12px;
  color: #fafafa;
  font-size: 20px;
  line-height: 1.25;
}
.value-grid span {
  color: #b8b8c1;
  line-height: 1.7;
}
.promo-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-top: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(134, 239, 172, 0.45);
  border-radius: 8px;
  background: rgba(16, 32, 24, 0.9);
  color: #dcfce7;
}
.promo-strip b {
  color: #86efac;
}
.flow-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #0c0c0e;
}
.flow-step {
  min-height: 180px;
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #151517;
  padding: 20px;
}
.flow-step span,
.deep-grid article span {
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
}
.flow-step b,
.flow-step small {
  display: block;
}
.flow-step b {
  margin: 34px 0 8px;
  font-size: 24px;
}
.flow-step small {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.5;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #102018;
}
.cta-band h2 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}
.cta-band p {
  max-width: 720px;
  margin: 0;
  color: #c7c7cf;
  font-size: 17px;
  line-height: 1.7;
}
.deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.deep-grid article {
  min-height: 250px;
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #111113;
  padding: 22px;
}
.deep-grid b {
  display: block;
  margin: 26px 0 10px;
  color: #fafafa;
  font-size: 24px;
  line-height: 1.2;
}
.deep-grid p {
  margin: 0;
  color: #b8b8c1;
  line-height: 1.7;
}
.matrix {
  border: 1px solid #2f2f36;
  border-radius: 8px;
  overflow: hidden;
}
.matrix-row {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  border-bottom: 1px solid #2f2f36;
}
.matrix-row:last-child {
  border-bottom: 0;
}
.matrix-row > * {
  padding: 18px;
  border-right: 1px solid #2f2f36;
  color: #c7c7cf;
  line-height: 1.65;
}
.matrix-row > *:last-child {
  border-right: 0;
}
.matrix-row.head {
  background: #18181b;
}
.matrix-row.head b {
  color: #fafafa;
}
.matrix-row span:first-child {
  color: #fafafa;
  font-weight: 800;
}
.note-panel {
  margin-top: 16px;
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #111113;
  padding: 20px;
}
.note-panel b {
  display: block;
  margin-bottom: 8px;
  color: #fafafa;
}
.note-panel p {
  margin: 0;
  color: #b8b8c1;
  line-height: 1.7;
}
.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
  background: #0c0c0e;
}
.feature-list {
  display: grid;
  gap: 12px;
}
.feature-list div {
  border: 1px solid #2f2f36;
  border-radius: 8px;
  background: #151517;
  padding: 18px;
}
.feature-list b,
.feature-list span {
  display: block;
}
.feature-list b {
  margin-bottom: 8px;
  color: #fafafa;
  font-size: 17px;
}
.feature-list span {
  color: #b8b8c1;
  line-height: 1.6;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
}
.price-card .btn-link,
.price-card .btn-primary {
  margin-top: 20px;
  width: 100%;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 30px clamp(18px, 6vw, 86px);
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  color: #a1a1aa;
}
@media (max-width: 920px) {
  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .site-links {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .site-hero {
    min-height: 86vh;
    padding-top: 70px;
  }
  .hero-media {
    background-position: 60% center;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.72) 52%, rgba(9, 9, 11, 0.92) 100%);
  }
  .hero-copy {
    font-size: 17px;
  }
  .compare-grid,
  .feature-band,
  .price-grid,
  .value-grid,
  .flow-band,
  .deep-grid {
    grid-template-columns: 1fr;
  }
  .site-main {
    padding-top: 0;
  }
  .matrix-row {
    grid-template-columns: 1fr;
  }
  .matrix-row > * {
    border-right: 0;
    border-bottom: 1px solid #2f2f36;
  }
  .matrix-row > *:last-child {
    border-bottom: 0;
  }
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
}
