/* ======================================================
   Temp-M1 Landing — Style Sheet (Clean Light SaaS)
   ====================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-900: #111827;
  --blue: #2B5CC7;
  --blue-light: #4A7AE8;
  --blue-pale: #EBF0FD;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section__subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  padding: 12px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn--primary:hover {
  box-shadow: 0 4px 12px rgba(43, 92, 199, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  padding: 12px 28px;
}

.btn--outline:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

.btn--lang {
  background: var(--white);
  color: var(--gray-600);
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--gray-200);
}

.btn--lang:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ======================================================
   NAV
   ====================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200);
  padding: 10px 0;
}

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

.nav__logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--gray-500);
  transition: color var(--transition);
  font-weight: 500;
}

.nav__link:hover {
  color: var(--gray-900);
}

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

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 80px;
  overflow: hidden;
  background: var(--white);
}

/* Glow elements hidden — kept as no-ops so HTML doesn't break */
.hero__glow {
  display: none;
}

.hero__glow--1,
.hero__glow--2,
.hero__glow--3 {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ======================================================
   FEATURES
   ====================================================== */
.features {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card__icon {
  margin-bottom: 24px;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--gray-900);
}

.card__text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ======================================================
   HOW IT WORKS
   ====================================================== */
.how {
  padding: 120px 0;
  background: var(--white);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* Connector line between steps */
.how__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.666% + 36px);
  right: calc(16.666% + 36px);
  height: 2px;
  background: var(--gray-200);
}

.how__step {
  text-align: center;
}

.how__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 28px;
  background: var(--blue);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.how__step-title {
  font-size: 1.1875rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--gray-900);
}

.how__step-text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ======================================================
   PRICING
   ====================================================== */
.pricing {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.pricing__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing__card--popular {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--blue);
}

.pricing__card--popular:hover {
  box-shadow: 0 4px 12px rgba(43, 92, 199, 0.15), 0 0 0 1px var(--blue);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.pricing__header {
  margin-bottom: 24px;
}

.pricing__plan {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.pricing__devices {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.pricing__price-wrap {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.pricing__amount {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.pricing__period {
  display: block;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 4px;
}

.pricing__features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.pricing__features li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding-left: 28px;
  position: relative;
}

.pricing__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-light);
}

.pricing__features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue-light);
  border-bottom: 2px solid var(--blue-light);
  transform: rotate(-45deg);
}

/* ======================================================
   CTA SECTION
   ====================================================== */
.cta {
  padding: 120px 0;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  display: none;
}

.cta__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--white);
}

.cta__text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.footer__logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.footer__powered {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.footer__email {
  color: var(--blue);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--blue-light);
}

.footer__copy p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .features__grid,
  .how__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .how__grid::before {
    display: none;
  }

  .pricing__card--popular {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 40px;
    transition: right var(--transition);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__links {
    flex-direction: column;
    gap: 24px;
  }

  .nav__link {
    font-size: 1.25rem;
    color: var(--gray-900);
  }

  .nav__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav__actions .btn--primary {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 90vh;
  }

  .hero__title br {
    display: none;
  }

  .features,
  .how,
  .pricing {
    padding: 80px 0;
  }

  .section__subtitle {
    margin-bottom: 40px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card,
  .pricing__card {
    padding: 28px 20px;
  }
}
