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

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-amber: #f59e0b;
  --color-amber-light: #fffbeb;
  --color-dark: #0f172a;
  --color-dark-mid: #1e293b;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --font: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.btn--large {
  padding: 15px 32px;
  font-size: 16px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn--secondary {
  background: #f1f5f9;
  color: var(--color-text);
}
.btn--secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 9px 22px;
}
.btn--outline:hover {
  background: var(--color-primary-light);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
}
.btn--white:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo--small {
  font-size: 17px;
}

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

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 64px;
  overflow: hidden;
}

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

.hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.hero__highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}
.hero__highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 4px;
  background: var(--color-amber);
  border-radius: 2px;
  opacity: 0.8;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero__link:hover {
  color: var(--color-primary);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__screen {
  width: 100%;
  max-width: 440px;
  background: var(--color-dark);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero__screen-inner {
  padding: 16px;
}

.hero__screen-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.hero__screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.hero__screen-bar span:first-child {
  background: #ef4444;
}
.hero__screen-bar span:nth-child(2) {
  background: #f59e0b;
}
.hero__screen-bar span:last-child {
  background: #22c55e;
}

.hero__screen-content {
  padding: 8px 0;
}

.hero__screen-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  margin-bottom: 10px;
}
.hero__screen-line--short {
  width: 60%;
}

.hero__screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.hero__screen-card {
  height: 80px;
  background: rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero__badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__badge-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}
.hero__badge-label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  padding: 48px 0 64px;
}

.cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg {
  width: 24px;
  height: 24px;
}
.card__icon--blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.card__icon--amber {
  background: var(--color-amber-light);
  color: var(--color-amber);
}

.card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 80px 0;
  background: var(--color-bg-soft);
}

.section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child {
  border-bottom: none;
}

.step__number {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  min-width: 56px;
  letter-spacing: -1px;
  opacity: 0.8;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.step__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   WHY WHISTLE
   ============================================================ */
.why {
  padding: 80px 0;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why__divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
}

.why__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why__icon svg {
  width: 22px;
  height: 22px;
}
.why__icon--blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.why__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.why__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background: var(--color-dark);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark-mid);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer .logo {
  color: #fff;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__screen {
    max-width: 100%;
  }

  .hero__badge {
    bottom: -12px;
    left: 12px;
  }

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

  .hero {
    padding: 48px 0 40px;
  }

  .how-it-works,
  .why,
  .cta {
    padding: 56px 0;
  }

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

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .btn--large {
    width: 100%;
    max-width: 320px;
  }
}
