/* Landing home — matches mockup layout with DigitalWall theme tokens */

.landing-page {
  --landing-dark: var(--ink);
  --landing-dark-2: var(--charcoal-2);
  --landing-surface: var(--charcoal);
  --landing-surface-2: var(--charcoal-2);
  --landing-text: var(--white);
  --landing-text-muted: var(--muted);
  --landing-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --landing-shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.landing-page section {
  padding: 72px 0;
}

.landing-page .landing-hero {
  padding: 144px 0 144px;
  min-height: calc(100vh - var(--header-h, 82px));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245, 130, 12, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(34, 197, 94, 0.06), transparent 45%),
    var(--landing-dark);
  border-bottom: 1px solid var(--hairline);
}

main:has(.landing-page) {
  padding-top: 0;
}

.landing-section--light {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--hairline);
}

.landing-section--light:nth-of-type(even) {
  background: var(--charcoal);
}

.landing-section--light .landing-eyebrow {
  color: var(--accent);
}

.landing-section--light .landing-section-title {
  color: var(--white);
}

.landing-section--light .landing-section-subtitle {
  color: var(--muted);
}

/* Hero */
.landing-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.landing-hero__content {
  text-align: left;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.landing-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 540px;
}

.landing-hero h1 .accent {
  color: var(--accent);
}

.landing-hero__desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 28px;
}

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

.landing-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-btn-arrow svg {
  width: 18px;
  height: 18px;
}

.landing-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-btn-play svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.landing-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero preview — dashboard + mobile live preview */
.landing-hero__visual {
  position: relative;
  min-height: 480px;
}

.landing-hero-preview {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  padding-bottom: 8px;
  padding-top: 12px;
}

.landing-hero-preview__dashboard {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--landing-shadow-lg);
  margin-left: 110px;
  min-height: 320px;
}

.landing-hero-preview__window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.landing-hero-preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.landing-hero-preview__dot--accent { background: var(--accent); }
.landing-hero-preview__dot--eco { background: var(--eco); }
.landing-hero-preview__dot--muted { background: var(--muted-2); }

.landing-hero-preview__window-title {
  margin-left: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.landing-hero-preview__dash-mock {
  margin: 0;
  padding: 20px;
  border-radius: 12px;
}

.landing-hero-preview__dash-mock .dash-row {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.landing-hero-preview__dash-mock .dash-stat .num {
  font-size: 22px;
}

.landing-hero-preview__dash-mock .dash-stat .lbl {
  font-size: 13px;
}

.landing-hero-preview__mobile {
  position: absolute;
  left: 0;
  bottom: -150px;
  z-index: 2;
  width: 300px;
  margin: 10px;
}

.landing-hero-preview__phone-outer {
  width: 300px;
  height: calc(300px * 844 / 390);
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: var(--ink);
}

.landing-hero-preview__phone-inner {
  width: 390px;
  height: 844px;
  transform: scale(calc(300 / 390));
  transform-origin: top left;
}

.landing-hero-preview__phone-inner iframe {
  width: 390px !important;
  height: 844px !important;
  border: none !important;
  display: block;
  transform: none !important;
  overflow: hidden;
}

.landing-hero-preview__mobile .dash-caption {
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
  max-width: 300px;
}

/* Trusted */
.landing-trusted {
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}

.landing-trusted__label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}

.landing-trusted__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.landing-trusted__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--muted-2);
  letter-spacing: -0.02em;
}

/* Section header */
.landing-section-header {
  margin-bottom: 48px;
}

.landing-section-header--center {
  text-align: center;
}

.landing-section-header--center .landing-section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.landing-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.landing-section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 12px;
}

.landing-section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* Stats */
.landing-stats {
  padding: 56px 0;
}

.landing-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.landing-stat {
  text-align: center;
  padding: 12px 8px;
}

.landing-stat__icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.landing-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.landing-stat__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Comparison VS */
.landing-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.landing-vs__card {
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--hairline-2);
  background: var(--charcoal-2);
}

.landing-vs__card--old {
  background: rgba(214, 72, 63, 0.06);
  border-color: rgba(214, 72, 63, 0.2);
}

.landing-vs__card--new {
  background: rgba(245, 130, 12, 0.08);
  border-color: var(--accent-line);
}

.landing-vs__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.landing-vs__card--old .landing-vs__card-title {
  color: #B91C1C;
}

.landing-vs__card--new .landing-vs__card-title {
  color: var(--accent);
}

.landing-vs__list {
  list-style: none;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.landing-vs__list li {
  position: relative;
  padding-left: 28px;
}

.landing-vs__list--old li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: 700;
  font-size: 13px;
}

.landing-vs__list--new li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.landing-vs__badge {
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--hairline-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--landing-shadow);
  flex-shrink: 0;
}

/* Process */
.landing-process__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.landing-process-step {
  position: relative;
  text-align: center;
  padding: 20px 12px;
  background: var(--charcoal-2);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  box-shadow: var(--landing-shadow);
}

.landing-process-step__arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--muted-2);
}

.landing-process-step__arrow svg {
  width: 20px;
  height: 20px;
}

.landing-process-step__icon {
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1;
}

.landing-process-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #17181B;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.landing-process-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.landing-process-step__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Feature cards */
.landing-solutions__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.landing-feature-card {
  background: var(--charcoal-2);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--landing-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--landing-shadow);
  border-color: var(--accent-line);
}

.landing-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.landing-feature-card__icon--accent { background: var(--accent-soft); }
.landing-feature-card__icon--blue { background: rgba(59, 130, 246, 0.14); }
.landing-feature-card__icon--purple { background: rgba(139, 92, 246, 0.14); }
.landing-feature-card__icon--orange { background: rgba(251, 146, 60, 0.16); }
.landing-feature-card__icon--eco { background: var(--eco-soft); }

.landing-feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.landing-feature-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.landing-feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.landing-feature-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.landing-feature-card__link:hover svg {
  transform: translateX(3px);
}

/* Testimonials */
.landing-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-testimonial {
  background: var(--charcoal-2);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--landing-shadow);
}

.landing-testimonial__quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.landing-testimonial__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

.landing-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--hairline-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.landing-testimonial__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

.landing-testimonial__role {
  font-size: 13px;
  color: var(--muted);
}

.landing-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.landing-testimonials__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-2);
}

.landing-testimonials__dots span.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* CTA band */
.landing-cta-band {
  padding: 48px 0 80px;
  background: var(--landing-dark);
}

.landing-cta-band__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  box-shadow: var(--landing-shadow-lg);
}

.landing-cta-band__icon {
  font-size: 40px;
  flex-shrink: 0;
  line-height: 1;
}

.landing-cta-band__copy {
  flex: 1;
  min-width: 0;
}

.landing-cta-band__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.landing-cta-band__subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.landing-cta-band__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Nav text CTAs (home layout) */
body.landing-site .nav-controls .nav-auth-btn--text,
body.landing-site .nav-controls .nav-cta--text {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  gap: 0;
}

body.landing-site .nav-controls .nav-auth-btn--text svg,
body.landing-site .nav-controls .nav-cta--text svg {
  display: none;
}

body.landing-site .nav-controls .nav-auth-btn--text {
  border: 1px solid var(--hairline-2);
  background: transparent;
  color: var(--white);
}

body.landing-site .nav-controls .nav-cta--text {
  padding: 10px 22px;
}

/* Responsive */
@media (max-width: 1100px) {
  .landing-solutions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .landing-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero__content {
    text-align: center;
  }

  .landing-hero h1,
  .landing-hero__desc {
    max-width: none;
  }

  .landing-hero__actions,
  .landing-hero__pills {
    justify-content: center;
  }

  .landing-hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .landing-hero-preview {
    margin: 0 auto;
    max-width: 100%;
  }

  .landing-hero-preview__dashboard {
    margin-left: 72px;
  }

  .landing-hero-preview__mobile {
    left: 0;
    bottom: 8px;
    width: 260px;
  }

  .landing-hero-preview__phone-outer {
    width: 260px;
    height: calc(260px * 844 / 390);
  }

  .landing-hero-preview__phone-inner {
    transform: scale(calc(260 / 390));
  }

  .landing-hero-preview__mobile .dash-caption {
    max-width: 260px;
  }

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

  .landing-vs__badge {
    margin: 0 auto;
  }

  .landing-process__track {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .landing-process-step__arrow {
    display: none;
  }

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

  .landing-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .landing-cta-band__inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .landing-cta-band__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .landing-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-solutions__grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-preview__dashboard {
    margin-left: 0;
    margin-top: 280px;
  }

  .landing-hero-preview__mobile {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(300px, 100%);
    margin: 0 auto 16px;
  }

  .landing-hero-preview__phone-outer {
    width: min(300px, 100%);
    height: calc(min(300px, 100vw - 48px) * 844 / 390);
    margin: 0 auto;
  }

  .landing-hero-preview__phone-inner {
    transform: scale(calc(min(300px, 100vw - 48px) / 390));
  }

  .landing-hero-preview__mobile .dash-caption {
    max-width: none;
  }

  .landing-hero-preview__dash-mock .dash-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  body.landing-site .nav-controls .nav-auth-btn--text,
  body.landing-site .nav-controls .nav-cta--text {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body.landing-site .nav-controls .nav-auth-btn--text span,
  body.landing-site .nav-controls .nav-cta--text span {
    display: none;
  }

  body.landing-site .nav-controls .nav-auth-btn--text,
  body.landing-site .nav-controls .nav-cta--text {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  body.landing-site .nav-controls .nav-auth-btn--text svg,
  body.landing-site .nav-controls .nav-cta--text svg {
    display: block;
  }
}
