/* ===== HostingX design system ===== */
:root {
  --color-bg: #f7f8fc;
  --color-surface: #ffffff;
  --color-dark: #0b1020;
  --color-dark-2: #131a30;
  --color-text: #1c2136;
  --color-text-muted: #5b6178;
  --color-border: #e6e8f0;
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #6366f1;
  --color-accent: #06b6d4;
  --color-success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 60, 0.16);
  --container-w: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.35); color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,0.08); }
.btn--light { background: #fff; color: var(--color-primary-dark); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn--disabled { opacity: .5; cursor: not-allowed; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; color: var(--color-text); flex-shrink: 0; }
.brand-logo { color: var(--color-text); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px;
  color: var(--color-text-muted); transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--color-bg); color: var(--color-text); }
.main-nav a.is-active { color: var(--color-primary); background: #eef1ff; }

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

.lang-switch { position: relative; }
.lang-switch__toggle {
  display: flex; align-items: center; gap: 6px; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 9px 12px; font-weight: 600; font-size: 13px; color: var(--color-text);
}
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 160px; padding: 6px; display: none; z-index: 50;
}
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.lang-switch__menu a:hover { background: var(--color-bg); }
.lang-switch__menu a.is-active { color: var(--color-primary); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; background: radial-gradient(120% 140% at 15% -10%, #262f57 0%, var(--color-dark) 55%, var(--color-dark-2) 100%);
  color: #fff; padding: 96px 0 110px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--color-primary); top: -140px; right: -80px; }
.hero::after { width: 320px; height: 320px; background: var(--color-accent); bottom: -160px; left: 8%; }
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 19px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: #fff; padding: 72px 0 88px; text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 42px); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; text-align: center;
}
.trust-bar__item { font-weight: 700; font-size: 15px; color: var(--color-text); }
.trust-bar__item span { display: block; font-size: 13px; font-weight: 500; color: var(--color-text-muted); margin-top: 2px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--color-surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 12px;
}

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 30px; transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef1ff, #e0e7ff); color: var(--color-primary); margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; }

/* ===== Category cards (home) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 26px 20px; text-align: center; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary-light); }
.cat-card__icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--color-primary); }
.cat-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; margin: 0; }

/* ===== Pricing ===== */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 48px; }
.pricing-toggle__label { font-weight: 600; font-size: 15px; color: var(--color-text-muted); }
.pricing-toggle__label.is-active { color: var(--color-text); }
.pricing-toggle__switch {
  position: relative; width: 52px; height: 28px; background: var(--color-border); border-radius: 999px; border: none; padding: 0;
}
.pricing-toggle__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.pricing-toggle__switch.is-annual { background: var(--color-primary); }
.pricing-toggle__switch.is-annual::after { transform: translateX(24px); }
.pricing-toggle__save {
  font-size: 12.5px; font-weight: 700; color: var(--color-success); background: #ecfdf3; padding: 4px 10px; border-radius: 999px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.plan-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 32px 26px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s ease, transform .2s ease;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card--featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg); transform: scale(1.03); z-index: 1; }
.plan-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { font-size: 21px; margin-bottom: 4px; }
.plan-card__tagline { font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 20px; min-height: 34px; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-card__price strong { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plan-card__price span { color: var(--color-text-muted); font-size: 14px; }
.plan-card__renewal { font-size: 12.5px; color: var(--color-text-muted); margin-bottom: 22px; }
.plan-card__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.plan-card__specs span { background: var(--color-bg); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; }
.plan-card__features { flex: 1; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-card__features li { display: flex; gap: 9px; font-size: 14px; align-items: flex-start; }
.plan-card__features li svg { flex-shrink: 0; margin-top: 3px; color: var(--color-success); }

.billing-panel { display: none; }
.billing-panel.is-active { display: block; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; font-size: 16.5px; color: var(--color-text);
}
.faq-item__icon { transition: transform .2s ease; flex-shrink: 0; color: var(--color-primary); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.is-open .faq-item__a { max-height: 320px; }
.faq-item__a p { padding-bottom: 20px; margin: 0; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff;
  border-radius: var(--radius-lg); padding: 56px; text-align: center; margin: 0 24px;
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 28px; }

/* ===== About stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat-card { text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 30px; }
.stat-card strong { display: block; font-size: 34px; color: var(--color-primary); }
.stat-card span { font-size: 14px; color: var(--color-text-muted); }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 16px; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; }

.payment-options { display: grid; gap: 12px; margin-bottom: 8px; }
.payment-option {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer;
}
.payment-option input { width: auto; }
.payment-option--disabled { opacity: .55; cursor: not-allowed; background: var(--color-bg); }
.payment-option__tag {
  margin-left: auto; font-size: 11.5px; font-weight: 700; text-transform: uppercase; background: var(--color-border);
  padding: 3px 9px; border-radius: 999px;
}

.order-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 96px; }
.order-summary h3 { font-size: 17px; }
.order-summary__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.order-summary__row:last-of-type { border-bottom: none; }
.order-summary__total { font-size: 20px; font-weight: 800; margin-top: 8px; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; font-size: 14.5px; }
.alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--success { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }

/* ===== Status badges (used on public account page and admin) ===== */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--pending { background: #fffbeb; color: #92400e; }
.badge--paid { background: #ecfdf3; color: #15803d; }
.badge--cancelled { background: #fef2f2; color: #b91c1c; }
.badge--active { background: #ecfdf3; color: #15803d; }
.badge--inactive { background: var(--color-border); color: var(--color-text-muted); }
.badge--featured { background: #eef1ff; color: var(--color-primary-dark); }

.success-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px; max-width: 620px; margin: 0 auto; }
.success-box__icon { width: 56px; height: 56px; border-radius: 50%; background: #ecfdf3; color: var(--color-success); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.bank-details { background: var(--color-bg); border-radius: var(--radius-sm); padding: 20px; margin: 20px 0; }
.bank-details__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--color-border); }
.bank-details__row:last-child { border-bottom: none; }
.bank-details__row strong { font-family: 'Courier New', monospace; }
.ref-badge { display: inline-block; font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700; background: #eef1ff; color: var(--color-primary-dark); padding: 8px 16px; border-radius: 8px; }

/* ===== Legal pages ===== */
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 19px; }
.legal-notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 32px; font-size: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.7); padding-top: 64px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__brand p { margin-top: 14px; font-size: 14px; max-width: 260px; }
.site-footer h3 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 14px; color: rgba(255,255,255,0.65); }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.site-footer__bottom p { margin: 0; font-size: 12.5px; text-align: center; color: rgba(255,255,255,0.55); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 96px; color: var(--color-primary); margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 20px 24px; display: none; overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
  .cta-band { margin: 0 16px; padding: 40px 24px; }
  .order-summary { position: static; }
}
