html {
  scroll-behavior: smooth;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: transform 160ms ease, border-color 160ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: var(--ring-border);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: transform 160ms ease, border-color 160ms ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--ring-border);
}

.landing-header {
  padding: 24px 24px 0;
}

.landing-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  background: #0b0b0b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.landing-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-top: 0;
  border-radius: 14px;
  border: 1px solid #2f2f2f;
  background: #141414;
  color: #f5f5f5;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  flex: 0 0 auto;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.landing-toggle:hover {
  transform: translateY(-1px);
  background: #1c1c1c;
  border-color: #3a3a3a;
}

.landing-toggle:active {
  transform: translateY(0);
}

.landing-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.landing-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #f5f5f5;
  font-size: 14px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sidebar-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.landing-links,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: #1a1a1a;
}

.nav-link.is-active {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #ffffff;
}

.nav-action.primary {
  background: #ffffff;
  color: #0b0b0b;
}

.nav-action.primary:hover {
  background: #ffffff;
  color: #0b0b0b;
}

[data-theme="dark"] .landing-nav {
  border-color: #d4d4d4;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .landing-toggle {
  border-color: #d4d4d4;
  background: #f3f4f6;
  color: #0b0b0b;
}

[data-theme="dark"] .landing-toggle:hover {
  background: #e5e7eb;
  border-color: #cbd5e1;
}

[data-theme="dark"] .landing-brand {
  color: #0b0b0b;
}

[data-theme="dark"] .nav-link {
  color: #525252;
}

[data-theme="dark"] .nav-link:hover {
  color: #0b0b0b;
  background: #f3f4f6;
}

[data-theme="dark"] .nav-link.is-active {
  color: #0b0b0b;
  box-shadow: inset 0 -2px 0 #0b0b0b;
}

[data-theme="dark"] .nav-action.primary,
[data-theme="dark"] .nav-action.primary:hover {
  background: #0b0b0b;
  color: #ffffff;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.landing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  margin: 6px 0 12px;
}

.hero-subtitle {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.24), transparent 50%);
  opacity: 0.8;
}

.hero-screen {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-screen-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-screen-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sidebar-active);
}

.hero-screen-body {
  display: grid;
  gap: 10px;
}

.hero-product {
  width: min(100%, 860px);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1366 / 768;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.hero-card {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--sidebar-hover);
}

.hero-card.wide {
  height: 70px;
}

.price-section,
.reseller-section,
.support-section {
  margin-top: 48px;
}

.support-search-wrap {
  margin-top: 12px;
  margin-bottom: 14px;
}

.support-table-wrap {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: auto;
}

.support-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.support-table th,
.support-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  box-shadow: inset -1px 0 0 var(--stroke);
}

.support-table th:last-child,
.support-table td:last-child {
  box-shadow: none;
}

.support-table th {
  background: #0b0b0b;
  color: #f5f5f5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .support-table th {
  background: #ffffff;
  color: #0b0b0b;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.support-badge-platform {
  background: rgba(00, 00, 52, 0.91);
  color: #fafafa;
}

.support-badge-brand {
  background: #7f1d1d;
  color: #fafafa;
}

.support-badge-model {
  background: #182377;
  color: #fafafa;
}

.support-badge-function {
  background: #296516;
  color: #fafafa;
  font-size: 10px;
  line-height: 1.2;
}

[data-theme="dark"] .support-badge-platform {
  background: rgba(34, 255, 140, 0.2);
  color: #86ffbf;
  box-shadow: 0 0 10px rgba(34, 255, 140, 0.35);
}

[data-theme="dark"] .support-badge-brand {
  background: rgba(64, 169, 255, 0.2);
  color: #9dd2ff;
  box-shadow: 0 0 10px rgba(64, 169, 255, 0.35);
}

[data-theme="dark"] .support-badge-model {
  background: rgba(255, 76, 76, 0.2);
  color: #ffb0b0;
  box-shadow: 0 0 10px rgba(255, 76, 76, 0.35);
}

[data-theme="dark"] .support-badge-function {
  background: rgba(255, 214, 64, 0.2);
  color: #ffe89a;
  box-shadow: 0 0 10px rgba(255, 214, 64, 0.35);
}

.support-table tbody tr:last-child td {
  border-bottom: 0;
}

.support-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.support-page-btn {
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.support-page-btn.is-active {
  border-color: var(--ring-border);
  background: var(--sidebar-active);
}

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--ink);
}

.price-duration {
  font-size: 13px;
  color: var(--muted);
}

.price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.price-desc {
  color: var(--muted);
  font-size: 13px;
}

.reseller-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  min-width: 0;
}

.reseller-info {
  min-width: 0;
}

.reseller-avatar {
  width: 54px;
  height: 54px;
  border-radius: 30px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar-hover);
  color: var(--muted);
}

.reseller-avatar svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.reseller-name {
  font-weight: 700;
  font-size: 16px;
}

.reseller-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.reseller-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  background: var(--sidebar-hover);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-pill:hover {
  transform: translateY(-1px);
  background: var(--sidebar-active);
  border-color: var(--ring-border);
}

.icon-pill:active {
  transform: translateY(0);
}

.icon-pill svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex: 0 0 auto;
}

.social-float {
  position: fixed;
  right: 18px;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.landing-footer {
  margin: 40px 24px 24px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  background: #0b0b0b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-footer-copy {
  margin: 0;
  color: #f5f5f5;
  font-size: 12px;
}

.landing-footer-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-footer-links a {
  text-decoration: none;
  color: #f5f5f5;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #141414;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.landing-footer-links a:hover {
  transform: translateY(-1px);
  border-color: #3a3a3a;
  background: #1c1c1c;
}

[data-theme="dark"] .landing-footer-inner {
  border-color: #d4d4d4;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .landing-footer-copy {
  color: #525252;
}

[data-theme="dark"] .landing-footer-links a {
  color: #0b0b0b;
  border-color: #d4d4d4;
  background: #f3f4f6;
}

[data-theme="dark"] .landing-footer-links a:hover {
  border-color: #cbd5e1;
  background: #e5e7eb;
}

@media (max-width: 900px) {
  .landing-nav {
    flex-direction: row;
    align-items: center;
  }

  .landing-toggle {
    display: inline-flex;
  }

  .landing-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 0 0 auto;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #2b2b2b;
  }

  [data-theme="dark"] .landing-menu {
    border-top-color: #d4d4d4;
  }

  .landing-nav.is-open {
    flex-wrap: wrap;
  }

  .landing-nav.is-open .landing-menu {
    display: flex;
  }

  .landing-links,
  .landing-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-links .nav-link,
  .landing-actions .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .reseller-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-header {
    padding: 16px;
  }

  .landing-nav {
    padding: 12px;
  }

  .landing-main {
    padding: 24px 16px 60px;
  }

  .landing-links,
  .landing-actions {
    gap: 8px;
  }

  .nav-link {
    font-size: 11px;
    padding: 8px 10px;
  }

  .social-float {
    right: 12px;
    bottom: 72px;
  }

  .landing-footer {
    margin: 24px 16px 16px;
  }

  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .reseller-grid {
    grid-template-columns: 1fr;
  }
}
