/* ==================================================
   ROOT VARIABLES
================================================== */

:root {

  /* Primary */
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --blue-gradient: linear-gradient(135deg, #2563EB, #22C55E);

  /* Accent */
  --accent: #22C55E;
  --accent-soft: #DCFCE7;

  /* Neutral UI */
  --grey: #F8FAFC;
  --light-grey: #F1F5F9;

  --dark: #0F172A;
  --surface: #111827;
  --border: #1F2937;

  --white: #FFFFFF;
  --muted: #94A3B8;

  --section-light: #F8FAFC;
  --section-contrast: #F1F5F9;
  --success-soft: #DCFCE7;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ==================================================
   RESET
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--white);
  overflow-x: hidden;
}

body {
  color: var(--dark);
  line-height: 1.6;
  padding-top: 80px;
  font-family: var(--font-body);
}

a {
  text-decoration: none;
}

h1,h2,h3,h4{
  font-family: var(--font-heading);
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ==================================================
   BUTTONS
================================================== */

.btn-primary {
  background: var(--blue-dark);
  box-shadow: 0 10px 25px rgba(33, 123, 223, 0.3);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(33, 123, 223, 0.4);
}

.btn-login {
  border-color: #e0e0de;
}

/* ==================================================
   NAVBAR
================================================== */

.landing-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.landing-navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.landing-navbar__menu {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-navbar__menu img {
  height: 32px;
}

.landing-navbar__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-navbar__links a {
  font-weight: 500;
  color: var(--dark);
}

.landing-navbar__mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.landing-navbar__mobile-cta {
  display: none;
}

/* ==================================================
   HERO
================================================== */

.landing-hero {
  padding: 180px 0 140px;
  background:
    linear-gradient(
      135deg,
      rgba(15,23,42,0.65) 10%,
      rgba(37,99,235,0.85) 60%,
      rgba(34,197,94,0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1592656094267-764a45160876?q=80&w=1170&auto=format&fit=crop");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.landing-hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}

.landing-hero__left {
  flex: 1;
  min-width: 320px;
}

.landing-hero__left h1 {
  color: white;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.landing-hero__left span {
  color: white;
}

.landing-hero__left p {
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  font-weight: 500;
}

.landing-hero__right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.landing-hero__logo {
  width: 100%;
  max-width: 600px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}

.landing-hero__proof {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-hero__early-access strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.landing-hero__early-access span {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

.landing-hero__beta-note span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==================================================
   PRICING
================================================== */

.landing-pricing {
  padding: 60px 0;
  background: var(--light-grey);
  text-align: center;
}

.landing-pricing__grid {
  margin-top: 60px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-pricing__card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.landing-pricing__card ul {
  text-align: left;
}

.landing-pricing__card--featured {
  transform: scale(1.05);
  border: 2px solid var(--blue);
}

.landing-pricing__price {
  font-size: 42px;
  font-weight: 800;
  margin: 20px 0;
}

.landing-pricing__price span {
  font-size: 16px;
  font-weight: 400;
}

/* ==================================================
   HOW IT WORKS
================================================== */

.landing-how {
  padding: 60px 0;
  background: var(--grey);
  text-align: center;
}

.landing-how__grid {
  margin-top: 60px;
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-how__step {
  max-width: 300px;
}

.landing-how__step h3 {
  min-height: 100px;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center (optional) */
}

.landing-how__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 20px;
}

/* ==================================================
   METRICS
================================================== */

.landing-metrics {
  background: var(--surface);
  padding: 60px 0;
  color: white;
}

.landing-metrics__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.landing-section__title {
  font-size: 36px;
  font-weight: 700;
  max-width: 800px;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.landing-metrics__container .landing-metrics__box {
  text-align: center;
  max-width: 300px;

  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical alignment */
  align-items: center;     /* horizontal alignment */
}

.landing-metrics__container > .landing-metrics__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 120px;
}

.landing-metrics__box h3 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 100px;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center (optional) */
}

.landing-metrics__box p {
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.6;
}

/* ==================================================
   FEATURES
================================================== */

.landing-features {
  background: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.landing-features__subtitle {
  color: #555;
  margin-bottom: 10px;
  font-size: 18px;
}

.landing-features__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.landing-features__card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 30px rgba(0,0,0,0.06);
  max-width: 320px;
  min-height: 300px;
  transition: 0.4s ease;
}

.landing-features__card:hover {
  transform: translateY(-6px);
}

.landing-features__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-features__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-dark);
  opacity: 0.4;
  animation: landingDots 1.6s infinite ease-in-out;
}

.landing-features__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.landing-features__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ==================================================
   CAROUSEL
================================================== */

.landing-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.landing-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  cursor: grab;
  touch-action: pan-y;
}

.landing-carousel__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* ================================
   SLIDE LAYOUT
================================ */

.landing-carousel__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  padding: 20px 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ================================
   TEXT
================================ */

.landing-carousel__text {
  flex: 0 0 40%; 
  max-width: 600px;
  text-align: left;
}

.landing-carousel__text h3 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
  color: #111827;
}

.landing-carousel__text p {
  font-size: 20px;
  color: #4b5563;
  line-height: 1.8;
}

/* ================================
   IMAGE
================================ */

.landing-carousel__image {
  flex: 0 0 60%; 
  display: flex;
  justify-content: flex-end;
}

.landing-carousel__image img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 5px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.2);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.landing-carousel__image img:hover {
  transform: translateY(-10px) scale(1.5);
  box-shadow: 0 50px 120px rgba(0,0,0,0.25);
}

/* ================================
   DOTS NAVIGATION
================================ */

.landing-carousel__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.landing-carousel__dot {
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.landing-carousel__dot.active {
  background: var(--blue-dark);
}

/* ==================================================
   TRIAL
================================================== */

.landing-trial {
  padding: 120px 20px;
  background: var(--grey);
  text-align: center;
}

.landing-trial__container {
  max-width: 500px;
  margin: 0 auto;
}

.landing-trial h2 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.landing-trial p {
  color: #6b7280;
  margin-bottom: 40px;
  font-size: 16px;
}

.landing-trial__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.landing-form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.landing-form-group input {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 15px;
  transition: all 0.25s ease;
}

.landing-form-group input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.landing-trial__btn {
  background: var(--blue);
  color: white;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.landing-trial__btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ==================================================
   ANIMATIONS
================================================== */

@keyframes landing-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes landingDots {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }

  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {
  .landing-carousel__layout {
    gap: 50px;
  }
  .landing-carousel__text h3 { font-size: 32px; }
}

@media (max-width: 900px) {

  .container {
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    margin: 0 auto;
  }

  .landing-navbar__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .landing-navbar__mobile-cta {
    display: inline-flex;
    margin-left: auto;
  }

  .landing-features__flow {
    flex-direction: column;
  }
  
  .landing-features__dots {
    margin: 10px 0;
  }

  .landing-navbar__mobile-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    margin-right: 12px;
    z-index: 1001;
  }

  .landing-navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
  
    background: var(--white);
    box-shadow: 10px 0 40px rgba(0,0,0,0.15);
  
    padding: 80px 24px 24px;
  
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* LEFT ALIGN */
    text-align: left;        /* LEFT ALIGN */
    gap: 10px;
  
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
  }

  .landing-navbar__links.active {
    transform: translateX(0);
  }

  .landing-navbar__links .btn {
    text-align: left; 
  }

  .landing-navbar__links .btn-login {
    text-align: center; 
  }

  .landing-navbar__links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    width: 100%;
  }

  .landing-navbar__links a:hover {
    color: var(--blue-dark);
  }

  .landing-navbar__overlay {
    position: fixed;
    inset: 0;
    background: var(--grey);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  
  .landing-navbar__overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .landing-hero__container,
  .landing-carousel__layout {
    flex-direction: column;
    text-align: center;
  }

  .landing-hero__left h1 {
    font-size: 38px;
  }

  .landing-hero__logo {
    max-width: 300px;
  }

  .landing-carousel__layout {
    padding: 40px 20px;
  }
  
  .landing-carousel__text, 
  .landing-carousel__image {
    flex: 0 0 100%;
    max-width: 100%;
    justify-content: center;
  }

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

  .landing-hero__left h1 {
    color: white;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {

  .landing-hero {
    padding: 40px 0 80px;
  }

  .landing-hero__left h1 {
    font-size: 38px;
  }

  .landing-hero__left p {
    font-size: 18px;
  }

  .landing-hero__right {
    display: none;
  }

  .landing-features {
    padding: 40px 0;
  }

  .landing-features__card {
    max-width: 100%;
    min-height: auto;
    padding: 40px;
  }

  .landing-trial__container {
    padding: 40px 20px;
  }

  .landing-trial__container h2 {
    font-size: 24px;
  }

  .landing-carousel__layout {
    padding: 0 20px;
    gap: 20px;
  }

  .landing-carousel {
    height: auto;
  }

  .landing-carousel__image img {
    max-height: 400px;
    pointer-events: none;
  }

  .landing-pricing {
    padding: 40px 0;
  }

  .landing-trial {
    padding: 40px 0;
  }

  .landing-metrics {
    padding: 40px 0;
  }

  .landing-how {
    padding: 40px 0;
  }

  .landing-metrics__container > .landing-metrics__grid {
    gap: 40px;
  }
}

/* ==================================================
   SCROLL TO SECTION MENU
================================================== */

section {
  scroll-margin-top: 90px; /* navbar height */
}