/* =========================================================================
   Hostek – Black Friday Core VPS landing page
   -------------------------------------------------------------------------
   Structure
     1. Design tokens
     2. Base / reset
     3. Layout helpers
     4. Components: buttons, icons, section headings
     5. Announcement bar (offer + countdown)
     6. Header
     7. Hero (+ hero countdown)
     8. Specs strip
     9. Plans
    10. Included-with-every-plan strip
    11. Footer
    12. Responsive
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Colours */
  --c-bg:            #050b1f;
  --c-bg-raised:     #0a1638;
  --c-card-top:      rgba(16, 34, 86, .72);
  --c-card-bottom:   rgba(7, 15, 40, .82);
  --c-border:        #1f4fb3;
  --c-border-soft:   rgba(60, 120, 255, .28);
  --c-blue:          #2f7dff;
  --c-blue-strong:   #1653e8;
  --c-blue-text:     #4b93ff;
  --c-red:           #e3262b;
  --c-red-strong:    #c8161c;
  --c-red-text:      #ff3b40;
  --c-text:          #ffffff;
  --c-text-soft:     #dbe3f4;
  --c-text-muted:    #a9b6d3;

  /* Type */
  --f-display: "Space Grotesk", Arial, sans-serif;
  --f-body:    Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing + shape */
  --container: 1200px;
  --gutter:    24px;
  --radius:    12px;
  --radius-sm: 8px;
  --section-y: 72px;

  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* 2. Base / reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 78% 8%,  rgba(40, 100, 255, .22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%,  rgba(30, 70, 190, .30), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 60%, rgba(25, 60, 170, .14), transparent 70%),
    linear-gradient(180deg, #071332 0%, #050b1f 45%, #040918 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-blue-text); outline-offset: 3px; border-radius: 4px; }

/* 3. Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: var(--section-y) 0 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. Components ---------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex: none; color: var(--c-blue-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn .icon { width: 18px; height: 18px; color: currentColor; }
.btn--red   { background: linear-gradient(180deg, #ef3237, var(--c-red-strong)); box-shadow: 0 8px 24px -8px rgba(227, 38, 43, .6); }
.btn--blue  { background: linear-gradient(180deg, #3577ff, var(--c-blue-strong)); box-shadow: 0 8px 24px -10px rgba(47, 125, 255, .7); }
.btn--ghost { border-color: var(--c-border); background: rgba(47, 125, 255, .08); }
.btn--block { width: 100%; }
.btn--upper { text-transform: uppercase; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head__eyebrow {
  display: inline-block; font-family: var(--f-display); font-size: 13px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-blue-text); margin-bottom: 10px;
}
.section-head__title { font-family: var(--f-display); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.section-head__text  { color: var(--c-text-muted); margin-top: 12px; }

/* 5. Announcement bar ---------------------------------------------------- */
.promo-bar {
  background: linear-gradient(90deg, var(--c-red-strong), var(--c-red) 50%, var(--c-red-strong));
  font-size: 14px;
  position: relative; z-index: 30;
}
.promo-bar__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px 24px;
  flex-wrap: wrap; min-height: 46px; padding-top: 6px; padding-bottom: 6px;
}
.promo-bar__offer { display: flex; align-items: center; gap: 10px; }
.promo-bar__offer strong { font-weight: 700; }
.promo-bar__tag {
  font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background: #fff; color: var(--c-red-strong); padding: 3px 8px; border-radius: 4px;
}
.promo-bar__timer { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.promo-bar__link  { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Countdown – compact version (inside promo bar) */
.countdown { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown--compact .countdown__unit {
  display: inline-flex; align-items: baseline; gap: 2px;
  background: rgba(0, 0, 0, .25); border-radius: 4px; padding: 2px 7px;
  font-family: var(--f-display); font-weight: 700;
}
.countdown--compact .countdown__label { font-size: 11px; font-weight: 600; opacity: .85; text-transform: lowercase; }

/* 6. Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 11, 31, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60, 120, 255, .14);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-header__logo img { width: 190px; height: auto; }
.site-nav { display: flex; gap: 32px; font-weight: 600; font-size: 15px; color: var(--c-text-soft); }
.site-nav a:hover { color: #fff; }

/* 7. Hero ---------------------------------------------------------------- */
.hero { padding: 48px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--c-red), rgba(227, 38, 43, .0));
  padding: 8px 56px 8px 14px; border-radius: 4px 0 0 4px;
}
.hero__badge .icon { color: #fff; width: 18px; height: 18px; }

.hero__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.025em; line-height: .95; margin-top: 18px; }
.hero__title-main {
  display: block; font-size: clamp(56px, 7.6vw, 104px);
  background: linear-gradient(180deg, #ffffff 0%, #e4e8f1 55%, #a7aec0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-sub {
  display: block; font-size: clamp(30px, 4vw, 52px); margin-top: 10px;
  background: linear-gradient(180deg, #4a94ff, #1d5ff2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: 18px; color: var(--c-text-soft); margin-top: 22px; max-width: 520px; }
.hero__note { font-size: 15px; color: var(--c-text-muted); margin-top: 10px; max-width: 520px; }

/* Countdown – large version (inside hero) */
.hero__deal {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 30px; padding: 18px 20px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-card-top), var(--c-card-bottom));
  box-shadow: var(--shadow-card);
  max-width: 560px;
}
.hero__deal-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 8px; }
.countdown--large { gap: 8px; }
.countdown--large .countdown__unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: rgba(3, 8, 24, .7); border: 1px solid var(--c-border-soft);
}
.countdown--large .countdown__value { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; }
.countdown--large .countdown__label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); margin-top: 5px; }
.countdown--large .countdown__sep   { font-family: var(--f-display); font-size: 22px; color: var(--c-blue-text); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }

.countdown.is-ended .countdown__unit,
.countdown.is-ended .countdown__sep { display: none; }
.countdown__ended { display: none; font-weight: 700; }
.countdown.is-ended .countdown__ended { display: inline; }

.hero__art { position: relative; }
.hero__art img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* 8. Specs strip --------------------------------------------------------- */
.specs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-card-top), var(--c-card-bottom));
  box-shadow: var(--shadow-card);
}
.specs__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 16px; }
.specs__item + .specs__item { border-left: 1px solid var(--c-border-soft); }
.specs__item .icon { width: 40px; height: 40px; }
.specs__title { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.specs__text  { font-size: 14px; color: var(--c-text-muted); line-height: 1.4; }

/* 9. Plans --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-card-top), var(--c-card-bottom));
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--c-blue); }
.plan--featured { border-color: var(--c-red); box-shadow: 0 0 0 1px rgba(227, 38, 43, .35), 0 0 40px -10px rgba(227, 38, 43, .45), var(--shadow-card); }
.plan--featured:hover { border-color: var(--c-red-text); }

/* Logo slot: every plan's logo sits in the same 56px-tall box so headings line up */
.plan__logo { height: 56px; display: flex; align-items: center; }
.plan__logo img { max-height: 56px; width: auto; }
.plan__logo--wide img { max-height: 42px; }

.plan__name { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; text-transform: uppercase; margin-top: 18px; }
.plan__desc { font-size: 15px; color: var(--c-text-soft); margin-top: 8px; min-height: calc(3 * 1.55em); }

/* Fixed-height art box keeps the feature lists aligned across all three cards */
.plan__art { height: 140px; margin: 18px -8px 12px; display: flex; align-items: center; justify-content: center; }
.plan__art img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.plan__features { display: grid; gap: 12px; padding: 20px 0 4px; border-top: 1px solid var(--c-border-soft); flex: 1; align-content: start; }
.plan__features li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--c-text-soft); }

.plan__price {
  text-align: center; margin: 24px 0 16px; padding: 16px 12px;
  border: 1px solid var(--c-border-soft); border-radius: var(--radius-sm);
  background: rgba(3, 8, 24, .55);
}
.plan__amount { font-family: var(--f-display); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -.03em; color: var(--c-red-text); }
.plan__amount small { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.plan__term  { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.plan__renew { font-size: 14px; color: var(--c-text-muted); margin-top: 4px; }

/* Checkout notice banner above the plan cards */
.checkout-note {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 24px; padding: 14px 20px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(22, 83, 232, .35), rgba(47, 125, 255, .18));
  border: 1px solid var(--c-blue);
  font-size: 16px; font-weight: 700; color: #fff; text-align: center;
}
.checkout-note .icon { width: 22px; height: 22px; color: var(--c-blue-text); }
.checkout-note strong { color: #7fb2ff; }
.plans__note { text-align: center; color: var(--c-text-muted); font-size: 14px; margin-top: 24px; }

/* 10. Included strip ----------------------------------------------------- */
.included {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-card-top), var(--c-card-bottom));
  box-shadow: var(--shadow-card);
}
.included__item { display: flex; align-items: flex-start; gap: 16px; padding: 28px 24px; }
.included__item + .included__item { border-left: 1px solid var(--c-border-soft); }
.included__item .icon { width: 40px; height: 40px; }
.included__title { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.25; }
.included__text  { font-size: 14px; color: var(--c-text-muted); margin-top: 6px; line-height: 1.45; }
.included__text--accent { color: var(--c-blue-text); }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(22, 83, 232, .35), rgba(227, 38, 43, .22));
  border: 1px solid var(--c-border);
}
.cta-band__title { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.cta-band__text  { color: var(--c-text-soft); margin-top: 6px; }

/* 11. Footer ------------------------------------------------------------- */
.site-footer { margin-top: var(--section-y); border-top: 1px solid rgba(60, 120, 255, .16); background: rgba(3, 7, 20, .6); }
.site-footer__inner { padding-top: 32px; padding-bottom: 36px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.site-footer__family { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-text-soft); }
.site-footer__family a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.site-footer__family a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__family img { height: 22px; width: auto; }
.site-footer__terms { font-size: 13px; color: var(--c-text-muted); max-width: 720px; }
.site-footer__copy  { font-size: 13px; color: var(--c-text-muted); }

/* 11b. Background effects ----------------------------------------------
   Two fixed layers behind the page, CSS only (no extra HTML or images):
     body::before  – faint starfield with a slow twinkle
     body::after   – soft tech grid that fades out towards the bottom
   To remove: delete this block. To tone down: lower the opacity values.
   ------------------------------------------------------------------------ */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(2px 2px     at 24px 36px,   rgba(255, 255, 255, .90), transparent 70%),
    radial-gradient(1.5px 1.5px at 150px 92px,  rgba(190, 215, 255, .80), transparent 70%),
    radial-gradient(1.5px 1.5px at 86px 170px,  rgba(255, 255, 255, .70), transparent 70%),
    radial-gradient(1.5px 1.5px at 210px 18px,  rgba(160, 200, 255, .75), transparent 70%),
    radial-gradient(2.5px 2.5px at 120px 130px, rgba(110, 170, 255, .85), transparent 70%),
    radial-gradient(1.5px 1.5px at 40px 110px,  rgba(255, 255, 255, .60), transparent 70%);
  background-size: 180px 190px, 230px 210px, 290px 250px, 250px 230px, 410px 370px, 330px 290px;
  opacity: .55;
  animation: bg-twinkle 7s ease-in-out infinite alternate;
}
body::after {
  background-image:
    linear-gradient(rgba(70, 130, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 255, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 80%);
}
@keyframes bg-twinkle {
  from { opacity: .5; }
  to   { opacity: .9; }
}
/* Keep all page content above the background layers */
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; z-index: 20; }

/* 12. Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .specs { grid-template-columns: repeat(3, 1fr); }
  .specs__item:nth-child(4) { border-left: 0; }
  .specs__item:nth-child(n+4) { border-top: 1px solid var(--c-border-soft); }
  .included { grid-template-columns: repeat(2, 1fr); }
  .included__item:nth-child(3) { border-left: 0; }
  .included__item:nth-child(n+3) { border-top: 1px solid var(--c-border-soft); }
}
@media (max-width: 960px) {
  :root { --section-y: 56px; }
  .site-nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { margin: 0 auto; max-width: 480px; }
  .hero__actions { margin-left: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan__desc { min-height: 0; }
}
@media (max-width: 640px) {
  .checkout-note { font-size: 14px; padding: 12px 14px; gap: 10px; text-align: left; }
  :root { --gutter: 16px; }
  .site-header__inner { height: 64px; }
  .site-header__logo img { width: 140px; }
  .site-header .btn { padding: 10px 14px; font-size: 13px; }
  .promo-bar { font-size: 13px; }
  .promo-bar__inner { flex-direction: column; gap: 6px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
  .promo-bar__offer { flex-wrap: wrap; justify-content: center; }
  .promo-bar__link { display: none; }
  .plan__art { height: 120px; }
  .hero__art img { max-width: 340px; }
  .hero { padding-top: 28px; }
  .hero__deal { padding: 16px; }
  .countdown--large .countdown__unit { width: 56px; height: 56px; }
  .countdown--large .countdown__value { font-size: 22px; }
  .countdown--large .countdown__sep { display: none; }
  .hero__actions .btn { flex: 1; }
  .section-head__title { font-size: 28px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs__item:nth-child(n) { border-left: 0; border-top: 1px solid var(--c-border-soft); }
  .specs__item:nth-child(-n+2) { border-top: 0; }
  .specs__item:nth-child(even) { border-left: 1px solid var(--c-border-soft); }
  .included { grid-template-columns: 1fr; }
  .included__item:nth-child(n) { border-left: 0; border-top: 1px solid var(--c-border-soft); }
  .included__item:first-child { border-top: 0; }
  .cta-band { padding: 24px; }
  .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .plan { transition: none; }
  body::before { animation: none; }
}
