:root {
  --ais-primary: #0058e5;
  --ais-dark: #0b1f4a;
  --ais-muted: #64748b;
  --section-y: 48px;
  --section-y-compact: 36px;
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #1e293b;
  line-height: 1.5;
}

#page.site { overflow-x: hidden; }

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 8px 0;
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: nowrap;
}

.main-navigation .menu li { margin: 0; }

.main-navigation .menu a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-navigation .menu a:hover { color: var(--ais-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-login-btn {
  padding: 10px 18px !important;
  font-size: 0.875rem;
}

.btn-ais-secondary {
  background: #fff !important;
  color: var(--ais-primary) !important;
  border: 2px solid var(--ais-primary);
  padding: 10px 18px !important;
  font-size: 0.875rem;
}

.btn-ais-secondary:hover {
  background: #eff6ff !important;
  color: #0046b8 !important;
}

/* ── Hero ── */
.banner-area {
  background: #f4f8ff;
  position: relative;
  overflow: hidden;
  padding: 20px 0 28px;
}

.banner-area .container {
  position: relative;
  z-index: 1;
}

.banner-cover-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(11, 31, 74, .16);
  border: 1px solid rgba(0, 88, 229, .1);
  background: #fff;
}

.banner-cover {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.banner-actions .btn-ais-outline {
  border-color: var(--ais-primary);
  color: var(--ais-primary) !important;
}

.banner-actions .btn-ais-outline:hover {
  background: rgba(0, 88, 229, .08);
}

.banner-content {
  color: #fff;
  padding: 0;
}

.banner-eyebrow {
  letter-spacing: .12em;
  font-size: .75rem;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 10px;
}

.banner-price-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-price {
  margin: 0 0 2px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}

.hero-price-note {
  margin: 0 0 14px;
  font-size: .78rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.banner-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff !important;
  text-transform: none !important;
  width: auto !important;
}

.banner-subtitle {
  font-size: 1.05rem;
  max-width: 600px;
  opacity: .92;
  margin: 0 0 22px;
  line-height: 1.55;
}

.hero-highlight {
  background: rgba(11, 31, 74, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 22px 24px;
  color: #f1f5f9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-highlight-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.hero-highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-highlight-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 10px;
}

.hero-highlight-list li:last-child { margin-bottom: 0; }

.hero-highlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7dd3fc;
  font-weight: 700;
}

.hero-highlight-list code {
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Sections ── */
.section-padding {
  padding: var(--section-y) 0;
}

.section-compact {
  padding: var(--section-y-compact) 0;
}

.section-padding .text-center.mb-5,
.section-compact .text-center.mb-5 {
  margin-bottom: 2rem !important;
}

.color-blue { color: var(--ais-primary); }

.stats-strip {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ais-primary);
  line-height: 1.2;
}

.stat-item span {
  font-size: .8rem;
  color: var(--ais-muted);
}

.package-card,
.audience-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  background: #fff;
}

.package-card h5,
.audience-card h6 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  height: 100%;
}

.feature-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.35rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ais-primary);
  font-weight: 700;
}

.techloom-button,
.btn-ais-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--ais-primary);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.techloom-button:hover,
.btn-ais-primary:hover {
  background: #0046b8;
  color: #fff;
}

.btn-ais-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
}

.btn-ais-outline:hover {
  background: rgba(255,255,255,.12);
}

.site-footer {
  background: var(--ais-dark);
  color: #cbd5e1;
  padding: 32px 0 20px;
}

.site-footer .site-logo {
  height: 72px;
  width: auto;
  max-width: 180px;
  filter: none;
  border-radius: 12px;
  background: #fff;
  padding: 6px 10px;
}

.site-footer a { color: #93c5fd; text-decoration: none; }

/* Modals */
.ais-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 74, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .28s ease;
}

.ais-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.ais-modal {
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 55%, #f0f6ff 100%);
  border-radius: 22px;
  width: 100%;
  max-width: 440px;
  padding: 0;
  box-shadow:
    0 32px 80px rgba(0, 40, 120, .28),
    0 0 0 1px rgba(255, 255, 255, .65) inset;
  position: relative;
  overflow: hidden;
  transform: translateY(18px) scale(.97);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.ais-modal-overlay.is-open .ais-modal {
  transform: translateY(0) scale(1);
}

.ais-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 88, 229, .45), rgba(147, 197, 253, .2) 40%, rgba(0, 88, 229, .15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ais-modal-floats {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ais-modal-floats span {
  position: absolute;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0, 88, 229, .14);
  white-space: nowrap;
  animation: aisModalFloat 9s ease-in-out infinite;
}

.ais-modal-floats span:nth-child(1) { top: 8%; left: -4%; animation-delay: 0s; }
.ais-modal-floats span:nth-child(2) { top: 22%; right: -8%; animation-delay: -2s; font-size: .65rem; }
.ais-modal-floats span:nth-child(3) { top: 42%; left: 6%; animation-delay: -4s; }
.ais-modal-floats span:nth-child(4) { bottom: 38%; right: 4%; animation-delay: -1s; }
.ais-modal-floats span:nth-child(5) { bottom: 18%; left: -6%; animation-delay: -3s; font-size: .8rem; }
.ais-modal-floats span:nth-child(6) { top: 58%; right: -2%; animation-delay: -5s; }
.ais-modal-floats span:nth-child(7) { bottom: 6%; right: 18%; animation-delay: -6s; font-size: .62rem; }

@keyframes aisModalFloat {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); opacity: .55; }
  33% { transform: translate(6px, -10px) rotate(1deg); opacity: .9; }
  66% { transform: translate(-4px, 8px) rotate(-1deg); opacity: .7; }
}

.ais-modal-inner {
  position: relative;
  z-index: 1;
  padding: 30px 30px 28px;
}

.ais-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ais-primary);
  background: rgba(0, 88, 229, .08);
  border: 1px solid rgba(0, 88, 229, .15);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

.ais-modal-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ais-primary);
  box-shadow: 0 0 0 3px rgba(0, 88, 229, .2);
}

.ais-modal .site-logo {
  height: 64px;
  max-width: 180px;
  filter: none;
  margin-bottom: 10px;
}

.ais-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.ais-modal-close:hover {
  background: #fff;
  color: var(--ais-dark);
  transform: scale(1.05);
}

.ais-modal h3 {
  margin: 0 0 .5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ais-dark);
  line-height: 1.2;
}

.ais-modal-lead h3 {
  background: linear-gradient(120deg, var(--ais-dark) 0%, var(--ais-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ais-modal p {
  color: var(--ais-muted);
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ais-modal-field {
  margin-bottom: .95rem;
}

.ais-modal label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #334155;
}

.ais-modal input[type="text"],
.ais-modal input[type="email"],
.ais-modal input[type="password"] {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
  background: rgba(255, 255, 255, .9);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.ais-modal input::placeholder {
  color: #94a3b8;
}

.ais-modal input:focus {
  outline: none;
  border-color: var(--ais-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 88, 229, .12);
}

.ais-modal .btn-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: .35rem;
  background: linear-gradient(135deg, #0060f0 0%, #0046b8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 88, 229, .32);
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.ais-modal .btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 88, 229, .38);
}

.ais-modal .btn-submit:active {
  transform: translateY(0);
}

.ais-modal .btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ais-field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ais-form-message {
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.ais-form-message.is-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ais-form-message.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (prefers-reduced-motion: reduce) {
  .ais-modal-floats span { animation: none; opacity: .35; }
  .ais-modal-overlay,
  .ais-modal { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .main-navigation { display: none; }

  .header-inner {
    min-height: 64px;
    justify-content: space-between;
  }

  .header-actions .btn-ais-secondary {
    display: none;
  }

  .header-actions .header-login-btn {
    padding: 8px 14px !important;
    font-size: 0.8rem;
  }

  .site-logo {
    height: 48px;
    max-width: 160px;
  }

  .banner-area {
    padding: 12px 0 20px;
  }

  .banner-cover-wrap {
    border-radius: 12px;
  }

  .banner-actions {
    margin-top: 14px;
    gap: 10px;
  }

  .banner-actions .techloom-button {
    flex: 1 1 auto;
    text-align: center;
    min-width: 140px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .main-navigation .menu a {
    font-size: 0.82rem;
  }

  .main-navigation .menu {
    gap: 12px;
  }
}
