/* Hostatic — standalone marketing landing page
   Design tokens mirror frontend/tailwind.config.js + frontend/src/index.css
   so this static site matches the in-app look without a build step. */

:root {
  --brand-300: #a5b4fc;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --violet-600: #7c3aed;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;

  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --shadow-soft: 0 1px 2px 0 rgb(15 23 42 / 0.04), 0 1px 3px 0 rgb(15 23 42 / 0.06);
  --shadow-card: 0 1px 3px 0 rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.12);
  --shadow-lift: 0 4px 12px -2px rgb(15 23 42 / 0.10), 0 16px 40px -12px rgb(79 70 229 / 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: var(--slate-900);
  line-height: 1.5;
}

::selection { background: rgb(99 102 241 / 0.2); }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
  background: linear-gradient(to right, var(--brand-600), var(--violet-600), var(--fuchsia-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(99 102 241 / 0.6);
}
.btn-sm { font-size: 0.875rem; padding: 0.4rem 0.85rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.35rem; }

.btn-primary {
  background: linear-gradient(to bottom right, var(--brand-500), var(--violet-600));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--slate-900);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { border-color: var(--slate-300); }

.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-50); color: var(--slate-900); }

.icon { width: 1.15rem; height: 1.15rem; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-check { width: 1rem; height: 1rem; stroke: var(--emerald-500); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, var(--brand-500), var(--violet-600));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.logo-mark svg { width: 62%; height: 62%; }
.logo-text { font-weight: 700; letter-spacing: -0.02em; font-size: 1.125rem; color: var(--slate-900); }
.logo-sm .logo-mark { width: 1.75rem; height: 1.75rem; }
.logo-sm .logo-text { font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(226 232 240 / 0.7);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .nav-actions { gap: 0.75rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(15 23 42 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 23 42 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -10rem;
  left: 50%;
  height: 500px;
  width: 900px;
  transform: translateX(-50%);
  border-radius: 9999px;
  opacity: 0.4;
  filter: blur(64px);
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.55), rgba(139, 92, 246, 0.25), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 4rem 1rem 5rem; }
@media (min-width: 640px) { .hero-inner { padding: 6rem 1.5rem 5rem; } }

.hero-copy { max-width: 48rem; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--slate-200);
  background: rgb(255 255 255 / 0.7);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}
.pill-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--emerald-500); }

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }

.hero-sub {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
}

.hero-checks {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--slate-500);
}
.hero-checks li { display: inline-flex; align-items: center; gap: 0.375rem; }

/* ---------- Terminal mock ---------- */
.terminal {
  position: relative;
  margin: 4rem auto 0;
  max-width: 48rem;
  overflow: hidden;
  border-radius: 1.125rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-950);
  box-shadow: var(--shadow-lift);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  padding: 0.75rem 1rem;
}
.dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.dot-red { background: rgb(251 113 133 / 0.9); }
.dot-amber { background: rgb(251 191 36 / 0.9); }
.dot-green { background: rgb(52 211 153 / 0.9); }
.terminal-title { margin-left: 0.75rem; font-size: 0.75rem; font-weight: 500; color: var(--slate-400); }
.terminal-body {
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-300);
  overflow-x: auto;
}
.terminal-body .mt { margin-top: 0.5rem; }
.terminal-body p:first-child { color: var(--slate-400); }
.c-green { color: var(--emerald-400); }
.c-brand { color: var(--brand-300); }
.c-muted { color: var(--slate-500); }
.c-white { color: #fff; }
.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  margin-left: 0.25rem;
  transform: translateY(2px);
  background: var(--brand-300);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Section head (shared) ---------- */
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { margin-top: 0.75rem; color: var(--slate-600); }

/* ---------- How it works (upload → subdomain flow) ---------- */
.how { padding: 5rem 1rem; }
@media (min-width: 640px) { .how { padding-left: 1.5rem; padding-right: 1.5rem; } }

.steps {
  margin-top: 3rem;
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.125rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
/* Connector arrows between steps on wide screens */
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1.15rem;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--slate-300);
    z-index: 1;
  }
}

.step-head { display: flex; align-items: center; gap: 0.75rem; }
.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(to bottom right, var(--brand-500), var(--violet-600));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.step-head h3 { font-size: 1.125rem; font-weight: 600; }
.step-desc { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate-600); }

/* Shared mock panel used inside each step */
.mock {
  margin-top: 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 1rem;
  font-size: 0.8125rem;
}

/* Step 1 — dropzone */
.mock-drop {
  border-style: dashed;
  border-color: var(--brand-300);
  background: linear-gradient(180deg, #fff, var(--slate-50));
  text-align: center;
}
.mock-drop-icon { width: 1.75rem; height: 1.75rem; margin: 0.25rem auto 0; color: var(--brand-600); stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mock-drop-title { margin-top: 0.5rem; color: var(--slate-600); }
.mock-drop-title strong { color: var(--slate-900); font-weight: 600; }
.mock-files { list-style: none; margin-top: 0.85rem; display: grid; gap: 0.4rem; text-align: left; }
.mock-files li { display: flex; align-items: center; gap: 0.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--slate-600); }
.file-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--emerald-500); flex: none; }
.file-size { margin-left: auto; color: var(--slate-400); }

/* Step 2 — subdomain field */
.mock-label { display: block; font-weight: 600; color: var(--slate-600); font-size: 0.75rem; }
.mock-input {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 0.625rem;
  border: 1px solid var(--slate-300);
  background: #fff;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.12);
}
.mock-sub { font-weight: 600; color: var(--slate-900); }
.mock-suffix { color: var(--slate-400); }
.mock-avail { margin-left: auto; display: inline-flex; align-items: center; gap: 0.25rem; color: var(--emerald-500); font-weight: 600; font-size: 0.75rem; }
.mock-avail svg { width: 0.85rem; height: 0.85rem; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mock-attach {
  margin-top: 0.7rem;
  width: 100%;
  border: none;
  border-radius: 0.625rem;
  padding: 0.55rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(to bottom right, var(--brand-500), var(--violet-600));
}

/* Step 3 — browser window */
.mock-browser { padding: 0; overflow: hidden; background: #fff; }
.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.mock-browser-bar .dot { width: 0.55rem; height: 0.55rem; }
.mock-url {
  margin-left: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--slate-600);
}
.mock-lock { width: 0.8rem; height: 0.8rem; stroke: var(--emerald-500); stroke-width: 2; fill: none; }
.mock-browser-body { padding: 1rem; }
.live-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.75rem; color: var(--emerald-500); }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--emerald-500); box-shadow: 0 0 0 3px rgb(16 185 129 / 0.2); }
.skeleton-line { height: 0.55rem; border-radius: 9999px; background: var(--slate-200); margin-top: 0.7rem; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }

/* ---------- CTA band ---------- */
.cta-wrap { padding: 0 1rem 6rem; }
@media (min-width: 640px) { .cta-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom right, var(--brand-600), var(--violet-600), var(--fuchsia-600));
  box-shadow: var(--shadow-lift);
}
.cta-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.3) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-bolt { width: 2rem; height: 2rem; margin: 0 auto; stroke: rgb(255 255 255 / 0.9); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cta h2 { margin-top: 1rem; font-size: 1.875rem; font-weight: 700; color: #fff; }
.cta p { margin: 0.75rem auto 0; max-width: 32rem; color: rgb(255 255 255 / 0.8); }
.cta .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--slate-200); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1rem;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }
.footer-note { font-size: 0.875rem; color: var(--slate-500); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
