:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --surface-2: #1d222d;
  --text: #f1f5ff;
  --muted: #adb8cd;
  --line: #303848;
  --brand: #ff7a00;
  --brand-2: #ff9f43;
  --accent: #ffa451;
  --dark-btn: #10131a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 12% 22%, #ff8c1a14 0%, transparent 35%),
    radial-gradient(circle at 86% 78%, #2b344614 0%, transparent 33%),
    linear-gradient(145deg, #11151d 0%, #0e131a 56%, #0b0f15 100%);
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, #2a1608 0%, #0d0f14 36%),
    radial-gradient(circle at 88% 88%, #20150d 0%, #0d0f14 34%),
    var(--bg);
}

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

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

.header-inner {
  width: min(1160px, 94vw);
  margin: 0 auto;
  background: linear-gradient(140deg, #171c26 0%, #12161f 100%);
  border: 1px solid #2f3645;
  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: #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: #10131a;
  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 #ff7f1247;
  filter: brightness(1.04);
}

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

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

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

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

.breadcrumb span { padding: 0 6px; }

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

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: #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 #5b3b1f;
  background: linear-gradient(130deg, #2a1d12 0%, #1e1812 100%);
  color: #ffc48a;
  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: #11151d;
}

.btn-ghost {
  border: 1px solid #565f71;
  color: #d4dced;
  background: #1a1f29;
}

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

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

.hero-media {
  background: linear-gradient(140deg, #1b202a 0%, #141821 100%);
  border: 1px solid #2f394a;
  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, #141925 0%, #10141d 100%);
  border-top: 1px solid #252d3c;
  border-bottom: 1px solid #252d3c;
  padding: 22px 0;
}

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

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

.benefits-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #ffb36a;
}

.benefits-grid p {
  margin: 0;
  color: #b7c2d8;
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.modules,
.plans,
.faq {
  background: #11151d;
}

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

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: #aeb9cf;
}

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

.modules-grid article {
  border: 1px solid #2e3646;
  border-radius: 12px;
  background: #1a1f2a;
  padding: 16px;
}

.modules-grid h3 {
  margin: 0 0 8px;
  color: #ffc185;
  font-size: 1.15rem;
}

.modules-grid p {
  margin: 0;
  color: #b9c5db;
  line-height: 1.55;
}

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

.steps article {
  background: #1b212d;
  border: 1px solid #313a4c;
  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: #151a24;
  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: #b8c4da;
}

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

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

.plan-card.featured {
  border-color: #ff9c3a;
  box-shadow: 0 10px 22px #ff8d2a2b;
}

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

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #161b24;
  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-card h3 .plan-variant {
  font-size: 0.62em;
  font-weight: 600;
  opacity: 0.9;
}

.plan-target {
  margin: 0;
  color: #b8c3d9;
  font-weight: 600;
  min-height: 2.8em;
}

.plan-price {
  margin: 14px 0 10px;
}

.plan-price strong {
  font-size: 1.95rem;
  color: #ffd1a0;
}

.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 #ff9d3b;
  color: #1a1f29;
  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 #ff8f2f40;
}

.table-wrap {
  margin-top: 18px;
  border: 1px solid #30394b;
  border-radius: 12px;
  background: #1b202b;
  overflow: auto;
}

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

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

th {
  background: #232b39;
  color: #ffb870;
}

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

td { color: #d2dbeb; }

tr:nth-child(even) td { background: #202735; }

.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: #1a202b;
  border: 1px solid #323c4f;
  border-radius: 10px;
  margin-bottom: 8px;
}

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

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

.final-cta {
  text-align: center;
  border-top: 1px solid #2a3342;
}

.final-cta p {
  color: #b6c1d7;
  margin: 12px 0 18px;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid #2a3242;
  padding-bottom: 94px;
  background:
    radial-gradient(circle at 12% 22%, #ff8c1a14 0%, transparent 35%),
    radial-gradient(circle at 86% 78%, #2b344614 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;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}

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

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

.footer-columns h3 {
  margin: 0 0 10px;
  color: #ffb56e;
  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: #ffc487;
  text-shadow: 0 0 8px #ff9b3a40;
}

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

.back-to-top {
  position: fixed;
  right: clamp(14px, 2.3vw, 30px);
  bottom: clamp(92px, 9vw, 114px);
  width: 52px;
  height: 52px;
  border: 1px solid #ff9f43;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f242f 0%, #252b38 44%, #ff7a00 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 #ffb06f40 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 #ffcc9959 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 #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;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}

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

.floating-btn-solid {
  color: #171b24;
  border: 1px solid #ff9d3b;
  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;
  }
}
