:root {
  --indigo: #1a237e;
  --indigo-2: #3949ab;
  --teal: #26a69a;
  --amber: #ffb300;
  --ink: #141a33;
  --muted: #5b6380;
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e3e7f2;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: 'Prompt', 'Noto Sans Thai', sans-serif; line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  transition: background .25s, box-shadow .25s;
}
.nav.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav.solid .brand { color: var(--indigo); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.88); font-size: 15px; }
.nav.solid .nav-links a { color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav.solid .nav-links a:hover { color: var(--indigo); }
.nav-links .btn { color: var(--indigo) !important; }
.nav.solid .nav-links .btn { color: #fff !important; background: var(--indigo); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  background: #fff; color: var(--indigo);
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,15,50,.18); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn.primary { background: var(--amber); color: #2a1d00; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn.dark { background: var(--indigo); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: #0b1030 url('assets/hotel_hero.jpg') center / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,14,48,.94) 0%, rgba(20,28,92,.80) 42%, rgba(20,28,92,.25) 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 100px; padding-bottom: 60px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(255,179,0,.16); color: #ffd36b; box-shadow: inset 0 0 0 1px rgba(255,179,0,.35);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.85); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* phone mockup */
.phone {
  justify-self: center; width: 290px; padding: 12px; border-radius: 44px;
  background: #0d1124; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a3050;
  transform: rotate(3deg);
}
.screen { border-radius: 34px; overflow: hidden; background: var(--bg); color: var(--ink); }
.screen .top { position: relative; height: 210px; background: url('assets/room_deluxe.jpg') center / cover; }
.screen .top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.screen .top span { position: absolute; z-index: 1; left: 16px; bottom: 12px; color: #fff; font-family: 'Prompt'; font-weight: 600; font-size: 20px; }
.screen .body { padding: 16px; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.row b { color: var(--ink); font-weight: 600; }
.unlock {
  margin-top: 6px; height: 120px; border-radius: 22px;
  background: linear-gradient(135deg, var(--indigo-2), var(--teal));
  display: grid; place-items: center; color: #fff; text-align: center;
  font-family: 'Prompt'; font-size: 15px;
}
.unlock .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: rgba(255,255,255,.18); box-shadow: 0 0 0 8px rgba(255,255,255,.08); animation: ring 2.4s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin: 8px 0 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; counter-reset: step; }
.step { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step .img { height: 180px; background-size: cover; background-position: center; position: relative; }
.step .img::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; bottom: -22px;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--indigo); color: #fff; font-family: 'Prompt'; font-weight: 600; font-size: 20px;
  box-shadow: 0 6px 16px rgba(26,35,126,.35);
}
.step .txt { padding: 34px 22px 24px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* apps */
.apps { background: #fff; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.app-card { border-radius: 24px; padding: 32px; color: #fff; position: relative; overflow: hidden; }
.app-card.guest { background: linear-gradient(140deg, #1a237e, #3949ab 60%, #26a69a); }
.app-card.admin { background: linear-gradient(140deg, #0d1b2a, #1b2a45 60%, #2c3e66); }
.app-card header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-card header img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.app-card h3 { font-size: 24px; }
.app-card small { opacity: .75; font-size: 14px; }
.app-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.app-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.9); }
.app-card li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.16); margin-top: 2px; }
.soon { display: inline-block; margin-top: 22px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }

/* owners */
.owners .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.owners .photo { border-radius: 24px; aspect-ratio: 4 / 5; background: url('assets/room_suite.jpg') center / cover; box-shadow: 0 30px 60px rgba(20,26,51,.18); }
.feats { display: grid; gap: 18px; margin-top: 28px; }
.feat { display: flex; gap: 16px; }
.feat .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #e8ebf8; }
.feat h3 { font-size: 17px; margin-bottom: 2px; }
.feat p { color: var(--muted); font-size: 15px; }

/* pilot */
.pilot .box {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(10,14,48,.95), rgba(26,35,126,.85)), url('assets/room_standard.jpg') center / cover;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.pilot h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0; }
.pilot p { color: rgba(255,255,255,.82); }
.pilot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pilot li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.pilot li b { color: var(--amber); font-weight: 600; }

/* faq */
.faq { max-width: 780px; margin: 44px auto 0; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
summary { cursor: pointer; font-family: 'Prompt'; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--indigo-2); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

/* contact + footer */
.contact { background: var(--indigo); color: #fff; text-align: center; }
.contact .sub { color: rgba(255,255,255,.8); }
.contact .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
footer { background: #0b1030; color: rgba(255,255,255,.6); font-size: 14px; padding: 28px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; margin-left: 18px; }
footer a:hover { color: #fff; }

/* legal pages */
.legal-head { background: var(--indigo); color: #fff; padding: 130px 0 50px; }
.legal-head h1 { font-size: clamp(30px, 4vw, 42px); }
.legal-head p { color: rgba(255,255,255,.75); margin-top: 8px; }
.legal { max-width: 800px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; color: var(--indigo); }
.legal p, .legal li { color: #333a55; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.legal .note { background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px; padding: 14px 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .owners .wrap, .pilot .box { grid-template-columns: 1fr; }
  .phone { display: none; }
  .steps, .app-grid { grid-template-columns: 1fr; }
  .owners .photo { aspect-ratio: 16 / 10; order: -1; }
  .pilot .box { padding: 32px 22px; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero p.lead { font-size: 17px; }
  .app-card { padding: 24px; }
  footer .wrap { flex-direction: column; }
  footer a { margin: 0 18px 0 0; }
}

/* ---------- blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,26,51,.10); }
.post-card .cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.post-card .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card h3 { font-size: 19px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .meta { font-size: 13px; color: var(--teal); font-weight: 600; }
.legal-head .meta { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 12px; }
.legal-head.with-cover { background: linear-gradient(100deg, rgba(10,14,48,.94), rgba(26,35,126,.78)), var(--cover) center / cover; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: #eef1f8; font-family: 'Prompt'; font-weight: 500; white-space: nowrap; }
.legal .tldr { background: #eef1f8; border-radius: 14px; padding: 18px 22px; margin-bottom: 8px; }
.legal .tldr b { color: var(--indigo); }
.cta-box { margin-top: 48px; border-radius: 20px; padding: 28px; color: #fff; background: linear-gradient(120deg, var(--indigo), var(--indigo-2) 60%, var(--teal)); }
.cta-box h2 { color: #fff !important; margin: 0 0 8px !important; }
.cta-box p { color: rgba(255,255,255,.85) !important; margin-bottom: 18px; }
.related { margin-top: 40px; }
.related a { color: var(--indigo-2); }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
