/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #00d084;
  --accent-hover: #00b871;
  --accent-glow: rgba(0, 208, 132, 0.15);
  --border: #1e293b;
  --white: #ffffff;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1140px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

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

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__logo:hover { color: var(--white); }

.logo-img {
  height: 44px;
  width: auto;
}

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

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

.nav__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--white); }

.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(--text);
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, #0f1729 50%, #0a1628 100%);
  overflow: hidden;
}

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

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero__stats {
  display: flex;
  gap: 40px;
}

.stat__number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.phone-mockup__screen {
  background: #0f172a;
  border-radius: 22px;
  padding: 16px;
  min-height: 380px;
}

.alert-demo__header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.live-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.alert-demo__msg {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  animation: fadeInUp 0.6s ease both;
}
.alert-demo__msg:nth-child(2) { animation-delay: 0.2s; }
.alert-demo__msg:nth-child(3) { animation-delay: 0.6s; }
.alert-demo__msg:nth-child(4) { animation-delay: 1.0s; }

.alert-demo__msg--surge { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-demo__msg--drop { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }

.alert-demo__icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-demo__msg strong { color: var(--white); }
.alert-demo__msg small { color: var(--text-muted); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections common ===== */
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-card);
}

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

.step {
  text-align: center;
  padding: 32px 24px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

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

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 16px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.04);
}
.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 48px;
  text-align: center;
  animation: promoPulse 3s ease-in-out infinite;
}

@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.promo-banner__badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-banner__text {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card__header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-card__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-card__amount--old {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.pricing-card__amount {
  font-size: 2.75rem;
  font-weight: 700;
  color: #34d399;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card__feature {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 28px;
  position: relative;
}

.pricing-card__feature::before {
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}
.pricing-card__feature--yes::before {
  content: "\2713";
  color: var(--green);
}
.pricing-card__feature--no::before {
  content: "\2717";
  color: #475569;
}
.pricing-card__feature--no {
  color: #475569;
}

.pricing__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 32px;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-card);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] .faq__question::after {
  content: "\2212";
}

.faq__answer {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Widget Embed Section ===== */
.widget-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f1729 100%);
}

.widget-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 56px;
}

.widget-showcase iframe {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.widget-showcase__themes {
  display: flex;
  gap: 8px;
}

.theme-btn {
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--white);
}

.theme-btn--active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

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

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.widget-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 208, 132, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.widget-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.widget-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.widget-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.widget-card__text:last-child { margin-bottom: 0; }

.code-block {
  background: #0a0e17;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  text-align: left;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #e6edf3;
  line-height: 1.6;
  word-break: break-all;
}

.code-block__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--border);
  color: var(--text-muted);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.code-block__copy:hover {
  background: var(--accent);
  color: var(--bg);
}

.widget-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.widget-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
}

.widget-option__name {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.widget-option__value {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f1729 0%, #0a1628 100%);
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

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

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

.footer__brand {
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }

  .hero__visual { order: -1; }
  .phone-mockup { width: 240px; }

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

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  .widget-steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .widget-showcase iframe { width: 320px; height: 260px; }
}

@media (max-width: 640px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: flex; }

  .header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
  }

  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }

  .hero__title { font-size: 1.9rem; }

  .features, .how-it-works, .pricing, .faq, .cta { padding: 60px 0; }

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

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

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

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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