*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-2: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text: #f0f0f0;
  --color-text-muted: #999;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.3);
  --color-green: #22c55e;
  --color-red: #ef4444;
  --color-orange: #f97316;
  --color-blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn s {
  opacity: 0.6;
  font-weight: 400;
  margin-left: 4px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-x {
  color: var(--color-accent);
}

.logo-series {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 4px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  font-weight: 500;
}

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

.header__nav .btn {
  color: #fff;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  padding-top: 80px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-green);
  flex-shrink: 0;
}

/* Features */
.features {
  padding: 120px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Showcase */
.showcase {
  padding: 80px 0 120px;
}

.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.showcase__image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.showcase__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.showcase__text > p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.showcase__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.showcase__list svg {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
}

/* Modes */
.modes {
  padding: 120px 0;
  background: var(--color-surface);
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mode-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mode-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mode-card__content {
  padding: 20px;
}

.mode-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.mode-card__badge--green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-green);
}

.mode-card__badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
}

.mode-card__badge--orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-orange);
}

.mode-card__badge--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-blue);
}

.mode-card__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.mode-card__content p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* App Section */
.app-section {
  padding: 120px 0;
}

.app-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.app-section__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.app-section__text > p {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.app-section__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.app-feature__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.app-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-feature p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.app-section__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.store-btn:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

.app-section__image {
  display: flex;
  justify-content: center;
}

.app-section__image img {
  max-height: 600px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Live Inspection */
.live-inspection {
  padding: 80px 0 120px;
  background: var(--color-surface);
}

.live-inspection__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.live-inspection__image {
  display: flex;
  justify-content: center;
}

.live-inspection__image img {
  max-height: 550px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.live-inspection__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.live-inspection__text > p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.live-inspection__stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Compatible Adapters */
.compatible {
  padding: 120px 0;
}

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

.compat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.compat-card:hover {
  border-color: var(--color-accent);
}

.compat-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

.compat-card__badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-green);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.compat-card__badge--alt {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

/* FAQ */
.faq {
  padding: 120px 0;
  background: var(--color-surface);
}

.faq__list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item--open {
  border-color: var(--color-accent);
}

.faq-item__question {
  width: 100%;
  background: var(--color-bg);
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item--open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item__answer p {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Buy Section */
.buy {
  padding: 120px 0;
}

.buy__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 60px;
  align-items: center;
}

.buy__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.buy__image img {
  max-height: 400px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.buy__label {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.buy__info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.buy__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}

.buy__amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.buy__old-price {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.buy__discount {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
}

.buy__tax {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.buy__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.buy__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.buy__features svg {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
}

.buy__note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer__simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__simple p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 400px;
}

.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer__tg:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer__simple {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1002;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay--open {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__header {
  text-align: center;
  margin-bottom: 28px;
}

.modal__header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal__amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
}

.modal__old {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.modal__discount {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder {
  color: #555;
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.modal__notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal__success {
  text-align: center;
}

.success-icon {
  margin-bottom: 16px;
}

.success-icon svg {
  width: 64px;
  height: 64px;
  color: var(--color-green);
}

.modal__success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-green);
}

.success-code-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.success-code {
  background: var(--color-bg);
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  user-select: all;
  cursor: pointer;
}

.success-warning {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1.5;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
  }

  .header__burger {
    display: flex;
    z-index: 1001;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }

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

  .showcase__inner,
  .app-section__inner,
  .live-inspection__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .live-inspection__image {
    order: -1;
  }

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

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

  .buy__card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
