: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% 16%, #132040 0%, #0f1219 36%),
    radial-gradient(circle at 92% 76%, #1a2238 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: #10151fe8;
  backdrop-filter: blur(5px);
}

.header-inner {
  width: min(1160px, 94vw);
  margin: 0 auto;
  background: linear-gradient(140deg, #171d29 0%, #121722 100%);
  border: 1px solid #2e384c;
  border-radius: 10px;
  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: #ccd5e7;
  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: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #4ea2ff4d;
}

.hero {
  padding: 40px 0 30px;
  background: linear-gradient(180deg, #111826 0%, #101620 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  margin: 0 0 12px;
  color: #9eb0cf;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #c9d5ec;
  text-decoration: none;
}

.breadcrumb span { padding: 0 6px; }

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

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

h1 span { color: #78bcff; }

.hero-description {
  color: #c2cee3;
  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 #334c78;
  background: linear-gradient(130deg, #162744 0%, #122236 100%);
  color: #b8d8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-card {
  background: #171f2d;
  border: 1px solid #2f3c55;
  border-radius: 14px;
  padding: 16px;
}

.summary-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.summary-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.summary-card a {
  text-decoration: none;
  color: #cfe3ff;
  font-weight: 600;
}

.summary-card a:hover,
.summary-card a:focus-visible {
  color: #7dbdff;
}

.contracts,
.policy,
.references {
  padding: 54px 0;
}

.contracts { background: #121927; }
.policy { background: #151d2b; border-top: 1px solid #2c3850; border-bottom: 1px solid #2c3850; }
.references { background: #121927; }

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.contract-block {
  margin-top: 18px;
  background: #1a2230;
  border: 1px solid #31415d;
  border-radius: 12px;
  padding: 18px;
}

.contract-block h3 {
  margin: 0;
  color: #8bc2ff;
  font-size: 1.25rem;
}

.tagline {
  margin: 8px 0 0;
  color: #c4d7f4;
}

.contract-block ol {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.62;
  color: #d3def1;
}

.contract-block li + li { margin-top: 6px; }

.policy-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.policy-grid article {
  background: #1a2230;
  border: 1px solid #31415d;
  border-radius: 12px;
  padding: 16px;
}

.policy-grid h3 {
  margin: 0 0 8px;
  color: #9acbff;
}

.policy-grid p {
  margin: 0;
  color: #c6d6f0;
  line-height: 1.6;
}

.legal-note {
  margin: 14px 0 0;
  color: #aebdd8;
  font-size: 0.92rem;
}

.references ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #d4e1f8;
  line-height: 1.7;
}

.references a {
  color: #9acbff;
  text-decoration: none;
}

.references a:hover,
.references a:focus-visible {
  color: #d5e9ff;
  text-decoration: underline;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid #2a3242;
  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, #11151d 0%, #0e131a 56%, #0b0f15 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 #2a3242;
}

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

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

.footer-columns h3 {
  margin: 0 0 10px;
  color: #9ec9ff;
  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;
}

.footer-columns a:hover,
.footer-columns a:focus-visible {
  color: #cfe5ff;
}

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

.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; }

.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 #414a5c;
  background: #181d27eb;
  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;
}

.floating-btn-outline {
  color: #d4e7ff;
  border: 1px solid #5e7cad;
  background: linear-gradient(135deg, #232935 0%, #1b202a 100%);
}

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

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-nav { display: none; }
  .footer-columns { 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;
  }

  .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;
  }
}
