/* ============================================
   Zonect Landing Page
   ============================================ */

:root {
  --primary: #0041C2;
  --primary-light: #1A56DB;
  --primary-dark: #003399;
  --accent: #0041C2;
  --accent-hover: #003399;
  --accent-bright: #3B82F6;
  --bg-white: #FFFFFF;
  --bg-gray: #F8F9FA;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --warning: #F97316;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 65, 194, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 65, 194, 0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-height: 72px;
  --overlay-dark: rgba(0, 20, 60, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 65, 194, 0.35);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo--footer {
  color: #fff;
  margin-bottom: 12px;
}

.logo--footer .logo__img {
  width: 36px;
  height: 36px;
}

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

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  width: 100%;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  background: var(--overlay-dark);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: 64px clamp(20px, 5vw, 40px) 80px;
}

.hero__content {
  text-align: center;
  padding: 0 clamp(8px, 2vw, 16px);
}

.hero__content h1,
.hero__content .hero__subheadline,
.hero__content .hero__trial-note {
  color: #fff;
}

.hero__subheadline {
  font-size: 1.125rem;
  margin: 20px auto 32px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__trial-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(8px, 2vw, 16px);
}

.hero__stats-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #ffffff;
  border: 1px solid rgba(0, 65, 194, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 280px;
  box-shadow: var(--shadow-md);
}

.stat__value {
  display: inline;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat__suffix {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-bright);
}

.stat__label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__header p {
  margin-top: 16px;
  font-size: 1.125rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 65, 194, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--primary);
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  margin-bottom: 10px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.step__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.step__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.step__content {
  position: relative;
  z-index: 2;
  padding: 28px 22px;
  width: 100%;
}

.step__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

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

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
}

.features-teaser {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  font-style: italic;
  color: var(--primary);
}

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

.testimonial {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 65, 194, 0.08);
}

.testimonial p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.65;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial strong {
  color: var(--text-dark);
  font-size: 15px;
}

.testimonial span {
  font-size: 13px;
}

/* Calculator */
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 65, 194, 0.1);
  overflow: hidden;
}

.calculator__inputs,
.calculator__results {
  min-width: 0;
}

.calculator__inputs {
  display: flex;
  flex-direction: column;
}

.calculator__field {
  margin-bottom: 24px;
}

.calculator__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.calculator__field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.calculator__field output {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.calculator__results {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(0, 65, 194, 0.06), rgba(0, 65, 194, 0.02));
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(0, 65, 194, 0.12);
  overflow: hidden;
}

.calculator__results h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.calculator__total {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  word-break: break-word;
}

.calculator__breakdown {
  flex: 1;
}

.calculator__breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.calculator__breakdown li span {
  min-width: 0;
}

.calculator__breakdown li:last-child {
  border-bottom: none;
}

.calculator__breakdown strong {
  color: var(--text-dark);
  font-size: 14px;
  text-align: right;
}

.calculator__results .btn {
  margin-top: auto;
  flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  padding-bottom: 96px;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p strong {
  color: #fff;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 20px;
}

.cta-form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.cta-form input:focus {
  border-color: var(--accent-bright);
}

.cta-form .btn {
  min-width: 180px;
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-form .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.cta-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cta-form__message {
  min-height: 1.5em;
  margin-bottom: 12px;
  font-size: 15px;
}

.cta-form__message--success {
  color: #bbf7d0;
}

.cta-form__message--error {
  color: #fecaca;
}

.cta-secondary-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
}

.cta-secondary-link:hover {
  color: #fff;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  font-size: 15px;
  max-width: 280px;
  line-height: 1.6;
}

.footer__links h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 48px clamp(20px, 5vw, 32px) 64px;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__stats-inner {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 24px;
  }

  .hero__stats-inner .stat {
    flex: 1;
    min-width: 100px;
  }

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

  .step {
    min-height: 280px;
  }

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

  .calculator {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .calculator__results {
    padding: 24px;
  }

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav__cta {
    margin-top: 12px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .step {
    min-height: 260px;
  }

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

  .calculator {
    padding: 20px;
  }

  .calculator__field {
    margin-bottom: 20px;
  }

  .calculator__results {
    padding: 20px;
  }

  .calculator__breakdown li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .calculator__breakdown strong {
    text-align: left;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input,
  .cta-form .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__stats-inner {
    flex-direction: column;
    gap: 20px;
  }

  .stat__value,
  .stat__suffix {
    font-size: 2rem;
  }
}
