/* ============================================
   InfiniteHosting — landing page
   ============================================ */

:root {
  --bg: #0a0d12;
  --bg-2: #0f1319;
  --bg-3: #151b23;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --ink: #eef2f7;
  --ink-2: #b6bec9;
  --ink-3: #7a8695;
  --accent: #7cf6c8;          /* mint / electric green — hosting = uptime */
  --accent-2: #59e3ff;        /* cyan */
  --accent-glow: rgba(124,246,200,0.14);
  --accent-line: rgba(124,246,200,0.28);
  --danger: #ff6b6b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

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

/* -------- Typography -------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.25; }

p { color: var(--ink-2); margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #0b100e;
  box-shadow: 0 12px 40px -10px rgba(124,246,200,0.55);
}
.btn--primary:hover { background: #93f9d1; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn__arrow { font-family: var(--font-mono); }

/* -------- Header -------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,13,18,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .nav { display: none; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: -20% -20% 40% -20%;
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(124,246,200,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(89,227,255,0.06) 0%, transparent 50%);
  filter: blur(20px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,246,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,246,200,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 72px 0 60px; }
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__title { margin-bottom: 24px; }
.hero__title .accent { color: var(--accent); }
.hero__lede { margin-bottom: 36px; }
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Hero visual — server card mock */
.hero__viz {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 460px;
  justify-self: end;
  margin-left: auto;
}
@media (max-width: 960px) {
  .hero__viz { justify-self: center; margin: 0 auto; }
}
.hero__viz-card {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--line);
  padding: 24px;
}
.hero__viz-card--main {
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
}
.hero__viz-card--behind1 {
  top: 0;
  left: 0;
  right: 80px;
  bottom: 80px;
  z-index: 1;
  opacity: 0.5;
}
.hero__viz-card--behind2 {
  top: 80px;
  left: 80px;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.35;
}
.viz__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.viz__title { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.viz__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.viz__status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.viz__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.viz__stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.viz__stat-value { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.viz__stat-value .unit { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.viz__chart { height: 120px; position: relative; }
.viz__chart svg { width: 100%; height: 100%; }
.viz__meta { margin-top: 20px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* -------- Section framing -------- */
section { padding: 100px 0; position: relative; }
@media (max-width: 780px) { section { padding: 72px 0; } }
.section__header { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__header .eyebrow::before { display: none; }
.section__header .eyebrow { justify-content: center; }
.section__title { margin: 16px 0 20px; }
.section__lede { margin: 0 auto; }

/* -------- Features grid -------- */
.features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--bg-2);
  padding: 32px 28px;
  transition: background .2s ease;
}
.feat:hover { background: var(--bg-3); }
.feat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feat__icon svg { width: 20px; height: 20px; }
.feat__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat__body { font-size: 14px; line-height: 1.55; }

/* -------- Pricing -------- */
.pricing__wrap { max-width: 460px; margin: 0 auto; }
.pricing__card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}
.pricing__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-line) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pricing__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pricing__tier { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.pricing__tier-desc { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.pricing__price { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 6px; }
.pricing__amount { font-family: var(--font-display); font-size: 68px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pricing__period { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); padding-bottom: 12px; }
.pricing__note { font-size: 13px; color: var(--ink-3); margin-bottom: 32px; }
.pricing__cta { width: 100%; justify-content: center; }
.pricing__list {
  margin: 28px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.pricing__list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); width: 16px; height: 16px; }

/* -------- Compare table -------- */
.compare { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare__table {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare__row:last-child { border-bottom: none; }
.compare__cell {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
}
.compare__cell:last-child { border-right: none; }
.compare__row--head .compare__cell { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); background: var(--bg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.compare__cell--us { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.compare__cell--them { color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255,107,107,0.4); }
.compare__cell--label { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 15px; }
@media (max-width: 640px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .compare__cell:last-child { border-bottom: none; }
}

/* -------- FAQ -------- */
.faq__list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color .15s ease;
}
.faq__q:hover { color: var(--accent); }
.faq__q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-3);
  transition: transform .2s ease, color .2s ease;
  width: 20px;
  text-align: center;
}
.faq__item[open] .faq__q::after { content: "−"; color: var(--accent); }
.faq__a {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* -------- CTA band -------- */
.cta-band {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.cta-band h2 { margin-bottom: 20px; }
.cta-band .lede { margin: 0 auto 36px; text-align: center; }

/* -------- Footer -------- */
.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0;
  color: var(--ink-3);
  font-size: 13px;
}
.ftr__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ftr__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--ink-2);
  font-weight: 600;
}
.ftr__brand svg { width: 22px; height: 22px; }
.ftr__links { display: flex; gap: 24px; }
.ftr__links a { color: var(--ink-3); transition: color .15s ease; }
.ftr__links a:hover { color: var(--ink); }

/* -------- Modal (signup) -------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5,7,10,0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal__card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.modal__close:hover { color: var(--ink); }
.modal__title { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.modal__lede { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease;
}
.modal__input:focus { border-color: var(--accent); }
.modal__ok {
  color: var(--accent);
  padding: 20px 0 0;
  text-align: center;
  font-size: 14px;
  display: none;
}
.modal__form.done .modal__ok { display: block; }
.modal__form.done .modal__input,
.modal__form.done .btn { display: none; }
