:root {
  --color-primary: #FFD700;
  --color-primary-dark: #E5C100;
  --color-background: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-surface-alt: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-secondary: #666666;
  --color-text-light: #FFFFFF;
  --color-border: #E0E0E0;
  --color-success: #4CAF50;
  --color-card: #FFFFFF;
  --color-dark: #1A1A1A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;

  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 16px;
}

.section__title--light .accent {
  color: var(--color-text-light);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  font-weight: 500;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__link {
  font-weight: 500;
  padding: 8px 0;
  color: var(--color-text);
}

/* Hero */
.hero {
  background: var(--color-primary);
  padding: 80px 0 96px;
  overflow: hidden;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.1);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(26, 26, 26, 0.8);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-dark);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: rgba(26, 26, 26, 0.1);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: rgba(26, 26, 26, 0.2);
}

.btn--large {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn--xlarge {
  padding: 18px 32px;
  font-size: 1.125rem;
}

.btn__icon {
  flex-shrink: 0;
}

.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.85);
}

.hero__bullet-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 280px;
  padding: 12px;
  background: var(--color-dark);
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
}

.phone--hero {
  width: 300px;
}

.phone--small {
  width: 280px;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: var(--color-dark);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone__screen {
  position: relative;
  background: var(--color-background);
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 17.5;
}

.phone__screen--image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--color-background);
}

.phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screen__header {
  background: var(--color-primary);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 44px 16px 14px;
}

.screen__body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.scanner-frame {
  flex: 1;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-frame::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  opacity: 0.8;
}

.scanner-line {
  position: absolute;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 30px; }
  50% { top: calc(100% - 30px); }
}

.product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px;
}

.product-card__img {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #d0d0d0, #e8e8e8);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.product-card__info {
  flex: 1;
  min-width: 0;
}

.product-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.list-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px;
}

.list-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.list-item__meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.fab {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-card--wide {
  grid-column: 1 / -1;
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.step__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Screenshots */
.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.screenshot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.screenshot__caption {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

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

.pain-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pain-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text-light);
}

.pain-card__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.55;
}

/* CTA */
.cta__inner {
  text-align: center;
}

.cta__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.cta__text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta__hint {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 16px;
}

/* Contacts */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.contact-card__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-card__value {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 40px 0;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  width: 100%;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner {
    gap: 40px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.875rem;
  }

  .section__subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero__bullets {
    align-items: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone--hero {
    width: 240px;
  }

  .features__grid,
  .pain__grid,
  .steps,
  .screenshots__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .screenshot {
    max-width: 100%;
    margin: 0 auto;
  }

  .phone--hero {
    width: 240px;
    max-width: 100%;
  }

  .phone--small {
    width: 220px;
    max-width: 100%;
  }

  .cta__title {
    font-size: 1.875rem;
  }

  .btn--xlarge {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
    word-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn--large,
  .btn--xlarge,
  .btn--primary,
  .btn--secondary {
    padding: 14px 18px;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .feature-card,
  .pain-card,
  .step {
    padding: 22px;
  }
}
