/* ============================================================
   Musafir — marketing site styles
   Brand teal #0B7285 · sunset accent (coral → amber)
   ============================================================ */

:root {
  --brand: #0B7285;
  --brand-dark: #075460;
  --brand-light: #0E9AA7;
  --coral: #FF6B6B;
  --amber: #F59E0B;
  --violet: #7C3AED;
  --blue: #2563EB;
  --green: #10B981;

  --ink: #0E1F23;
  --ink-muted: #5B6B70;
  --scaffold: #F6F8F7;
  --surface: #ffffff;
  --surface-muted: #EDF1F1;
  --outline: #E2E8E9;

  --grad-brand: linear-gradient(135deg, var(--brand), var(--brand-light));
  --grad-sunset: linear-gradient(135deg, var(--coral), var(--amber));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 35, .06), 0 4px 12px rgba(14, 31, 35, .05);
  --shadow-md: 0 10px 30px rgba(14, 31, 35, .10);
  --shadow-lg: 0 24px 60px rgba(11, 114, 133, .18);
  --container: 1140px;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(11,114,133,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11,114,133,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--outline); }
.btn-ghost:hover { background: var(--surface-muted); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--outline);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(11,114,133,.3);
}
.brand-name { letter-spacing: -.02em; }

.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(14,154,167,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,107,107,.10), transparent 55%),
    var(--scaffold);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 24px 88px; }
.pill {
  display: inline-block; background: var(--surface); border: 1px solid var(--outline);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--ink-muted); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.grad-text { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--ink-muted); max-width: 540px; }

/* Search bar */
.search-bar {
  display: flex; align-items: flex-end; gap: 8px; margin-top: 32px;
  background: var(--surface); padding: 12px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--outline); max-width: 620px;
}
.search-field { display: flex; flex-direction: column; padding: 4px 14px; flex: 1; border-right: 1px solid var(--outline); }
.search-field:nth-child(3) { border-right: 0; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.search-field input, .search-field select {
  border: 0; outline: 0; font: inherit; font-weight: 600; font-size: .95rem; background: transparent; color: var(--ink); padding: 2px 0; width: 100%;
}
.search-btn { flex-shrink: 0; padding: 14px 20px; }

.hero-stats { display: flex; gap: 36px; margin-top: 32px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats span { font-size: .85rem; color: var(--ink-muted); }

/* Hero art */
.hero-art { position: relative; min-height: 420px; }
.art-card { position: absolute; width: min(280px, 80%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--outline); }
.art-card-1 { top: 20px; right: 0; transform: rotate(-3deg); }
.art-card-2 { bottom: 10px; left: 0; transform: rotate(2deg); z-index: 2; }
.art-img { height: 130px; }
.img-a { background: linear-gradient(135deg, #0E9AA7, #0B7285); }
.img-b { background: linear-gradient(135deg, #FF6B6B, #F59E0B); }
.art-body { padding: 14px 16px; }
.art-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .95rem; }
.art-meta { margin-top: 6px; font-weight: 700; }
.art-meta small { color: var(--ink-muted); font-weight: 500; }
.art-badge {
  position: absolute; bottom: 96px; right: 8px; z-index: 3;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 999px;
  padding: 8px 14px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

/* Tags */
.tag { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
.tag-seat  { background: var(--blue); }
.tag-room  { background: var(--violet); }
.tag-house { background: var(--brand); }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 22px 24px; }
.trust span { font-weight: 600; color: var(--ink-muted); font-size: .95rem; position: relative; }
.trust span::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-muted { background: var(--scaffold); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand); margin-bottom: 12px; }
.eyebrow-light { color: #bdeef2; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { margin-top: 12px; color: var(--ink-muted); font-size: 1.08rem; }

/* Problem stat band */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--coral); }
.stat strong { display: block; font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; color: var(--ink); background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--ink-muted); }
.problem-note { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-muted); }

/* Audience cards */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.aud-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 40px 36px; color: #fff; box-shadow: var(--shadow-md); }
.aud-exam { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.aud-med { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.aud-icon { font-size: 2.4rem; }
.aud-card h3 { font-size: 1.5rem; margin: 14px 0 10px; letter-spacing: -.01em; }
.aud-card p { color: rgba(255,255,255,.9); font-size: 1.05rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.feat-teal { background: rgba(11,114,133,.12); }
.feat-green { background: rgba(16,185,129,.14); }
.feat-violet { background: rgba(124,58,237,.12); }
.feat-coral { background: rgba(255,107,107,.16); }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--ink-muted); font-size: .96rem; }

/* Host CTA */
.host-cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.host-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.host-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.host-copy p { margin-top: 16px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.host-points { margin: 24px 0 30px; display: grid; gap: 12px; }
.host-points li { position: relative; padding-left: 30px; color: rgba(255,255,255,.9); }
.host-points li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; top: 3px; }
.host-cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.host-cta .btn-primary:hover { background: #eafcfd; }

.host-panel { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(6px); }
.panel-line { display: flex; align-items: baseline; justify-content: space-between; }
.panel-line span { color: rgba(255,255,255,.7); font-weight: 600; }
.panel-line strong { font-size: 1.9rem; letter-spacing: -.02em; }
.panel-bar { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin: 24px 0 18px; }
.panel-bar i { flex: 1; height: var(--h); background: linear-gradient(180deg, #fff, rgba(255,255,255,.5)); border-radius: 6px 6px 0 0; }
.panel-foot { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-weight: 600; }
.dot-green { background: #6EE7B7; box-shadow: 0 0 0 4px rgba(110,231,183,.25); }

/* App CTA */
.app-cta { background: var(--scaffold); text-align: center; }
.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-icon { font-size: 1.4rem; }
.store-btn small { display: block; font-size: .72rem; opacity: .8; }
.store-btn strong { display: block; font-size: 1.05rem; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #cdd8da; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: #90a2a6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-cols a { display: block; color: #90a2a6; padding: 5px 0; transition: color .15s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: #7d9094; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 360px; max-width: 420px; }
  .host-inner { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  /* Dropdown panel below the bar when open */
  .site-header.open .nav-links,
  .site-header.open .nav-actions {
    display: flex; flex-direction: column; width: 100%; margin: 0;
    background: var(--surface);
  }
  .site-header.open .nav-links {
    order: 3; gap: 2px; padding-top: 10px; border-top: 1px solid var(--outline);
  }
  .site-header.open .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--surface-muted); }
  .site-header.open .nav-actions { order: 4; gap: 10px; padding: 14px 0 18px; }
  .site-header.open .nav-actions .btn { width: 100%; }
  .site-header.open .nav { height: auto; padding-bottom: 8px; }

  .search-bar { flex-direction: column; align-items: stretch; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--outline); }
  .search-field:nth-child(3) { border-bottom: 0; }
  .search-btn { width: 100%; }

  .steps, .steps-4, .stat-band, .audience { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; }
  .problem-note { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
