/* Home page — complete rebuild (desktop-first).
   No dependency on legacy styles. */

:root{
  /* Light theme (default) */
  --hp-page-bg: #f8fafc;
  --hp-text: rgba(15,23,42,.92);
  --hp-muted: rgba(15,23,42,.70);
  --hp-faint: rgba(15,23,42,.56);
  --hp-surface: rgba(15,23,42,.04);
  --hp-surface-2: rgba(15,23,42,.06);
  --hp-border: rgba(15,23,42,.10);
  --hp-shadow: 0 18px 52px rgba(2,6,23,.12);
  --hp-header-bg: rgba(255,255,255,.86);
  --hp-header-border: rgba(15,23,42,.10);
  --hp-nav-link: rgba(15,23,42,.72);
  --hp-nav-link-hover-bg: rgba(15,23,42,.05);
  --hp-nav-link-hover: rgba(15,23,42,.92);
  --hp-nav-active-bg: rgba(37,99,235,.10);
  --hp-nav-active-border: rgba(37,99,235,.22);
  --hp-nav-active: rgba(29,78,216,.95);

  --hp-primary: #2563eb;
  --hp-primary-2: #60a5fa;
  --hp-accent: #0dd4b3;
  --hp-radius: 18px;
  --hp-pad-x: 56px; /* 1920 desktop */
  --hp-pad-y: 22px;
}


*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--hp-text);
  background: var(--hp-page-bg);
}

a{ color: inherit; text-decoration: none; }
img{ display:block; max-width: 100%; }

.hp{
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.hp-header{
  width: 100%;
  position: relative; /* scrolls with page */
  z-index: 10;
  background: var(--hp-header-bg);
  border-bottom: 1px solid var(--hp-header-border);
  backdrop-filter: blur(10px);
}
.hp-header__inner{
  width: 100%;
  padding: 12px var(--hp-pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.hp-brand__logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.hp-nav{
  display: flex;
  align-items: center;
  justify-content: flex-end; /* match Templates header placement */
  gap: 22px;
  min-width: 0;
}
.hp-nav__link{
  font-size: 15px;
  line-height: 1;
  color: var(--hp-nav-link);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background-color .18s ease, color .18s ease;
}
.hp-nav__link:hover{
  background: var(--hp-nav-link-hover-bg);
  color: var(--hp-nav-link-hover);
}
.hp-nav__link.is-active{
  background: var(--hp-nav-active-bg);
  border: 1px solid var(--hp-nav-active-border);
  color: var(--hp-nav-active);
}

.hp-header__cta{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* Header-only button tuning (match Templates look) */

/* Buttons */
.hp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1px;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.hp-btn:active{ transform: translateY(1px); }

.hp-btn--lg{ height: 48px; padding: 0 22px; font-size: 15px; }
.hp-btn--block{ width: 100%; }

.hp-btn--primary{
  background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
  color: #fff;
  box-shadow: 0 14px 34px rgba(37,99,235,.28);
}
.hp-btn--primary:hover{
  background: linear-gradient(180deg, rgba(59,130,246,1), rgba(37,99,235,1));
  color: #fff;
}

.hp-btn--outline{
  background: var(--hp-surface);
  border-color: var(--hp-border);
  color: var(--hp-text);
}
.hp-btn--outline:hover{
  background: var(--hp-surface-2);
  border-color: var(--hp-border);
}

.hp-btn--ghost{
  background: transparent;
  border-color: var(--hp-border);
  color: var(--hp-text);
}
.hp-btn--ghost:hover{
  background: var(--hp-surface);
}

/* Main */
.hp-main{
  width: 100%;
}

/* Hero */
.hp-hero{
  position: relative;
  /* Center the whole hero content block vertically (like the red frame screenshot) */
  min-height: calc(100vh - 76px); /* viewport minus header */
  display: flex;
  align-items: center;
}
.hp-hero__bg{
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(1200px 620px at 16% 12%, rgba(37,99,235,.18), rgba(248,250,252,0)),
    radial-gradient(900px 560px at 84% 10%, rgba(13,212,179,.14), rgba(248,250,252,0)),
    radial-gradient(1000px 640px at 55% 92%, rgba(96,165,250,.10), rgba(248,250,252,0));
  filter: blur(18px);
  opacity: .95;
  pointer-events: none;
}

.hp-hero__inner{
  position: relative;
  width: 100%;
  padding: 0 var(--hp-pad-x);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 40px;
  align-items: center;
}
.hp-hero__stage{
  justify-self: end;
  width: min(900px, 100%); /* 1x bigger preview area */
}
.hp-kicker{
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--hp-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.hp-title{
  margin: 0 0 14px;
  font-size: clamp(44px, 3.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hp-subtitle{
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--hp-muted);
  max-width: 72ch;
}
.hp-hero__actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hp-metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}
.hp-metric{
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  border-radius: 16px;
  padding: 14px 14px;
}
.hp-metric__value{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 14px;
  color: var(--hp-text);
}
.hp-metric__label{
  margin-top: 6px;
  font-size: 13px;
  color: var(--hp-muted);
}

/* Preview */
.hp-preview{
  /* glass frame (outer) */
  border-radius: 28px;
  border: 1px solid var(--hp-border);
  background:
    radial-gradient(520px 280px at 18% 12%, rgba(37,99,235,.10), rgba(255,255,255,0) 62%),
    radial-gradient(520px 280px at 82% 18%, rgba(13,212,179,.08), rgba(255,255,255,0) 62%),
    rgba(255,255,255,.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(2,6,23,.18);
  padding: 12px; /* less top/bottom padding inside glass frame */
  width: 100%;
  max-width: 880px; /* 1x bigger */
}

.hp-preview__paper{
  border-radius: 22px;
  border: 2px solid rgba(15,42,86,.18); /* keep only the big A4 border */
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,1));
  color: rgba(2,6,23,.92);
  aspect-ratio: 297 / 210; /* A4 landscape */
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 48px rgba(2,6,23,.18);
}
.hp-preview__frame{
  position: absolute;
  inset: 18px;     /* content padding relative to big frame */
  border: none;    /* remove inner frame */
  border-radius: 18px;
  padding: 0;
  display: flex;         /* make inner layout fill the big A4 frame */
  align-items: stretch;
}

/* Classic certificate layout (based on provided reference) */
.hp-cert{
  flex: 1 1 auto;        /* fill available height/width inside .hp-preview__frame */
  min-height: 0;
  border-radius: 10px;
  border: none; /* remove extra inner frame */
  position: relative;
  padding: 34px 44px 28px; /* better balance inside the big outer frame */
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto; /* ensures footer sits near bottom */
  overflow: hidden;
  /* Remove scaffold/grid background; keep clean paper feel */
  background:
    radial-gradient(520px 300px at 18% 18%, rgba(15,42,86,.05), rgba(255,255,255,0) 62%),
    radial-gradient(560px 320px at 86% 22%, rgba(15,42,86,.04), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
}
.hp-cert::before{ display:none; }
.hp-cert::after{
  content:"";
  position: absolute;
  inset: 0;
  opacity: .75;
  background:
    radial-gradient(circle at 12% 20%, rgba(15,42,86,.07), rgba(255,255,255,0) 55%),
    radial-gradient(circle at 88% 76%, rgba(15,42,86,.06), rgba(255,255,255,0) 58%);
  pointer-events: none;
}

.hp-cert__title{
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .12em;
  color: rgba(15,42,86,.96);
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hp-cert__subtitle{
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(15,42,86,.62);
  position: relative;
  z-index: 1;
}
.hp-cert__ornament{
  margin: 10px auto 14px;
  width: 240px;
  height: 16px;
  position: relative;
  z-index: 1;
  opacity: .9;
}
.hp-cert__ornament::before,
.hp-cert__ornament::after{
  content:"";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 86px;
  background: rgba(15,42,86,.22);
}
.hp-cert__ornament::before{ left: 0; }
.hp-cert__ornament::after{ right: 0; }
.hp-cert__ornament{
  background:
    radial-gradient(circle at 50% 50%, rgba(15,42,86,.25), rgba(255,255,255,0) 60%);
  border-radius: 999px;
}

.hp-cert__kicker{
  text-align: center;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(2,6,23,.52);
  position: relative;
  z-index: 1;
}
.hp-cert__name{
  margin-top: 10px;
  text-align: center;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: rgba(15,42,86,.96);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.hp-cert__name::after{
  content: "▍";
  display: inline-block;
  margin-left: 6px;
  color: rgba(15,42,86,.62);
  animation: hp-blink 1s steps(1) infinite;
}
.hp-cert__name.is-static::after{
  animation: none;
  opacity: .35;
}

@keyframes hp-blink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}
.hp-cert__body{
  margin: 6px auto 0; /* tighter gap below name */
  text-align: center;
  max-width: 72ch;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(2,6,23,.58);
  position: relative;
  z-index: 1;
}

.hp-cert__footer{
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}
.hp-cert__sig{
  display: grid;
  gap: 8px;
  align-content: end;
  justify-items: center; /* center text relative to the line */
  text-align: center;
}
.hp-cert__line{
  height: 2px;
  width: 180px;
  background: rgba(15,42,86,.28);
  border-radius: 999px;
}
.hp-cert__label{
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(15,42,86,.62);
}

.hp-cert__date{
  font-size: 12px;
  font-style: italic;
  color: rgba(15,42,86,.72);
}

.hp-cert__sign{
  font-family: Allura, "Segoe Script", "Brush Script MT", cursive;
  font-size: 18px;
  color: rgba(15,42,86,.78);
  transform: translateY(-2px);
}

.hp-cert__medal{
  width: 62px;
  height: 62px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
}
.hp-cert__medal-ring{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(15,42,86,.22), rgba(255,255,255,0) 60%),
    radial-gradient(circle at 70% 70%, rgba(15,42,86,.18), rgba(255,255,255,0) 60%),
    rgba(15,42,86,.08);
  border: 2px solid rgba(15,42,86,.28);
  box-shadow: 0 10px 20px rgba(2,6,23,.10);
}
.hp-cert__medal-text{
  position: relative;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(15,42,86,.78);
  text-align: center;
  line-height: 1.1;
}

/* Sections */
.hp-section{
  width: 100%;
  padding: 72px 0; /* 1.5x */
  position: relative;
}
.hp-section--alt{
  background: var(--hp-surface);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}
.hp-section__inner{
  width: 100%;
  padding: 0 var(--hp-pad-x);
}
.hp-section__head{
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.hp-h2{
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hp-lead{
  margin: 0;
  color: var(--hp-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 90ch;
}

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

.hp-card{
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  padding: 18px;
}

/* Templates Carousel */
/* Templates CTA Section */
.hp-section--templates-cta{
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(14,165,233,0.04) 100%);
  padding: 80px 0;
}

.hp-templates-cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  gap: 32px;
}

.hp-templates-cta__icon{
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(37,99,235,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-templates-cta__icon:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(37,99,235,0.35);
}

.hp-templates-cta__icon .lucide-icon{
  width: 64px;
  height: 64px;
  color: white;
  stroke-width: 2;
}

.hp-templates-cta__content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-templates-cta__content .hp-h2{
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.hp-templates-cta__content .hp-lead{
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--hp-muted);
  line-height: 1.6;
}

.hp-templates-cta__content .hp-btn{
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.hp-templates-cta__content .hp-btn .lucide-icon{
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.hp-templates-cta__content .hp-btn:hover .lucide-icon{
  transform: translateX(4px);
}

/* Old templates carousel styles (kept for reference but not used) */
.hp-section--templates-old{
  padding: 60px 0;
  background: var(--hp-page-bg);
}

.hp-templates-carousel{
  position: relative;
  margin-top: 32px;
}

.hp-carousel__container{
  position: relative;
  /* overflow: hidden removed to prevent top clipping */
  border-radius: var(--hp-radius);
  margin: 0 calc(var(--hp-pad-x) * -1);
  padding: 0 var(--hp-pad-x);
}

.hp-carousel__track{
  display: flex;
  gap: 16px;
  will-change: transform;
  /* Transition olib tashlandi - smooth animatsiya uchun */
}

.hp-carousel__item{
  flex: 0 0 auto;
  width: 240px;
}

/* Templates bo'limidagi kabi card ko'rinishi */
.hp-carousel__item.tpl-card {
  position: relative;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  /* box-shadow removed to prevent overlap */
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: default;
}

.hp-carousel__item.tpl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  /* box-shadow removed on hover to prevent overlap */
  box-shadow: none;
}

/* Template thumb (certificate preview) */
.hp-carousel__item .tpl-thumb {
  position: relative;
  padding: 12px;
  background: #ffffff;
  border-bottom: none;
}

.hp-carousel__item .tpl-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 200px at 20% 0%, rgba(15,23,42,0.12), rgba(255,255,255,0));
  pointer-events:none;
  z-index: 1;
}

.hp-carousel__item .tpl-thumb::before{
  content:"";
  position: relative;
  display:block;
  width: 100%;
  aspect-ratio: 297/210;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  /* Stronger box-shadow for template preview area */
  border: none;
  box-shadow: 0 10px 32px rgba(15,23,42,0.18), 0 2px 8px rgba(37,99,235,0.10);
  z-index: 0;
}

.hp-carousel__item .tpl-thumb-watermark{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 16px);
  color: rgba(15, 23, 42, 0.20);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Template color accents - kontrastroq va to'qroq ranglar */
.hp-carousel__item .tpl-thumb-1::after { background: radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,0.28), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-2::after { background: radial-gradient(520px 220px at 20% 0%, rgba(249,115,22,0.26), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-3::after { background: radial-gradient(520px 220px at 20% 0%, rgba(234,179,8,0.28), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-4::after { background: radial-gradient(520px 220px at 20% 0%, rgba(14,165,233,0.28), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-5::after { background: radial-gradient(520px 220px at 20% 0%, rgba(236,72,153,0.26), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-6::after { background: radial-gradient(520px 220px at 20% 0%, rgba(148,163,184,0.30), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-7::after { background: radial-gradient(520px 220px at 20% 0%, rgba(34,197,94,0.26), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-8::after { background: radial-gradient(520px 220px at 20% 0%, rgba(139,92,246,0.28), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-9::after { background: radial-gradient(520px 220px at 20% 0%, rgba(239,68,68,0.26), rgba(255,255,255,0)); }
.hp-carousel__item .tpl-thumb-10::after { background: radial-gradient(520px 220px at 20% 0%, rgba(59,130,246,0.28), rgba(255,255,255,0)); }

/* Card body */
.hp-carousel__item .tpl-card-body {
  padding: 14px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-carousel__item .tpl-card-title {
  font-size: 14px;
  margin: 0;
  color: #1e293b;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hp-carousel__item .tpl-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.hp-carousel__item .tpl-btn-sm {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  height: 28px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-carousel__item .btn.btn-primary {
  background: rgba(255,255,255,0.85);
  color: rgba(15,23,42,0.88);
  border: 1px solid rgba(15,23,42,0.14);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.hp-carousel__item .btn.btn-primary:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.85);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.hp-carousel__item .tpl-btn-ghost {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  padding: 7px 18px;
  font-size: 14px;
  min-width: 96px;
}

.hp-carousel__item .tpl-btn-ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Buttonlar olib tashlandi - avtomatik aylanish uchun */
.hp-h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hp-p{
  margin: 0;
  color: var(--hp-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Pricing */
.hp-price{
  border-radius: 22px;
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  padding: 20px;
  position: relative;
}
.hp-price--featured{
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(180deg, rgba(37,99,235,.10), rgba(15,23,42,.02));
}
.hp-badge{
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  background: rgba(37,99,235,.22);
  border: 1px solid rgba(37,99,235,.35);
  padding: 6px 10px;
  border-radius: 999px;
}
.hp-price__value{
  margin: 10px 0 4px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hp-price__note{
  margin: 0 0 14px;
  color: var(--hp-muted);
  font-size: 14px;
}
.hp-list{
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  color: var(--hp-muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */
.hp-footer{
  width: 100%;
  /* Footer stays in its own color (independent from theme) */
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(37,99,235,0.38), rgba(7,11,20,0)),
    radial-gradient(900px 520px at 88% 0%, rgba(13,212,179,0.22), rgba(7,11,20,0)),
    #070b14;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 46px 0 34px;
}
.hp-footer__inner{
  width: 100%;
  padding: 0 var(--hp-pad-x);
  display: grid;
  gap: 18px;
}
.hp-footer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hp-footer__logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.hp-footer__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.hp-footer__copy{
  margin: 0;
  color: rgba(248,250,252,0.70);
  font-size: 13px;
}
.hp-footer__links{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hp-footer__link{
  color: rgba(248,250,252,0.74);
  font-size: 13px;
}
.hp-footer__link:hover{ color: rgba(248,250,252,0.92); }


/* Responsive */
@media (max-width: 1100px){
  :root{ --hp-pad-x: 24px; }
  .hp-header__inner{ grid-template-columns: auto 1fr; }
  .hp-header__cta{ display:none; }
  .hp-nav{ justify-content: flex-end; gap: 10px; }
  .hp-nav__link{ padding: 10px 12px; }
  .hp-hero{ min-height: 0; }
  .hp-hero__inner{ grid-template-columns: 1fr; gap: 22px; padding: 10px var(--hp-pad-x) 42px; }
  .hp-hero__stage{ justify-self: start; }
  .hp-preview{ max-width: 760px; }
  .hp-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-grid--3{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .hp-carousel__item{
    width: 280px;
  }
  
  .hp-carousel__item.tpl-card {
    width: 280px;
  }
}

@media (max-width: 520px){
  :root{ --hp-pad-x: 16px; }
  .hp-nav{ display:none; }
  .hp-header__inner{ grid-template-columns: auto auto; justify-content: space-between; }
  .hp-title{ font-size: 38px; }
  .hp-metrics{ grid-template-columns: 1fr; }
  
  .hp-carousel__item{
    width: 260px;
  }
  
  .hp-carousel__item.tpl-card {
    width: 260px;
  }
}

