:root {
  --navy-950: #020a19;
  --navy-900: #061735;
  --navy-800: #0a2856;
  --blue: #1468c9;
  --gold: #f1bd55;
  --gold-soft: #ffe4a2;
  --white: #fff;
  --ink: #102447;
  --ink-soft: #54647f;
  --line: #dce4f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy-950); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--navy-950);
  color: var(--white);
  font-family: "Sarabun", sans-serif;
  line-height: 1.6;
}
.wrap { min-height: 100svh; position: relative; overflow: hidden; }
h1, h2, .brand { font-family: "Anuphan", sans-serif; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

#view-home {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background: var(--navy-900);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-picture { position: absolute; inset: 0; z-index: -3; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 10, 25, .92) 0%, rgba(3, 18, 46, .52) 25%, rgba(3, 18, 46, .04) 52%),
    linear-gradient(0deg, rgba(2, 10, 25, .88) 0%, transparent 39%, rgba(2, 10, 25, .2) 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 23% 44%, rgba(20, 104, 201, .25), transparent 32%),
    radial-gradient(circle at 72% 48%, rgba(241, 189, 85, .1), transparent 28%);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(22px, 4vw, 68px);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 228, 162, .72);
  border-radius: 15px;
  background: linear-gradient(145deg, #123a75, #071c42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .12);
  color: var(--gold-soft);
  font-family: "Anuphan", sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.brand { font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: .01em; }
.brand small {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-family: "Sarabun", sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 400;
}
.freshness {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 228, 162, .38);
  border-radius: 999px;
  background: rgba(3, 18, 46, .62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  white-space: nowrap;
}
.freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58e59a;
  box-shadow: 0 0 0 5px rgba(88, 229, 154, .14), 0 0 16px #58e59a;
}
.freshness strong { color: var(--gold-soft); font-family: "Anuphan", sans-serif; }

.banner {
  position: absolute;
  z-index: 4;
  top: 96px;
  left: clamp(28px, 6vw, 100px);
  width: min(43vw, 640px);
  padding: 14px 16px 13px;
  border: 1px solid rgba(98, 199, 255, .3);
  border-left: 3px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5, 27, 65, .86), rgba(3, 18, 46, .62));
  box-shadow: 0 14px 46px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, .9);
}
.announcement-head { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.announcement-head strong { color: var(--gold-soft); font-family: "Anuphan", sans-serif; }
.announcement-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(241, 189, 85, .17);
  color: var(--gold-soft);
  font-family: "Anuphan", sans-serif;
  font-weight: 700;
}
.stamp { margin-left: auto; color: rgba(255, 255, 255, .64); font-size: 11px; white-space: nowrap; }
.banner p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0 31px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.announcement-more {
  margin: 7px 0 0 31px;
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 11px;
}
.announcement-more:hover { color: #fff; }

.announcement-dialog {
  width: min(90vw, 610px);
  max-height: 82vh;
  margin: auto;
  padding: 34px 34px 28px;
  overflow: auto;
  border: 1px solid rgba(241, 189, 85, .45);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f4f8ff);
  box-shadow: 0 36px 110px rgba(0, 0, 0, .55);
  color: var(--ink);
}
.announcement-dialog::backdrop { background: rgba(1, 7, 20, .76); backdrop-filter: blur(10px); }
.dialog-accent { position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue)); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eaf0fa; color: var(--ink-soft); cursor: pointer; font-size: 25px; line-height: 1; }
.dialog-label { color: var(--blue); font-family: "Anuphan", sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.announcement-dialog h2 { margin-top: 5px; color: var(--navy-900); font-size: 27px; }
.announcement-dialog > p { margin-top: 16px; color: #344662; font-size: 16px; line-height: 1.8; white-space: pre-line; }
.dialog-date { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.dialog-confirm { display: block; width: 100%; margin-top: 20px; padding: 13px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #123b78, #0a2856); color: #fff; cursor: pointer; font-weight: 700; }

.hero-copy {
  position: absolute;
  top: 50%;
  left: clamp(28px, 6vw, 100px);
  width: min(35vw, 550px);
  transform: translateY(-56%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-copy h1 {
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.07;
  letter-spacing: -.035em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, .45);
}
.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold-soft);
  font-size: .62em;
  letter-spacing: -.02em;
}
.hero-copy p {
  max-width: 470px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, 1.35vw, 19px);
}

.hero-action {
  position: absolute;
  z-index: 4;
  bottom: clamp(82px, 10vh, 118px);
  left: 50%;
  width: min(92vw, 620px);
  transform: translateX(-50%);
  text-align: center;
}
.btn { border: 0; cursor: pointer; font-weight: 700; text-align: center; text-decoration: none; }
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 18px 30px;
  border: 1px solid rgba(255, 244, 207, .9);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffe7a8 0%, #f1bd55 50%, #d99425 100%);
  box-shadow: 0 18px 60px rgba(241, 189, 85, .35), 0 7px 18px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .72);
  color: #071735;
  font-family: "Anuphan", sans-serif;
  font-size: clamp(20px, 2.1vw, 29px);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  animation: cta-breathe 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.05);
  box-shadow: 0 24px 75px rgba(241, 189, 85, .48), 0 10px 24px rgba(0, 0, 0, .4);
}
.btn-primary .arrow {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #0a2856;
  color: #fff;
  font-size: 21px;
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 18px 60px rgba(241, 189, 85, .3), 0 7px 18px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .72); }
  50% { box-shadow: 0 21px 72px rgba(241, 189, 85, .48), 0 8px 21px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .82); }
}
.trust-note { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 12px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

.home-footer {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 4vw, 68px);
  bottom: 22px;
  left: clamp(22px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}
.home-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.home-footer button, .home-footer a {
  appearance: none;
  padding: 2px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.home-footer .feedback-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 228, 162, .58);
  border-radius: 999px;
  background: rgba(5, 28, 66, .72);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
  color: var(--gold-soft);
  font-weight: 600;
}
.home-footer .feedback-link:hover {
  border-color: var(--gold-soft);
  background: rgba(10, 40, 86, .9);
  color: #fff;
}
.home-footer button:hover, .home-footer a:hover { color: var(--gold-soft); }

#view-feedback {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
  background: radial-gradient(circle at 20% 15%, #164a8a 0%, transparent 34%), linear-gradient(145deg, #061735, #020a19);
}
.feedback-card {
  width: min(100%, 620px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  color: var(--ink);
}
.feedback-card h2 { font-size: 25px; }
.feedback-card > p { margin: 6px 0 18px; color: var(--ink-soft); font-size: 14px; }
label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f8fafd;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 104, 201, .12); }
textarea { min-height: 110px; resize: vertical; }
.msg { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.err { display: block; background: #fbeaea; color: #8c2f39; }
.msg.ok { display: block; background: #eaf6ec; color: #1f6b3a; }
.feedback-submit {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #123b78, #0a2856);
  color: #fff;
  font-size: 16px;
}
.btn-ghost {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 900px) {
  .hero-image { object-position: center; }
  .hero-shade { background: linear-gradient(0deg, rgba(2, 10, 25, .97) 0%, rgba(2, 10, 25, .58) 57%, rgba(2, 10, 25, .18) 100%); }
  .brand small, .freshness span { display: none; }
  .banner { top: 84px; left: 22px; width: min(64vw, 560px); }
  .hero-copy { top: auto; right: 22px; bottom: 245px; left: 22px; width: auto; transform: none; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1 { font-size: clamp(34px, 8.6vw, 58px); }
  .hero-copy p { max-width: 500px; margin: 13px auto 0; }
  .hero-action { bottom: 86px; width: min(90vw, 560px); }
  .home-footer { bottom: 16px; justify-content: center; }
  .home-footer > span { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 17px 16px; }
  .crest { width: 42px; height: 42px; border-radius: 13px; }
  .brand { font-size: 18px; }
  .freshness { padding: 8px 10px; font-size: 11px; }
  .banner { top: 74px; left: 16px; width: calc(100% - 32px); padding: 11px 12px 10px; border-radius: 14px; }
  .announcement-head { font-size: 12px; }.stamp { font-size: 10px; }.banner p { margin-top: 6px; margin-left: 29px; font-size: 11px; -webkit-line-clamp: 1; }
  .announcement-more { margin-top: 4px; margin-left: 29px; font-size: 10px; }
  .announcement-dialog { padding: 30px 22px 23px; }.announcement-dialog h2 { font-size: 23px; }.announcement-dialog > p { font-size: 15px; }
  .hero-image { object-position: center top; }
  .hero-copy { bottom: 222px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy h1 span { margin-top: 7px; font-size: .64em; }
  .hero-copy p { padding: 0 18px; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.5; }
  .hero-action { bottom: 76px; }
  .btn-primary { min-height: 66px; padding: 15px 20px; border-radius: 18px; font-size: 20px; }
  .btn-primary .arrow { width: 34px; height: 34px; font-size: 18px; }
  .trust-note { padding: 0 20px; font-size: 10px; }
  .home-footer { bottom: 12px; font-size: 11px; }
  .home-footer nav { justify-content: center; gap: 12px; }
  .home-footer .feedback-link { padding: 7px 11px; }
}

@media (max-height: 720px) and (min-width: 700px) {
  .hero-copy { top: 45%; }
  .hero-action { bottom: 70px; }
  .home-footer { bottom: 14px; }
  .banner { top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
