:root {
  --bg: #f7f9fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-strong: #f2f7ff;
  --text: #111827;
  --muted: #667085;
  --line: #e5eaf2;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: -0.04em;

  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.navbar nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navbar nav a:hover {
  color: var(--text);
}

.nav-cta,
.primary-button,
.secondary-button,
.pricing-button {
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-cta,
.primary-button,
.pricing-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.22);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.primary-button:hover,
.nav-cta:hover,
.pricing-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: calc(100vh - 78px);
  padding: 80px 7% 90px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.demo-content h2,
.promo-card h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.98;
  color: var(--text);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.hero-metrics strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
}

.app-preview-card {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,1), rgba(239,246,255,0.75));
  box-shadow: var(--shadow);
}

.preview-topbar {
  height: 36px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.preview-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 0.75fr;
  gap: 14px;
  height: 450px;
}

.preview-sidebar,
.preview-chat,
.preview-coach {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.preview-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.preview-sidebar h3,
.preview-coach h3 {
  margin: 18px 0 10px;
  color: var(--text);
}

.preview-sidebar p,
.preview-coach p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.preview-objective {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.86rem;
  border: 1px solid #edf2f7;
}

.preview-objective.done {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: #bfdbfe;
}

.preview-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.chat-bubble {
  max-width: 90%;
  padding: 15px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chat-bubble.ai {
  background: #f1f5f9;
  color: var(--text);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;
}

.preview-coach .score {
  margin: 30px 0 18px;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--blue-dark);
}

.logo-strip {
  margin: 0 7%;
  padding: 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.06);
}

.logo-strip strong {
  color: var(--text);
}

.section {
  padding: 105px 7%;
}

.section-header {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-header h2,
.demo-content h2,
.promo-card h2,
.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.section-header p,
.demo-content p,
.promo-card p,
.final-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.promo-card,
.pricing-card,
.step,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.feature-card {
  padding: 28px;
}

.icon {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eef4ff;
  border-radius: 18px;

  margin-bottom: 24px;
}

.icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.feature-card h3,
.promo-card h3,
.step h3,
.pricing-card h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
  color: var(--text);
}

.feature-card p,
.step p,
.pricing-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.demo-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 12px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 900;
  margin-right: 10px;
}

.demo-box {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.95)),
    #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  font-size: 2rem;
  margin: auto auto 14px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.demo-box p {
  color: var(--muted);
}

.promo-section {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.promo-card {
  padding: 34px;
}

.promo-card.large {
  grid-row: span 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(255,255,255,1));
}

.steps,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 32px;
}

.step span {
  color: var(--blue);
  font-weight: 900;
}

.pricing-card {
  position: relative;
  padding: 34px;
}

.pricing-card.featured {
  background: var(--card-strong);
  transform: translateY(-12px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
}

.popular {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.price {
  margin: 20px 0;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--text);
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.pricing-card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.pricing-button {
  display: block;
  text-align: center;
  margin-top: 28px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 22px 26px;
  margin-bottom: 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.final-cta {
  margin: 70px 7% 90px;
  padding: 80px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.10), transparent 45%),
    #ffffff;
  box-shadow: var(--shadow);
}

.final-cta p {
  margin: 20px auto 34px;
  max-width: 600px;
}

.footer {
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hero,
  .demo-section,
  .promo-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-preview-card {
    min-height: auto;
  }

  .icon {
    width: 44px;
    height: 44px;
  }

  .icon img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: auto;
    padding: 18px 5%;
    flex-wrap: wrap;
    gap: 16px;
  }

  .navbar nav {
    display: none;
  }

  .hero,
  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero-metrics,
  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer {
    flex-direction: column;
  }

  .icon {
    width: 44px;
    height: 44px;
  }

  .icon img {
    width: 22px;
    height: 22px;
  }
}

.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.65);
  color: var(--text);

  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.login-link:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  background: #ffffff;
  color: var(--blue);
}

.landing-profile-button {
  display: flex;
  align-items: center;
  gap: 10px;

  width: auto;
  max-width: 340px;

  padding: 10px 14px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;

  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-profile-button:hover {
  transform: translateY(-1px);

  background: rgba(255,255,255,0.9);

  border-color: rgba(37, 99, 235, 0.18);

  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.08);
}

.landing-profile-avatar {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #2563eb,
    #3b82f6
  );

  color: white;

  font-size: 14px;
  font-weight: 800;

  flex-shrink: 0;
}

.landing-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.landing-profile-label {
  font-size: 12px;
  font-weight: 800;

  color: #64748b;
}

.landing-profile-email {
  max-width: 280px;

  font-size: 15px;
  font-weight: 700;

  color: #0f172a;
}

.nav-auth {
  position: relative;
}

.landing-profile-dropdown {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: 290px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 12px;

  border-radius: 24px;

  background: rgba(255,255,255,0.94);

  border: 1px solid rgba(15, 23, 42, 0.08);

  backdrop-filter: blur(22px);

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14);

  z-index: 1000;
}

.landing-profile-dropdown.hidden {
  display: none;
}

.landing-dropdown-item {
  width: 100%;

  border: none;
  border-radius: 14px;

  padding: 16px 18px;

  background: transparent;

  color: #0f172a;

  text-align: left;

  font-size: 17px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.landing-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);

  color: #2563eb;

  transform: translateY(-1px);
}

.landing-dropdown-item.logout {
  color: #dc2626;
}

.landing-dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.brand span {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text {
  color: #111827;
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-accent {
  color: #0071fe;
}

button.nav-cta {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.demo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.demo-image-card {
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.demo-image-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.demo-image-card span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
  color: #0f172a;
}

.demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.demo-lightbox.hidden {
  display: none;
}

.demo-lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}

.demo-lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.demo-lightbox-content p {
  margin-top: 14px;
  color: white;
  font-weight: 800;
}

.demo-lightbox-close,
.demo-lightbox-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  color: white;
  background: rgba(15, 23, 42, 0.65);
}

.demo-lightbox-close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 32px;
}

.demo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 70px;
  border-radius: 18px;
  font-size: 46px;
}

.demo-lightbox-nav.left {
  left: 28px;
}

.demo-lightbox-nav.right {
  right: 28px;
}

@media (max-width: 768px) {
  .demo-lightbox {
    padding: 16px;
  }

  .demo-lightbox-nav {
    width: 44px;
    height: 56px;
    font-size: 36px;
  }
}