:root {
  --bg: #0f1219;
  --surface: #171c27;
  --surface-2: #1d2431;
  --text: #eef3ff;
  --muted: #afbbd2;
  --line: #2f3a4f;
  --brand: #2563eb;
  --brand-2: #62c9fe;
  --accent: #58a7ff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 12% 22%, #2f72ea14 0%, transparent 35%),
    radial-gradient(circle at 86% 78%, #5db8ff14 0%, transparent 33%),
    linear-gradient(145deg, #111826 0%, #0f151f 56%, #0c1119 100%);
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, #12203a 0%, #0f1219 36%),
    radial-gradient(circle at 88% 88%, #151d2f 0%, #0f1219 34%),
    var(--bg);
}

.container { width: min(1160px, 94vw); margin: 0 auto; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  background: #0f131ce8;
  backdrop-filter: blur(6px);
}

.header-inner {
  width: min(1160px, 94vw);
  margin: 0 auto;
  background: linear-gradient(140deg, #171d29 0%, #121722 100%);
  border: 1px solid #2e384c;
  border-radius: 12px;
  box-shadow: 0 10px 24px #0000004d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}

.brand-logo { height: 52px; width: auto; display: block; }

.header-nav { display: flex; gap: 16px; flex-wrap: wrap; }

.header-nav a {
  text-decoration: none;
  color: #ccd7ed;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.12s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible { color: var(--accent); }

.header-cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #2f72ea45;
  filter: brightness(1.04);
}

.hero { padding: 38px 0 30px; background: linear-gradient(180deg, #111724 0%, #0f1219 100%); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 30px;
  align-items: center;
}

.breadcrumb { margin: 0 0 12px; color: #90a0bb; font-size: 0.9rem; }
.breadcrumb a { color: #b6c6e2; text-decoration: none; }
.breadcrumb span { padding: 0 6px; }

.kicker {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #6fb8ff;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 span { color: var(--brand-2); }

.hero-description { color: #c0cee6; max-width: 58ch; margin-top: 16px; }

.hero-highlights {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-highlights span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #29477a;
  background: linear-gradient(130deg, #17233a 0%, #141d31 100%);
  color: #8cc9ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary,
.btn-ghost,
.plan-btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}

.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-ghost { border: 1px solid #56647f; color: #d4def0; background: #1a2130; }

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #2f72ea40;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  border-color: #7286ac;
  box-shadow: 0 10px 20px #0000003a;
}

.hero-media {
  background: linear-gradient(140deg, #1b2230 0%, #141b27 100%);
  border: 1px solid #304057;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 26px #00000040;
}

.hero-media img { width: 100%; border-radius: 12px; display: block; }

.benefits-strip {
  background: linear-gradient(180deg, #141c29 0%, #101722 100%);
  border-top: 1px solid #26344a;
  border-bottom: 1px solid #26344a;
  padding: 22px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefits-grid article {
  background: #181f2d;
  border: 1px solid #2f3c54;
  border-radius: 12px;
  padding: 14px;
}

.benefits-grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: #84c3ff; }
.benefits-grid p { margin: 0; color: #b5c3dc; font-size: 0.92rem; line-height: 1.5; }

.modules,
.process,
.plans,
.comparison,
.faq,
.final-cta { padding: 58px 0; }

.modules,
.plans,
.faq { background: #111826; }

.process,
.comparison,
.final-cta { background: #151d2b; }

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-sub { margin: 10px 0 0; color: #adbad1; }

.modules-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.modules-grid article {
  border: 1px solid #304059;
  border-radius: 12px;
  background: #1a2231;
  padding: 16px;
}

.modules-grid h3 { margin: 0 0 8px; color: #8bc8ff; font-size: 1.15rem; }
.modules-grid p { margin: 0; color: #b8c6df; line-height: 1.55; }

.steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.steps article {
  background: #1b2434;
  border: 1px solid #31415b;
  border-radius: 12px;
  padding: 16px;
}

.steps b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.steps h3 { margin: 10px 0 6px; font-size: 1.35rem; letter-spacing: -0.02em; }
.steps p { margin: 0; color: #b8c6de; }

.plans-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  border: 1px solid #31415b;
  border-radius: 12px;
  background: #1a2231;
  padding: 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.plan-card.featured { border-color: #55aefe; box-shadow: 0 10px 22px #2f72ea2b; }

.plan-card:hover,
.plan-card:focus-within {
  transform: translateY(-4px);
  border-color: #67b7ff;
  box-shadow: 0 16px 30px #00000042;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.75rem;
}

.plan-card h3 { margin: 10px 0 6px; font-size: 1.5rem; }
.plan-target { margin: 0; color: #b8c5de; font-weight: 600; min-height: 2.8em; }

.plan-price { margin: 14px 0 10px; }
.plan-price strong { font-size: 1.95rem; color: #9dd5ff; }

.plan-card ul { margin: 10px 0 14px; padding-left: 18px; color: #c2cee2; line-height: 1.65; }

.plan-btn {
  width: 100%;
  text-align: center;
  border: 1px solid #66b7ff;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
}

.plan-btn:hover,
.plan-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px #2f72ea40;
}

.table-wrap {
  margin-top: 18px;
  border: 1px solid #32435e;
  border-radius: 12px;
  background: #1a2231;
  overflow: auto;
}

table { width: 100%; border-collapse: collapse; min-width: 760px; }

th,
td { padding: 12px 14px; border-bottom: 1px solid #304059; text-align: center; }

th { background: #222d40; color: #8ecbff; }

th:first-child,
td:first-child { text-align: left; width: 32%; font-weight: 600; }

td { color: #d2dcef; }
tr:nth-child(even) td { background: #202a3c; }

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.faq-grid p { color: #adb9d0; margin: 0; }

.faq details {
  background: #1a2231;
  border: 1px solid #32435e;
  border-radius: 10px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #f2f5ff;
  background: #212c3f;
}

.faq details p { color: #b9c5db; margin: 0; padding: 0 16px 14px; }

.final-cta { text-align: center; border-top: 1px solid #2a3850; }
.final-cta p { color: #b6c1d7; margin: 12px 0 18px; }

.site-footer {
  margin-top: 52px;
  border-top: 1px solid #2a3850;
  padding-bottom: 94px;
  background:
    radial-gradient(circle at 12% 22%, #2f72ea14 0%, transparent 35%),
    radial-gradient(circle at 86% 78%, #5db8ff14 0%, transparent 33%),
    linear-gradient(145deg, #111826 0%, #0f151f 56%, #0c1119 100%);
}

.footer-inner { width: min(1160px, 94vw); margin: 0 auto; padding: 32px 0 28px; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo { width: auto; height: 52px; display: block; }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-social a {
  text-decoration: none;
  width: 40px;
  height: 40px;
  opacity: 0.9;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible { opacity: 1; transform: translateY(-1px); }

.footer-social a img { width: 30px; height: 30px; object-fit: contain; display: block; }
.footer-social .blog-link img { width: 34px; height: 34px; }

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2a3850;
}

.footer-links-row a {
  color: #b0bdd6;
  text-decoration: none;
  font: 600 0.9rem/1.3 "Montserrat", sans-serif;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}

.footer-links-row a:hover,
.footer-links-row a:focus-visible { color: #8ecbff; text-shadow: 0 0 8px #58b6ff4a; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-columns h3 {
  margin: 0 0 10px;
  color: #8bc8ff;
  font: 700 1.08rem/1.3 "Montserrat", sans-serif;
}

.footer-columns a {
  display: block;
  text-decoration: none;
  color: #afbdd6;
  font-weight: 300;
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.45;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}

.footer-columns a:hover,
.footer-columns a:focus-visible { color: #b9ddff; text-shadow: 0 0 8px #4cb1ff40; }

.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid #2a3850; }

.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}

.footer-legal { grid-column: 2; justify-self: center; }
.footer-legal p { margin: 0; color: #91a1bc; font-size: 0.84rem; line-height: 1.5; text-align: center; }
.footer-legal p + p { margin-top: 4px; }

.back-to-top {
  position: fixed;
  right: clamp(14px, 2.3vw, 30px);
  bottom: clamp(92px, 9vw, 114px);
  width: 52px;
  height: 52px;
  border: 1px solid #66b8ff;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a2436 0%, #2a3a56 44%, #49a8ff 100%);
  color: #fff;
  text-shadow: 0 0 8px #ffffff99;
  font: 900 1.45rem/1 "Archivo", sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px #00000066, 0 0 0 1px #8cc8ff40 inset;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.back-to-top:hover,
.back-to-top:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px #00000080, 0 0 0 1px #c8e7ff59 inset;
}

.floating-actions {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2.5vw, 24px);
  transform: translateX(-50%) translateY(16px);
  width: min(920px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #3f4f68;
  background: #1a2231eb;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 34px #00000057;
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.floating-actions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-btn {
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}

.floating-btn-outline {
  color: #cfe7ff;
  border: 1px solid #5a77a6;
  background: linear-gradient(135deg, #232d3f 0%, #1b2434 100%);
}

.floating-btn-solid {
  color: #fff;
  border: 1px solid #66b7ff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.floating-btn:hover,
.floating-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px #0000004f;
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .header-cta,
  .btn-primary,
  .btn-ghost,
  .plan-btn,
  .floating-actions,
  .floating-btn,
  .back-to-top { transition: none; }

  .plan-card:hover,
  .plan-card:focus-within,
  .header-cta:hover,
  .header-cta:focus-visible,
  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible,
  .plan-btn:hover,
  .plan-btn:focus-visible,
  .floating-btn:hover,
  .floating-btn:focus-visible,
  .back-to-top:hover,
  .back-to-top:focus-visible {
    transform: none;
    box-shadow: none;
    filter: none;
  }
}

@media (max-width: 1120px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-nav { display: none; }
  .hero-grid,
  .modules-grid,
  .steps,
  .plans-grid,
  .footer-columns,
  .benefits-grid { grid-template-columns: 1fr; }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom-row {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .floating-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    bottom: 10px;
    width: min(560px, calc(100vw - 18px));
    padding: 8px;
  }

  .floating-btn {
    min-height: 42px;
    font-size: 0.95rem;
  }

  .back-to-top {
    bottom: 158px;
    width: 48px;
    height: 48px;
  }

  .site-footer { padding-bottom: 164px; }
}

/* HTWS MOBILE CENTER FIX 2026-04-20 */
@media (max-width: 760px) {
  .container,
  main,
  .main,
  .header-inner,
  .footer-inner {
    text-align: center;
  }

  .header-inner {
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand,
  .header-cta,
  .client-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-highlights,
  .footer-social,
  .footer-links-row,
  .billing-controls,
  .section-actions {
    justify-content: center;
  }

  h1,
  h2,
  h3,
  h4,
  .kicker,
  .subtitle,
  .section-sub,
  .hero-description,
  .breadcrumb,
  .plan-target,
  .plan-price,
  .price,
  .price-note,
  .faq-intro,
  .faq-grid p,
  .footer-columns h3,
  .footer-columns a,
  .footer-links-row a,
  .footer-legal p {
    text-align: center;
  }

  .hero-description,
  .section-sub,
  .subtitle,
  .faq-grid p,
  .plan-target {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-top,
  .footer-bottom-row {
    align-items: center !important;
  }

  .footer-columns section {
    text-align: center;
  }

  .footer-columns a {
    margin-left: auto;
    margin-right: auto;
  }
}

/* HTWS FLOATING MOBILE MENU 2026-04-20 */
.floating-actions-mobile-toggle {
  display: none;
}

@media (max-width: 760px) {
  .floating-actions {
    width: min(380px, calc(100vw - 24px)) !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
    max-height: 56px;
    overflow: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.22s ease;
  }

  .floating-actions.is-open {
    max-height: 220px;
  }

  .floating-actions-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid #5b6f93;
    background: linear-gradient(135deg, #28344b 0%, #1b2537 100%);
    color: #e6efff;
    font: 700 0.92rem/1 "Montserrat", sans-serif;
    cursor: pointer;
  }

  .floating-actions .floating-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .floating-actions.is-open .floating-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* HTWS MOBILE FINE TUNE 2026-04-20 */
@media (max-width: 760px) {
  .container,
  .header-inner,
  .footer-inner,
  main,
  .main {
    width: min(94vw, 680px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero,
  .hero-grid,
  .hero-content,
  .hero-media,
  .plans-grid,
  .benefits-grid,
  .modules-grid,
  .steps,
  .faq-grid,
  .split,
  .table-wrap,
  .comparison-table,
  .billing-controls,
  .cta-row,
  .section-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .card,
  .plan-card,
  .benefits-grid article,
  .modules-grid article,
  .steps article,
  .faq details,
  .feature-card,
  .service-card,
  .pricing-card,
  .contact-card {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  th:first-child,
  td:first-child {
    text-align: center !important;
  }

  .btn,
  .btn-primary,
  .btn-ghost,
  .plan-btn,
  .header-cta,
  .client-btn {
    margin-left: auto;
    margin-right: auto;
  }
}
