/* ==========================================================================
   Hostodo — Marketing redesign (2026)
   Self-contained design system. Refined blue/teal brand on deep navy.
   Loaded only by views that extend layouts/site.blade.php.
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  --bg:          #0a0f1c;
  --bg-2:        #0c1322;
  --surface:     #111a2e;
  --surface-2:   #16213a;
  --border:      #202c46;
  --border-soft: #1a2438;

  --text:        #eef2f9;
  --text-muted:  #9eabc2;
  --text-faint:  #6b7890;

  --brand:       #3b82f6;
  --brand-600:   #2563eb;
  --brand-700:   #1d4ed8;
  --cyan:        #22d3ee;
  --teal:        #2dd4bf;
  --green:       #34d399;

  --grad:        linear-gradient(135deg, #2563eb 0%, #0ea5e9 48%, #22d3ee 100%);
  --grad-text:   linear-gradient(120deg, #60a5fa 0%, #22d3ee 100%);
  --grad-soft:   linear-gradient(135deg, rgba(37,99,235,.16), rgba(34,211,238,.08));

  --shadow:      0 16px 40px -18px rgba(0,0,0,.7);
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -22px rgba(0,0,0,.8);
  --glow:        0 0 0 1px rgba(59,130,246,.35), 0 20px 60px -14px rgba(37,99,235,.5);

  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
  --container:   1180px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; padding: 0; }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, rgba(34,211,238,.10), transparent 55%);
}

/* ----- Layout primitives ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
  position: relative;
  z-index: 1;
}
.section { padding-block: 96px; position: relative; z-index: 1; }
.section--tight { padding-block: 64px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-top: 14px;
}
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 140% 140%;
  box-shadow: 0 10px 28px -10px rgba(37,99,235,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #2c3a5c; transform: translateY(-2px); }
.btn-ghost.mono { font-family: var(--mono); font-size: 14px; }
.btn-ghost.mono .prompt { color: var(--cyan); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ----- Announcement bar -------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, rgba(37,99,235,.16), rgba(34,211,238,.10));
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 9px 16px;
}
.topbar a { color: var(--text); font-weight: 600; }
.topbar .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,.35);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-right: 8px;
}
.topbar .arrow { color: var(--cyan); }

/* ----- Navbar ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  background: rgba(10,15,28,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,15,28,.9); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-links a.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .caret { width: 12px; height: 12px; opacity: .7; }

/* Dropdown */
.dropdown > .menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown:hover > .menu,
.dropdown:focus-within > .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  transition: background .14s ease;
}
.menu a:hover { background: rgba(59,130,246,.12); }
.menu a small { color: var(--text-faint); font-size: 12px; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 0 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu .container > a,
.mobile-menu .container > div > a {
  display: block;
  padding: 12px 6px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.mobile-menu .mlabel {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-faint);
  padding: 16px 6px 4px;
}
.mobile-menu .btn { margin-top: 16px; }

/* ----- Hero -------------------------------------------------------------- */
.hero { padding-block: 84px 72px; position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 850;
  font-weight: 800;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.hero-trust .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); }

/* Terminal card */
.terminal {
  background: linear-gradient(180deg, #0d1626, #0a1120);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.terminal::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(59,130,246,.5), transparent 40%, rgba(34,211,238,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border-soft);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.terminal-bar .title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
}
.terminal-body .line { white-space: pre; }
.terminal-body .cmd .prompt { color: var(--cyan); }
.terminal-body .cmd .flag { color: #fbbf24; }
.terminal-body .out { color: var(--text-muted); }
.terminal-body .head { color: var(--text-faint); }
.terminal-body .ok { color: var(--green); }
.terminal-body .b { color: var(--text); }
.terminal-body .muted { color: var(--text-faint); }
.cursor-blink { display:inline-block; width:8px; height:15px; background: var(--cyan); vertical-align:-2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Chat / MCP conversation card (reuses .terminal shell) */
.chat-body { padding: 18px 18px 20px; display: grid; gap: 15px; }
.msg { display: grid; gap: 7px; }
.msg .who {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-faint);
}
.msg .avatar {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.msg.user .avatar { background: rgba(255,255,255,.08); color: var(--text-muted); }
.msg.bot .avatar { background: var(--grad); color: #fff; }
.msg .bubble { font-size: 14px; line-height: 1.62; color: var(--text); }
.msg .bubble code { font-family: var(--mono); color: var(--cyan); font-size: 13px; }
.tool {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border-soft);
  border-left: 2px solid rgba(34,211,238,.5);
  border-radius: 9px;
  padding: 9px 12px;
  display: grid; gap: 5px;
}
.tool .call { color: var(--text-muted); white-space: pre-wrap; }
.tool .call .fn { color: #c4b5fd; }
.tool .call .arg { color: #fbbf24; }
.tool .res { color: var(--text-faint); }
.tool .res .ok { color: var(--green); }
.tool .res .b { color: var(--text); }

/* ----- Logo / trust strip ------------------------------------------------ */
.trustbar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding-block: 26px;
}
.trustbar .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
  color: var(--text-faint);
  font-size: 14px;
}
.trustbar .label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11.5px;
  color: var(--text-faint);
}
.trustbar .chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-weight: 500;
}
.trustbar .chip svg { width: 17px; height: 17px; color: var(--teal); }
.trustbar .stars { color: #fbbf24; letter-spacing: 2px; }

/* ----- Bento feature grid ------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #2b3b5e; box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(59,130,246,.25);
  color: var(--cyan);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }
.card.span-2 { grid-column: span 2; }
.card.feature-hero {
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(34,211,238,.12), transparent 60%),
    var(--surface);
}
.stat-row { display: flex; gap: 30px; margin-top: 18px; flex-wrap: wrap; }
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat .num .gradient-text { font-weight: 800; }
.stat .lbl { color: var(--text-faint); font-size: 13px; margin-top: 2px; }

/* ----- Pricing ----------------------------------------------------------- */
.pricing-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.price-head, .price-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr .9fr 1fr .9fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}
.price-head {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11.5px;
  color: var(--text-faint);
}
.price-row { border-bottom: 1px solid var(--border-soft); transition: background .15s ease; }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: rgba(59,130,246,.06); }
.price-row .pname { font-weight: 700; }
.price-row .pname small { display: block; color: var(--text-faint); font-family: var(--mono); font-size: 11.5px; font-weight: 500; margin-top: 3px; }
.price-row .spec { color: var(--text-muted); font-size: 14px; }
.price-row .spec b { color: var(--text); font-weight: 600; }
.price-row .pcost .mo { font-weight: 800; font-size: 18px; }
.price-row .pcost .yr { color: var(--text-faint); font-size: 12.5px; }
.price-note { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 18px; }
.price-cards { display: none; }

/* mobile price cards */
.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.pcard .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pcard .top .pname { font-weight: 800; font-size: 18px; }
.pcard .top .pname small { display:block; color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.pcard .top .mo { font-weight: 800; font-size: 20px; text-align: right; }
.pcard .top .yr { color: var(--text-faint); font-size: 12px; text-align: right; }
.pcard .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 16px; }
.pcard .specs div { font-size: 14px; color: var(--text-muted); }
.pcard .specs b { color: var(--text); }

/* ----- Reasons / split --------------------------------------------------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reason {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.reason .n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
}
.reason h3 { font-size: 16.5px; font-weight: 700; margin-top: 10px; }
.reason p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }

/* ----- CLI / dev section ------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.checks { margin-top: 24px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--text-muted); font-size: 15px; }
.checks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.checks b { color: var(--text); font-weight: 600; }

/* ----- Locations --------------------------------------------------------- */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.loc .city { display: flex; align-items: center; justify-content: space-between; }
.loc .city h3 { font-size: 18px; font-weight: 700; }
.loc .badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  color: var(--green);
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}
.loc .badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.loc .meta { color: var(--text-faint); font-size: 13px; margin-top: 14px; font-family: var(--mono); }
.loc .links { margin-top: 16px; display: flex; gap: 16px; }
.loc .links a { color: var(--brand); font-size: 14px; font-weight: 600; }
.loc .links a:hover { color: var(--cyan); }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 50% 120%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(135deg, rgba(37,99,235,.22), rgba(13,20,36,.4));
  padding: 64px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { color: var(--text-muted); font-size: 17px; margin-top: 14px; max-width: 540px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ----- Footer ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 60px 36px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-faint); font-size: 14px; max-width: 280px; }
.footer h4 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer .col a, .footer .col p { display: block; color: var(--text-muted); font-size: 14px; padding: 5px 0; }
.footer .col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a:hover { color: var(--text); }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 56px 48px; }
  .bento, .reasons, .locations { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .bento, .reasons, .locations { grid-template-columns: 1fr; }
  .price-head, .price-row { display: none; }
  .price-cards { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: auto; }
  .hero-actions .btn { flex: 1; }
}
