* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0e;
  color: #f0f0f5;
  line-height: 1.55;
}
a { color: #ff6b6b; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 48px; }
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 1100;
}
.site-masthead {
  border-bottom: 1px solid #252530;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(8px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.03em; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand span { color: #e53935; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #14141c;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-chrome.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-chrome.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-chrome.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }
.nav { font-size: 0.92rem; }
.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.nav a { color: #ccc; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.nav-active { color: #fff; font-weight: 700; }
.nav a.btn-primary:hover { color: #fff; }
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.nav-actions form { margin: 0; display: block; }
.nav-btn { padding: 8px 14px !important; font-size: 0.85rem !important; }
body.nav-menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1202;
  }
  .site-masthead {
    position: relative;
    z-index: 1202;
  }
  body.nav-menu-open .site-chrome {
    z-index: 1300;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1290;
  }
  body.nav-menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-chrome .nav {
    position: fixed;
    inset: 0;
    z-index: 1310;
    display: flex;
    flex-direction: column;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
  }
  body.nav-menu-open .site-chrome .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px 24px 32px;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .nav-panel > a,
  .nav-panel .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    border-bottom: 1px solid #252530;
    line-height: 1.3;
  }
  .nav-panel > a.nav-active {
    color: #fff;
    border-bottom-color: #e53935;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid #252530;
  }
  .nav-actions .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    text-align: left;
    border-bottom: 1px solid #252530;
  }
  .nav-actions a.nav-link-item:hover { color: #fff; text-decoration: none; }
  .nav-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
    border-radius: 10px;
  }
}

@media (min-width: 900px) {
  .site-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #252530;
  }
  .site-masthead {
    flex: 0 0 auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }
  .mast-inner {
    padding: 14px 0;
  }
  .mast-inner.wrap {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    pointer-events: auto;
    overflow: visible;
  }
  .nav-panel {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px 20px;
  }
  .nav-actions {
    flex-wrap: nowrap;
    gap: 8px 12px;
  }
  .nav-backdrop { display: none !important; }
}
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: #e53935; color: #fff; }
.btn-primary:hover { background: #c62828; text-decoration: none; color: #fff; }
.btn-secondary { background: #252530; color: #fff; }
.btn-secondary:hover { background: #333; text-decoration: none; color: #fff; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.notice { background: #1b3d2a; color: #a5f0b8; }
.flash.alert { background: #3d1b1b; color: #ffb4b4; }
.hero-split {
  padding: 40px 0 48px;
  text-align: left;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid #3a3a48;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
}
.hero-split h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  margin: 0 0 18px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-accent { color: #e53935; }
.hero-split .tagline {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: #b8b8c4;
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hero-split .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.hero-features {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 560px;
}
.hero-feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 20px;
  box-sizing: border-box;
}
.hero-feature-item:not(.hero-feature-item--last)::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.08) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #e53935;
  font-size: 1.4rem;
  line-height: 1;
}
.hero-feature-icon i {
  display: block;
}
.hero-feature-label {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.4;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero-devices-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

@media (max-width: 899px) {
  .hero-split { padding: 28px 0 36px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content { max-width: none; }
  .hero-features {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-feature-item {
    padding: 16px 18px;
  }
  .hero-feature-item:not(.hero-feature-item--last)::after {
    display: none;
  }
  .hero-feature-item:nth-child(odd):not(:nth-child(3))::after {
    display: block;
  }
  .hero-feature-item:nth-child(1)::before,
  .hero-feature-item:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 12%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0.08) 88%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
  }
  .hero-visual { min-height: 200px; }
  .hero-devices-img { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-split .hero-cta { flex-direction: column; }
  .hero-split .hero-cta .btn { width: 100%; text-align: center; }
}
.section { padding: 40px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 20px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 22px; }
.step--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step--visual .step-num,
.step--visual h3,
.step--visual p { padding-left: 22px; padding-right: 22px; }
.step--visual .step-num { padding-top: 18px; margin: 0; }
.step--visual h3 { margin: 8px 0 0; padding-bottom: 0; }
.step--visual p { margin: 8px 0 0; padding-bottom: 22px; color: #aaa; font-size: 0.92rem; }
.step-visual {
  width: 100%;
  background: #0a0a0e;
  border-bottom: 1px solid #2a2a36;
  line-height: 0;
}
.step-visual-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.step-num { color: #e53935; font-weight: 800; font-size: 0.85rem; }
.plans-teaser { text-align: center; }
.plans-teaser-lead {
  color: #aaa;
  max-width: 520px;
  margin: 0 auto 28px;
}
.plans-teaser-visual {
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 0;
}
.plans-teaser-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.plan-card { background: #14141c; border: 1px solid #2a2a36; border-radius: 14px; padding: 24px; }
.plan-card.featured { border-color: #e53935; }
.plan-card h3 { margin: 0 0 8px; }
.plan-price { font-size: 1.8rem; font-weight: 800; margin: 12px 0; }
.plan-card ul { padding-left: 18px; color: #bbb; margin: 0 0 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card { background: #14141c; border-radius: 12px; padding: 20px; border: 1px solid #2a2a36; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.site-footer { border-top: 1px solid #252530; padding: 32px 0; margin-top: 40px; color: #888; font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid #2a2a36; text-align: left; }
.compare-table th { color: #aaa; font-weight: 600; }
.card { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 8px; border-bottom: 1px solid #2a2a36; text-align: left; }
input, select { width: 100%; padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; border: 1px solid #333; background: #0a0a0e; color: #fff; }
label { display: block; margin-bottom: 4px; font-size: 0.88rem; color: #999; }
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 48px 20px 64px;
  text-align: center;
}
.auth-page h1 { margin: 0 0 8px; }
.auth-page .auth-lead { color: #aaa; margin: 0 0 24px; max-width: 420px; }
.auth-page .card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  text-align: left;
}
.auth-page .card-wide { max-width: 480px; }
.auth-page .auth-footer { margin-top: 16px; font-size: 0.92rem; color: #aaa; }
