/* ==========================================================================
   MiftahInn — Cloudbeds-style marketing design system
   Light (default) + Dark themes, fully responsive, mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gap: clamp(18px, 3vw, 34px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Light theme (Cloudbeds bright) */
  --bg: #ffffff;
  --bg-alt: #f4f8ff;
  --bg-tint: #eef4ff;
  --ink: #0b1b34;
  --ink-2: #24324a;
  --muted: #5a6b85;
  --line: #e4ebf5;
  --card: #ffffff;
  --card-2: #f8fbff;
  --primary: #2f4bff;
  --primary-ink: #ffffff;
  --primary-2: #6a5cff;
  --accent: #10c39a;
  --coral: #ff6b5e;
  --gold: #ffb020;
  --brand-grad: linear-gradient(120deg, #2f4bff 0%, #6a5cff 55%, #10c39a 120%);
  --hero-grad: radial-gradient(1200px 600px at 82% -8%, rgba(106,92,255,.18), transparent 60%),
               radial-gradient(900px 500px at 5% 12%, rgba(16,195,154,.16), transparent 55%),
               linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  --shadow-sm: 0 4px 14px rgba(20, 43, 96, .06);
  --shadow: 0 20px 50px rgba(20, 43, 96, .12);
  --shadow-lg: 0 40px 90px rgba(20, 43, 96, .18);
  --glass: rgba(255, 255, 255, .82);
  --glass-border: rgba(20, 43, 96, .08);
  --chip: #eef2fb;
  --chip-ink: #35507f;
  --star: #ffb020;
}

[data-mi-theme="night"] {
  --bg: #070b16;
  --bg-alt: #0b1226;
  --bg-tint: #0e1730;
  --ink: #eef3ff;
  --ink-2: #d4def2;
  --muted: #93a4c4;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(18, 26, 48, .72);
  --card-2: rgba(15, 22, 43, .6);
  --primary: #6ea0ff;
  --primary-ink: #06122c;
  --primary-2: #8a7bff;
  --accent: #37e0b0;
  --coral: #ff8f84;
  --gold: #ffc857;
  --brand-grad: linear-gradient(120deg, #4f7bff 0%, #8a7bff 55%, #37e0b0 120%);
  --hero-grad: radial-gradient(1200px 620px at 82% -8%, rgba(138,123,255,.28), transparent 60%),
               radial-gradient(900px 520px at 4% 10%, rgba(55,224,176,.20), transparent 55%),
               linear-gradient(180deg, #070b16 0%, #0b1226 100%);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-lg: 0 44px 100px rgba(0, 0, 0, .55);
  --glass: rgba(10, 16, 33, .72);
  --glass-border: rgba(255, 255, 255, .09);
  --chip: rgba(110, 160, 255, .12);
  --chip-ink: #b9ccf0;
  --star: #ffc857;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.06; margin: 0 0 .4em; letter-spacing: -.035em; font-weight: 900; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); background: var(--chip); padding: 8px 16px; border-radius: var(--radius-pill);
}
[data-mi-theme="night"] .eyebrow { color: var(--chip-ink); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--ink-2); max-width: 58ch; font-weight: 500; }
.center .lede { margin-inline: auto; }
h2.h { font-size: clamp(2.05rem, 4.4vw, 3.5rem); letter-spacing: -.04em; }
h3.h { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 1.03rem; padding: 15px 30px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 14px 30px rgba(47,75,255,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(47,75,255,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); border-color: var(--line); }
.btn-white { background: #fff; color: #142b60; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--glass-border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.5rem; letter-spacing: -.045em; color: var(--ink); }
.brand .mark {
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 900; box-shadow: 0 12px 26px rgba(47,75,255,.4);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--ink-2); padding: 9px 14px; border-radius: 10px;
  transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links a.active { background: var(--chip); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--primary); }
.theme-toggle .sun { display: none; } .theme-toggle .moon { display: block; }
[data-mi-theme="night"] .theme-toggle .sun { display: block; } [data-mi-theme="night"] .theme-toggle .moon { display: none; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-grad); overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2.65rem, 6vw, 4.75rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.0; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.12rem, 1.6vw, 1.38rem); color: var(--ink-2); max-width: 52ch; margin-bottom: 28px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.rating { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.stars { color: var(--star); letter-spacing: 2px; }
.hero-visual { position: relative; }
.device {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--card);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  transform: perspective(2400px) rotateY(-4deg) rotateX(1.5deg); transition: transform .5s ease;
}
.hero-visual:hover .device { transform: perspective(2400px) rotateY(0deg) rotateX(0deg); }
.device img, .device video { width: 100%; display: block; height: auto; background: var(--bg-alt); }

/* Browser window chrome (shared by hero/features/gallery) */
.winbar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.winbar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); flex: none; }
.winbar i:nth-child(1){ background:#ff5f57; } .winbar i:nth-child(2){ background:#febc2e; } .winbar i:nth-child(3){ background:#28c840; }
.winbar .addr { margin-inline-start: 10px; height: 24px; flex: 1; max-width: 340px; border-radius: 8px; background: var(--bg-tint); display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; overflow: hidden; white-space: nowrap; }
.winbar .addr svg { width: 13px; height: 13px; flex: none; opacity: .7; }
.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; font-size: .86rem; font-weight: 700; color: var(--ink);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--primary); font-size: 1.1rem; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.float-a { top: 12%; left: -26px; } .float-b { bottom: 14%; right: -22px; animation-delay: 1.4s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---------- Logo / trust marquee ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust .wrap { padding: 22px 0; }
.trust-label { text-align: center; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 800; font-size: 1.05rem; color: var(--ink-2); opacity: .72; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.marquee-track span::before { content: "◆"; color: var(--primary); font-size: .7rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Metrics band ---------- */
.metrics { background: var(--brand-grad); color: #fff; }
.metrics .wrap { padding: clamp(40px,5vw,64px) 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.metric .num { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; color: #fff; }
.metric .lbl { color: rgba(255,255,255,.86); font-weight: 600; font-size: .96rem; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 96px); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media .frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); background: var(--card-2);
}
.feature-media .frame img, .feature-media .frame video { width: 100%; height: auto; display: block; background: var(--bg-alt); }
.feature-media .glow { position: absolute; inset: auto -10% -12% -10%; height: 60%; background: var(--brand-grad); filter: blur(60px); opacity: .22; z-index: -1; border-radius: 50%; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 500; }
.check-list li .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 900; margin-top: 2px; }

/* ---------- Module cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--chip); color: var(--primary); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h4 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { font-size: .95rem; margin: 0; }
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover::after { transform: scaleX(1); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); align-items: start; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); background: var(--card); transition: transform .25s, box-shadow .25s; }
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; display: block; background: var(--bg-alt); }
.shot .cap { padding: 16px 20px 18px; color: var(--ink); background: var(--card); border-top: 1px solid var(--line); }
.shot .cap b { font-size: 1.02rem; } .shot .cap p { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }

/* ---------- Matrix ---------- */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
table.matrix th, table.matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.matrix thead th { background: var(--bg-tint); color: var(--ink); font-weight: 800; }
table.matrix tbody td { color: var(--muted); } table.matrix tbody td:first-child { color: var(--ink); font-weight: 700; }
table.matrix tbody tr:hover td { background: var(--card-2); }

/* ---------- Video ---------- */
.video-shell { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); background: #05070f; }
.video-shell video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-shell .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); border: none; display: grid; place-items: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 20px 50px rgba(0,0,0,.4); transition: transform .2s; }
.video-shell .play:hover { transform: scale(1.08); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--chip); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Integrations ---------- */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.int { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .2s; }
.int:hover { transform: translateY(-4px); }
.int .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.int b { display: block; color: var(--ink); margin-bottom: 6px; } .int p { font-size: .88rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); transform: scale(1.03); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); }
.plan h3 { font-size: 1.3rem; } .plan .price { font-size: 2.6rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; } .plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; flex: 1; }
.plan ul li { display: flex; gap: 10px; color: var(--ink-2); font-size: .95rem; } .plan ul li::before { content: "✓"; color: var(--accent); font-weight: 900; }

/* ---------- Pricing extras ---------- */
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
.plan-sub { font-size: .92rem; min-height: 44px; }
.bill-toggle { display: inline-flex; background: var(--chip); border-radius: var(--radius-pill); padding: 5px; gap: 4px; }
.bt-opt { border: none; background: transparent; color: var(--ink-2); font: inherit; font-weight: 800; padding: 10px 22px; border-radius: var(--radius-pill); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 8px; }
.bt-opt.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.save-pill { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-size: .72rem; font-weight: 900; padding: 3px 9px; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1100px) { .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }
@media (max-width: 640px) { .pricing-grid-4 { grid-template-columns: 1fr; max-width: 440px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-grad); color: #fff; border-radius: clamp(20px, 3vw, 34px); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 20% 10%, rgba(255,255,255,.22), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; } .field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(48px,6vw,80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap); }
.footer-grid h5 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer-grid a { display: block; color: var(--ink-2); padding: 6px 0; font-size: .95rem; transition: color .18s; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav panel ---------- */
.mobile-panel { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease; z-index: 80; padding: 84px 26px 30px; display: flex; flex-direction: column; gap: 6px; }
.mobile-panel.open { transform: none; }
.mobile-panel a { padding: 13px 12px; border-radius: 12px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.mobile-panel a:hover { background: var(--chip); color: var(--primary); }
.mobile-panel .btn { margin-top: 8px; }
.scrim { position: fixed; inset: 0; background: rgba(4,10,25,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 70; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
  .device { transform: none; }
  .float-a { left: 8px; } .float-b { right: 8px; }
  .cards, .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .desktop-cta { display: none; }
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row .feature-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .cards, .integrations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; } .hero-actions .btn { width: auto; flex: 1; }
  .float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Pexels photo bento band ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 205px; gap: 16px; }
.photo { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.07); }
.photo figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 18px 15px; background: linear-gradient(transparent, rgba(4,10,25,.85)); color: #fff; font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.photo figcaption svg { width: 1em; height: 1em; }
.photo.tall { grid-row: span 2; } .photo.wide { grid-column: span 2; }
.photo-credit { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--muted); opacity: .8; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; } .photo.wide { grid-column: span 2; } .photo.tall { grid-row: span 1; } }
@media (max-width: 460px) { .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } }

/* ---------- Sliding hospitality photo strip (single line) ---------- */
.photo-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.photo-strip-track { display: flex; gap: 18px; width: max-content; animation: scrollx 48s linear infinite; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.pchip { position: relative; width: 330px; height: 216px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: var(--shadow); border: 1px solid var(--glass-border); }
.pchip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pchip span { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(4,10,25,.82)); color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: -.01em; }
@media (max-width: 560px) { .pchip { width: 250px; height: 176px; } }

/* CTA band photo background */
.cta-band.has-photo { background-size: cover; background-position: center; }
.cta-band.has-photo::before { background: linear-gradient(120deg, rgba(23,35,80,.86), rgba(47,75,255,.8) 45%, rgba(16,195,154,.72)); inset: 0; }

/* About page hero photo */
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); position: relative; }
.about-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
