/* ----------
  The Hosting Hotel — Pitch Demo Styles
  Clean, Apple-like aesthetic with customizable CSS variables.
----------- */

:root{
  --bg:#0a0d19;
  --panel:#101628;
  --card:#131c30;
  --text:#f1f5ff;
  --muted:#9aa8d1;
  --accent:#3f4fc3;
  --accent-2:#5967d9;
  --highlight:#fcc24c;
  --highlight-dark:#cfa037;
  --shadow: rgba(7,9,15,.48);
  --radius:14px;
  --radius-sm:10px;
  --ring:0 0 0 1px rgba(63,79,195,.16), 0 10px 34px rgba(5,8,16,.6);
  --maxw:1100px;
  /* Responsive spacing tokens */
  --container-x: clamp(16px, 4vw, 28px);
  --section-y: clamp(54px, 8vw, 72px);
  --hero-y-top: clamp(48px, 9vw, 72px);
  --hero-y-bottom: clamp(32px, 6vw, 48px);
}

*{box-sizing:border-box}
html,body{padding:0;margin:0}
body{
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background:
    radial-gradient(1200px 800px at 18% -20%, rgba(63,79,195,.35) 0%, transparent 62%),
    radial-gradient(900px 600px at 85% -25%, rgba(252,194,76,.14) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  line-height:1.6;
}

/* Fluid media for responsiveness */
img, svg{max-width:100%; height:auto;}

:root,
body{color-scheme: dark}

h1, h2, h3,
.btn,
.site-header nav a{
  font-family: "Montserrat", "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  font-weight:600;
  letter-spacing:-0.01em;
}

p, li, input, select, label span, .muted{
  font-weight:400;
}

.container{
  max-width: var(--maxw);
  /* Explicit left/right to avoid any browser quirk with padding-inline */
  padding-inline: var(--container-x);
  padding-left: var(--container-x);
  padding-right: var(--container-x);
  margin: 0 auto;
}

a{color: var(--text); text-decoration:none; transition: color .2s ease, opacity .2s ease}
a:hover{color: var(--accent-2)}
a:focus-visible{outline:2px solid var(--accent); outline-offset:3px}

.btn{
  display:inline-block;
  border:1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  cursor:pointer;
  transition: .2s ease;
}
.btn.primary{
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  border: none;
  color:white;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 18px 30px rgba(63,79,195,.35);
}
.btn.primary:hover{
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow: 0 22px 36px rgba(63,79,195,.42);
}
.btn.ghost{
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn.ghost:hover{background: rgba(255,255,255,.08)}
.btn:focus-visible{outline:2px solid var(--highlight); outline-offset:3px}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn:hover{transform: translateY(-1px)}

.site-header{
  padding: 18px 0;
  display:flex; align-items:center; justify-content:space-between;
}
.site-header.container{padding-left: var(--container-x); padding-right: var(--container-x)}
.brand{display:flex; align-items:center; gap:10px; font-weight:700}
.brand span{letter-spacing:.2px}
.site-header nav{display:flex; gap:16px; align-items:center; flex-wrap: wrap}
.site-header nav a{opacity:.85}
.site-header nav a:hover{opacity:1; color: var(--accent-2)}
.site-header nav a.btn{color:white}
.site-header nav .btn{margin-left:4px}

.hero{
  padding-block: var(--hero-y-top) var(--hero-y-bottom); /* container handles side padding */
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items:center;
}
.hero h1{font-size: clamp(28px, 4vw, 44px); line-height:1.15; margin:.2em 0 .3em}
.hero .lead{font-size: clamp(16px, 2.2vw, 20px); color: var(--muted)}
.hero .cta-row{display:flex; gap:12px; margin: 18px 0; flex-wrap: wrap}
.proof{display:flex; gap:18px; padding:0; list-style:none; color:var(--muted); flex-wrap:wrap}
.proof li{display:flex; gap:8px; align-items:center}

.hero-visual{
  padding: 18px;
}
.fake-window{
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background: #10192d; border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
}
.fake-window .dots{display:flex; align-items:center; gap:6px}
.fake-window .dots span{
  display:inline-block; width:10px; height:10px; border-radius:50%;
  background:var(--accent);
}
.fake-window .dots span:nth-child(2){background: rgba(255,255,255,.18)}
.fake-window .dots span:nth-child(3){background: var(--highlight)}
.fake-window .title{color: var(--muted); font-size: 12px; font-family: "Work Sans", ui-sans-serif}

.card{
  background: linear-gradient(180deg, rgba(19,28,48,.92), rgba(12,17,30,.8));
  border:1px solid rgba(94,113,188,.2);
  border-radius: var(--radius);
  box-shadow: var(--ring);
  padding: 16px;
}

.chat{
  font-size: 14px;
  display:flex; flex-direction:column; gap:10px;
  padding: 14px; margin-top:10px; height: 340px; overflow: auto;
}
.bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  position: relative;
  word-wrap: break-word;
}
.bubble.ai{
  background: rgba(63,79,195,.16);
  border: 1px solid rgba(63,79,195,.45);
  align-self:flex-start;
}
.bubble.user{
  background: rgba(252,194,76,.12);
  border: 1px solid rgba(252,194,76,.4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08);
  align-self:flex-end;
}
.message-time{display:block; font-size:11px; color: var(--highlight);}
.chat-input{display:flex; gap:8px; margin: 10px 14px 0}
.chat-input input{flex:1; padding:10px 12px; border-radius:10px; background:#10192d; color:var(--text); border:1px solid rgba(255,255,255,.08)}

.section{padding-block: var(--section-y)}
.section h2{font-size: clamp(22px, 3vw, 32px); margin:0 0 10px}
.section-lead{color: var(--muted); margin: 0 0 18px}

.grid-3{display:grid; grid-template-columns: repeat(3,1fr); gap:16px}
.grid-2{display:grid; grid-template-columns: repeat(2,1fr); gap:16px}

.step .num{
  width:32px; height:32px; border-radius:50%; display:grid; place-items:center;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  font-weight:700;
}

.list{margin:0; padding-left: 18px}
.demo-note{margin-top: 14px}

.form{
  display:grid; gap:12px; max-width: 560px; margin: 10px 0;
}
label{display:grid; gap:6px}
input, select{
  padding: 12px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.1);
  background: #10192d; color: var(--text);
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}
/* Make selects match text inputs */
select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%239aa8d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 38px; /* room for caret */
}
select::-ms-expand{ display:none }
input:focus-visible, select:focus-visible{
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(63,79,195,.2);
  outline: none;
}

.site-footer{
  padding: 28px 0 54px; color: var(--muted); text-align:center;
}
.smallprint{display:flex; gap:8px; justify-content:center; flex-wrap:wrap}

.muted{color: var(--muted); font-size: 12px}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; padding-top: 30px}
  .section{padding: 56px 0}
  .grid-3{grid-template-columns: repeat(2,1fr)}
}

/* Small tablets and below: spacing variables */
@media (max-width: 820px){
  :root{ --container-x: 24px }
}

/* Prevent awkward header wrap on small tablets (e.g., 735–736px) */
@media (max-width: 780px){
  .site-header{flex-direction: column; gap: 10px}
  .site-header nav{justify-content:center; flex-wrap: wrap; margin-bottom: 12px; width: 100%}
  .site-header nav .btn{margin-left:0}
}

@media (max-width: 640px){
  body{padding-top: 10px; padding-bottom: 14px}
  :root{ --container-x: 24px }
  .site-header{flex-direction: column; gap: 10px}
  .site-header nav{gap:12px; justify-content:center; margin-bottom: 12px}
  .btn{padding:9px 14px}
  .grid-3, .grid-2{grid-template-columns: 1fr; gap: 18px}
  :root{ --section-y: 58px; --hero-y-top: 44px; --hero-y-bottom: 34px }
  .chat{height: 260px}
}

/* Very small devices */
@media (max-width: 400px){
  :root{ --container-x: 22px; --section-y: 54px }
  .chat{height: 220px}
}

/* Larger screens - add comfortable breathing room */
@media (min-width: 1200px){ :root{ --section-y: 72px; --hero-y-top: 72px; --hero-y-bottom: 48px } }

/* Ensure comfy side padding between ~835px and 1113px */
@media (min-width: 835px) and (max-width: 1113px){ :root{ --container-x: 28px } }

/* Slightly increase vertical rhythm on narrow tablets (795–834px) */
@media (min-width: 795px) and (max-width: 834px){ .site-header{padding-bottom:14px} :root{ --hero-y-top: 68px; --hero-y-bottom: 44px } }

/* Customers logo grid: clean logo rail */
#customers .logo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  align-items:center;
  justify-items:center;
  padding: 8px 0;
}
#customers .logo-grid img{
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity:.92;
}
@media (max-width: 640px){
  #customers .logo-grid{gap: 18px}
  #customers .logo-grid img{max-height: 46px}
}

/* Safety net: ensure horizontal padding always applies to sections */
.section.container,
.site-footer.container{
  padding-left: var(--container-x) !important;
  padding-right: var(--container-x) !important;
}
