/* ==========================================================================
   HZ PoS — Landing Page Styles
   ========================================================================== */

:root {
  --color-primary: #00ABEB;
  --color-primary-dark: #0090c9;
  --color-secondary: #08296C;
  --color-secondary-light: #0f3a8f;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fc;
  --color-text: #1c2b3a;
  --color-text-light: #5b6b7d;
  --color-border: #e3ebf3;

  --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));

  --font-main: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(8, 41, 108, 0.06);
  --shadow-md: 0 10px 30px rgba(8, 41, 108, 0.10);
  --shadow-lg: 0 20px 50px rgba(8, 41, 108, 0.15);

  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ===== UTILITIES ===== */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 171, 235, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-text {
  color: var(--color-text-light);
  font-size: 1.02rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

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

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn--white {
  background: #fff;
  color: var(--color-secondary);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

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

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand__hz {
  color: var(--color-primary);
}

.brand__pos {
  color: var(--color-secondary);
}

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition);
}

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

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 150px 0 90px;
  background: radial-gradient(circle at 80% 0%, rgba(0, 171, 235, 0.08), transparent 55%),
              radial-gradient(circle at 0% 100%, rgba(8, 41, 108, 0.06), transparent 45%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

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

.stat__number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Hero mockup */
.hero__image {
  position: relative;
}

.hero__glow {
  position: absolute;
  inset: -40px;
  background: var(--gradient-brand);
  opacity: 0.18;
  filter: blur(60px);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.mockup {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.mockup__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup__bar span:nth-child(1) { background: #ff6b6b; }
.mockup__bar span:nth-child(2) { background: #ffd166; }
.mockup__bar span:nth-child(3) { background: #06d6a0; }

.mockup__body {
  padding: 24px;
}

.mockup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mockup__card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--color-border);
}

.mockup__icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.mockup__line {
  height: 8px;
  border-radius: 4px;
  background: var(--color-border);
  margin-top: 8px;
}

.mockup__line--sm { width: 50%; }
.mockup__line--lg { width: 85%; background: var(--color-primary); opacity: 0.4; }

.mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 16px;
}

.mockup__bar-chart {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--gradient-brand);
  opacity: 0.85;
}

/* ===== TRUSTBAR ===== */
.trustbar {
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.trustbar p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.trustbar__tags {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trustbar__tags span {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ===== MODULES ===== */
.modules {
  padding: 110px 0;
  background: var(--color-bg-alt);
}

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

.module-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.module-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 171, 235, 0.1);
  margin-bottom: 20px;
}

.module-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.module-card__text {
  color: var(--color-text-light);
  font-size: 0.94rem;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 110px 0;
}

.benefits__container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.benefits__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.benefits__list h4 {
  color: var(--color-secondary);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.benefits__list p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* Ticket mockup */
.benefits__image {
  display: flex;
  justify-content: center;
}

.ticket {
  width: 280px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px;
  font-family: 'Courier New', monospace;
  border: 1px solid var(--color-border);
  transform: rotate(-2deg);
}

.ticket__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.ticket__logo {
  width: 22px;
  height: 22px;
}

.ticket__line {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.ticket__divider {
  border-top: 1px dashed var(--color-border);
  margin: 14px 0;
}

.ticket__item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.ticket__item--total {
  font-weight: 800;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.ticket__barcode {
  margin-top: 18px;
  height: 40px;
  background: repeating-linear-gradient(90deg, var(--color-secondary) 0 2px, transparent 2px 5px);
  opacity: 0.85;
}

/* ===== CTA ===== */
.cta {
  background: var(--gradient-brand);
  padding: 80px 0;
}

.cta__container {
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta p {
  opacity: 0.92;
  margin-bottom: 30px;
}

/* ===== CONTACT ===== */
.contact {
  padding: 110px 0;
  background: var(--color-bg-alt);
}

.contact__container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
}

.contact__list h4 {
  color: var(--color-secondary);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.contact__list p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.contact__form {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 1px solid var(--color-border);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.form__group input,
.form__group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: var(--transition);
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 171, 235, 0.15);
}

.form__group.has-error input,
.form__group.has-error textarea {
  border-color: #e5484d;
}

.form__error {
  font-size: 0.78rem;
  color: #e5484d;
  min-height: 14px;
}

.form__submit {
  grid-column: 1 / -1;
  width: 100%;
}

.form__status {
  grid-column: 1 / -1;
  display: none;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.form__status:not(:empty) {
  display: block;
}

.form__status--success {
  color: #0a8a4a;
  background: rgba(10, 138, 74, 0.08);
}

.form__status--error {
  color: #e5484d;
  background: rgba(229, 72, 77, 0.08);
}

/* Honeypot: kept in the accessibility tree layout-wise but pushed off-screen,
   so simple bots that auto-fill every field still get caught. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-secondary);
  color: #cfd9ee;
  padding: 70px 0 0;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__hz {
  color: var(--color-primary);
}

.footer .brand__pos {
  color: #fff;
}

.footer__brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 260px;
}

.footer__col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: var(--transition);
}

.footer__col a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer__col li {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer__bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.82rem;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero__container,
  .benefits__container,
  .contact__container {
    grid-template-columns: 1fr;
  }

  .benefits__image {
    order: -1;
  }

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

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

@media (max-width: 768px) {
  .header__container {
    height: 64px;
  }

  .brand__logo {
    height: 80px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.open {
    max-height: 300px;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }

  .nav__list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__actions .btn--primary.btn--sm {
    display: none;
  }

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

  .hero__stats {
    gap: 24px;
  }

  .contact__form {
    grid-template-columns: 1fr;
    padding: 26px;
  }

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

@media (max-width: 480px) {
  .hero {
    padding-top: 120px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }
}
