/* Design System */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

p {
  text-wrap: pretty;
}

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

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

/* -- Container -- */
.container {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}

/* -- Section -- */
section {
  padding: var(--sp-xxl) 0;
}

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

.section__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--c-dark);
  margin-bottom: 1rem;
}

:is(.preview__text, .contact__left) .section__title {
  text-align: left;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-bg);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgb(15 23 42 / 98%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  transition: box-shadow 0.25s;
}

header.header-scrolled {
  box-shadow: 0 4px 24px rgb(0 0 0 / 40%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.logo-light .logo__text {
  color: rgb(255 255 255 / 90%);
}

/* Navigation */
nav {
  flex: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  color: rgb(255 255 255 / 70%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

:is(.nav__btn, .nav__link):hover {
  color: white;
  background: rgb(255 255 255 / 7%);
}

.nav__link {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: rgb(255 255 255 / 70%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.nav__arrow {
  opacity: 0.5;
  transition: transform 0.18s;
  flex-shrink: 0;
}

.nav__item:is(:hover, :focus-within) .nav__arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  margin: 0;
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.5rem;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.nav__item:is(:hover, :focus-within) .dropdown {
  display: block;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  transition: background 0.12s;
  color: var(--c-dark);
}

.dropdown__link:hover {
  background: var(--c-gray);
}

.dropdown__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.dropdown__link strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--c-dark);
}

.dropdown__link small {
  display: block;
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 400;
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  padding: 6.25rem 0 5rem;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__glow-a {
  width: 500px;
  height: 500px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgb(59 130 246 / 20%) 0%, transparent 70%);
}

.hero__glow-b {
  width: 400px;
  height: 400px;
  top: 100px;
  right: -50px;
  background: radial-gradient(circle, rgb(99 102 241 / 12%) 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: var(--c-green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 25%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgb(34 197 94 / 25%);
  }

  50% {
    box-shadow: 0 0 0 6px rgb(34 197 94 / 10%);
  }
}

.hero__title {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 1.5rem;
  max-width: 900px;
  text-wrap: balance;
}

.hero__sub {
  font-size: 1.25rem;
  color: rgb(255 255 255 / 60%);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.form-status {
  min-height: 18px;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--c-muted);
}

.form-status-error {
  color: var(--c-red-dk);
}

.form-status-ok {
  color: var(--c-green-dk2);
}

/* ============ PREVIEW (DASHBOARD) ============ */
.preview__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}


.preview__text p {
  color: var(--c-muted);
  margin-bottom: 1.75rem;
}

.preview__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.preview__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--c-dark);
}

/* Mockup window */
.mockup {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(59 130 246 / 8%);
  background: var(--c-white);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--c-gray);
  border-bottom: 1px solid var(--c-border);
}

.mockup__dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #fc6058;
}

.dot-yellow {
  background: #fec42d;
}

.dot-green {
  background: #2ace5e;
}

.mockup__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-muted);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.3px;
}

.mockup__body {
  display: flex;
  height: 280px;
}

.mockup__sidebar {
  width: 120px;
  flex-shrink: 0;
  border-right: 1px solid var(--c-border);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fafbfc;
  margin: 0;
  list-style: none;
}

.mockup__menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: default;
  transition: background 0.1s, color 0.1s;
}

.mockup__menu-item-active {
  background: var(--c-blue-bg);
  color: var(--c-blue-dk);
}

.mockup__content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup__kpi-row {
  display: flex;
  gap: 0.75rem;
}

.mockup__kpi {
  flex: 1;
  background: var(--c-gray);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.mockup__kpi-val {
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 2px;
}

.mockup__kpi-green .mockup__kpi-val {
  color: var(--c-green-dk);
}

.mockup__kpi-lbl {
  font-size: 0.5rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mockup__chart-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  flex: 1;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 2px;
}

.mockup__bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.mockup__bar-fill {
  width: 100%;
  background: var(--c-blue-bd3);
  border-radius: 3px 3px 0 0;
  height: 100%;
  transition: background 0.2s;
}

.mockup__bar-fill-accent {
  background: var(--c-blue);
}

.mockup__alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  background: var(--c-green-bg2);
  border: 1px solid var(--c-green-bd);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

/* ============ CONTACT ============ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
  align-items: start;
}


.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c-gray);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact__info-item:hover {
  border-color: rgb(59 130 246 / 30%);
  box-shadow: var(--shadow-sm);
}

.contact__info-icon {
  font-size: 1.5rem;
}

.contact__info-item strong {
  display: block;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 2px;
}

.contact__info-item span {
  font-size: 0.75rem;
  color: var(--c-muted);
}

/* Contact form */
.contact-form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 1.75rem;
}

/* Lead form modal */
.lead-modal.lead-modal-open {
  display: flex;
}

.lead-modal__overlay {
  position: absolute;
  inset: 0;
}

.lead-modal__dialog {
  position: relative;
  max-width: 640px;
  margin: 6vh auto 0;
}

.lead-modal__form {
  box-shadow: 0 18px 45px rgb(2 6 23 / 35%);
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: var(--c-dark2);
}

body.lead-modal-open {
  overflow: hidden;
}

/* ============ FOOTER ============ */
footer {
  background: var(--c-dark);
  padding-top: 3.75rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.75rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.footer__brand .logo {
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 45%);
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 50%);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.social-btn:hover {
  border-color: var(--c-blue);
  color: var(--c-blue-lt);
  background: rgb(59 130 246 / 10%);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: block;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 55%);
  transition: color 0.14s;
}

.footer__col a:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 30%);
}

/* ============ UTILITY ============ */
.hidden {
  display: none !important;
}

/* ============ RESPONSIVE ============ */
@media (width <=900px) {
  .preview__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (width <=860px) {
  .header__actions .btn:last-child {
    display: none;
  }
}

@media (width <=680px) {
  nav {
    display: none;
  }

  .lead-modal__dialog {
    margin-top: 3vh;
  }

  .hero {
    padding: 4.5rem 0 3.75rem;
  }

  .hero__title {
    letter-spacing: -1px;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .mockup__sidebar {
    display: none;
  }
}
