:root {
  --bg: #082313;
  --bg-soft: #0f3a20;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7fff3;
  --muted: #d7ead1;
  --green: #4caf50;
  --green-bright: #8bc34a;
  --green-deep: #127533;
  --cream: #f8fff6;
  --gold: #ffcf6a;
  --red: #ef4444;
  --shadow: 0 30px 80px rgba(5, 45, 21, 0.38);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(139, 195, 74, 0.22), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(223, 245, 214, 0.18), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(255, 207, 106, 0.12), transparent 22%),
    linear-gradient(160deg, #061b0d 0%, #0b2b16 42%, #127533 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; position: relative; z-index: 1; }
.section { padding: 92px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(6, 39, 17, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand, .footer-brand {
  display: flex; align-items: center; gap: 14px;
}

.brand-logo-wrap {
  width: 82px; height: 82px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 24px;
  background: #dff5d6;
  border: 2px solid rgba(255,255,255,0.24);
  box-shadow: 0 18px 32px rgba(3, 38, 14, 0.34);
  overflow: hidden;
}
.brand-logo-wrap.small {
  width: 180px; height: 58px; border-radius: 18px;
  background: #ffffff;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-logo.small {
  width: 90%;
  height: auto;
  object-fit: contain;
}
.brand-copy { display: grid; gap: 2px; }
.brand-word {
  font-size: 2rem; font-weight: 900; letter-spacing: 0.01em; color: #ffffff;
}
.brand-sub {
  font-size: 0.98rem; color: var(--muted); letter-spacing: 0.02em;
  font-weight: 700;
}
.nav-links {
  display: flex; gap: 24px; color: var(--muted); font-weight: 700;
}
.nav-links a:hover { color: white; }

.hero {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: start;
  min-height: calc(100vh - 82px);
}
.eyebrow, .section-kicker, .mini-label {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.16);
  color: #f0ffe9;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { padding: 10px 16px; font-size: 0.78rem; }
.section-kicker, .mini-label { padding: 8px 12px; font-size: 0.72rem; }
.bottom-mini-label {
  background: linear-gradient(135deg, rgba(18, 117, 51, 0.96), rgba(49, 135, 35, 0.96));
  color: #ffffff;
  border-color: rgba(223, 245, 214, 0.28);
  box-shadow: 0 12px 28px rgba(6, 74, 24, 0.34);
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #efffe8 44%, #b9f284 64%, #ffefad 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead, .section-head p, .preview-copy p, .download-card p, .app-identity p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.06rem;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px;
}
.btn {
  min-height: 58px; padding: 0 24px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; letter-spacing: 0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-5px); }
.btn-primary {
  color: #0b2f14;
  background: linear-gradient(135deg, #ffffff 0%, #dff5d6 30%, #8bc34a 68%, #4caf50 100%);
}
.btn-secondary {
  color: #0b2f14;
  background: linear-gradient(135deg, #ffffff 0%, #f8fff6 34%, #b7e7a9 100%);
}
.hero-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.metric-card, .glass-panel, .feature-box, .stats-box, .download-card, .store-card, .qr-card, .shot-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
}
.metric-card strong, .glass-panel strong, .stats-box strong, .store-card strong { display: block; }
.metric-card span { margin-top: 6px; display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.hero-visual { position: relative; min-height: 760px; display: grid; place-items: center; }
.phone-stage {
  width: min(100%, 430px);
  position: relative;
}
.phone-stage::before {
  content: ""; position: absolute; inset: 8% -14% auto; height: 72%;
  background: radial-gradient(circle, rgba(139,195,74,0.34), transparent 62%);
  filter: blur(24px);
}
.phone-frame {
  position: relative; z-index: 1;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #153d20, #06180c);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 40px 90px rgba(0,0,0,0.44);
}
.phone-notch {
  width: 38%; height: 28px; border-radius: 0 0 18px 18px;
  background: #040f08; margin: 0 auto 14px;
}
.phone-screen {
  position: relative;
  min-height: 690px;
  border-radius: 30px;
  overflow: hidden;
  background: #eef8ec;
}
.image-screen { background: #eef8ec; }
.screen-real {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.glass-panel {
  padding: 18px 20px;
  border-radius: 22px;
  backdrop-filter: blur(12px);
  width: max-content;
  max-width: 280px;
}
.glass-panel strong { margin-top: 8px; font-size: 1.08rem; line-height: 1.4; }
.floating-card { position: absolute; z-index: 2; }
.top-card { left: 0; top: -50px; }
.bottom-card {
  right: 0;
  bottom: 50px;
  background: linear-gradient(180deg, rgba(18, 117, 51, 0.96), rgba(8, 55, 24, 0.94));
  border-color: rgba(223, 245, 214, 0.18);
}
.bottom-card strong { color: #ffffff; }

.section-head { max-width: 840px; margin-bottom: 34px; }
.section-head h2, .preview-copy h2, .download-card h2 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature-box {
  padding: 26px;
  border-radius: 24px;
}
.feature-box h3 { margin: 18px 0 10px; font-size: 1.18rem; }
.feature-box p { margin: 0; color: var(--muted); line-height: 1.75; }

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 700,
  'GRAD' 0,
  'opsz' 50
}
.icon-medicine {
  font-size: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(76,175,80,0.82), rgba(76,175,80,0.28));
}
.icon-calendar {
  font-size: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139,195,74,0.78), rgba(139,195,74,0.25));
}
.icon-call {
  font-size: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,207,106,0.72), rgba(255,207,106,0.18));
}
.icon-health {
  font-size: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(155,122,216,0.62), rgba(155,122,216,0.16));
}

.feature-icon {
  width: 58px; height: 58px; border-radius: 18px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-grid {
  display: grid; grid-template-columns: 1fr 0.95fr; gap: 28px; align-items: center;
}
.check-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.check-list li {
  position: relative; padding-left: 32px; color: var(--muted); line-height: 1.75;
}
.check-list li::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 0; top: 5px;
  border-radius: 50%; background: linear-gradient(135deg, var(--green-bright), #dff5d6);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.05);
}
.stats-panel {
  display: grid; gap: 16px;
}
.stats-box {
  padding: 24px;
  border-radius: 24px;
}
.stats-box .label, .qr-card .label {
  color: var(--muted); display: block; margin-bottom: 10px; font-size: 0.92rem;
}
.stats-box strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}
.app-id-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center;
}
.app-icon {
  width: 90px; height: 90px; border-radius: 24px; object-fit: cover;
  box-shadow: 0 18px 34px rgba(0,0,0,0.26);
}
.app-identity p { margin: 8px 0 0; }
.stats-box.small strong { font-size: 1.7rem; }
.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.pill-wrap {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
}
.pill {
  padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.09); color: #f0ffe9; font-weight: 700; font-size: 0.92rem;
}

.showcase-panel {
  margin: 0 0 26px;
  border-radius: 34px;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}
.showcase-panel img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.screenshot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.screenshot-grid.five-shots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(calc(100vw - 32px), 1380px);
  margin-left: 50%;
  transform: translateX(-50%);
}
.shot-card {
  border-radius: 26px;
  overflow: hidden;
  padding: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.shot-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 42px 90px rgba(139,195,74,0.25);
}
.shot-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
}

.download-card {
  padding: 36px;
  border-radius: 30px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: start;
}
.download-actions {
  display: grid; gap: 14px;
}
.inline-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}
.store-card {
  display: block;
  padding: 20px 22px;
  border-radius: 22px;
  transition: transform .25s ease, background .25s ease;
}
.store-card:hover {
  background: rgba(255,255,255,0.12); transform: translateY(-5px);
}
.store-card small {
  display: block; color: #ddf3d9; margin-bottom: 6px; font-weight: 700;
}
.store-card strong { font-size: 1.32rem; }
.qr-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.qr-card {
  padding: 20px; border-radius: 24px; text-align: center;
}
.qr-image {
  width: 100%; max-width: 220px; margin: 14px auto 16px; border-radius: 18px; background: white; padding: 10px;
}
.qr-card a {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
  padding: 0 16px; border-radius: 14px; background: rgba(255,255,255,0.09); font-weight: 800;
}

.qr-card a:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 5px rgba(255,255,255,0.24);
}
.site-footer { padding: 32px 0 56px; }
.footer-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  color: #d7ead1;
}
.footer-brand span:last-child { font-weight: 900; letter-spacing: 0.06em; color: #ffffff; }

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 1120px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid.five-shots { width: 100%; margin-left: 0; transform: none; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { min-height: auto; padding-top: 24px; }
  .preview-grid, .download-card, .qr-grid { grid-template-columns: 1fr; }
  .screenshot-grid, .screenshot-grid.five-shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .brand-word { font-size: 1.5rem; }
  .brand-logo-wrap { width: 68px; height: 68px; }
  .hero-metrics, .feature-grid, .stat-row, .inline-actions, .screenshot-grid, .screenshot-grid.five-shots { grid-template-columns: 1fr; }
  .phone-stage { width: 100%; }
  .phone-screen { min-height: 620px; }
  .top-card, .bottom-card {
    position: static; margin-bottom: 14px; width: 100%; max-width: none;
  }
  .hero-visual { display: block; }
  .app-id-row { grid-template-columns: 1fr; }
  .app-icon { width: 84px; height: 84px; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .cta-row { display: grid; }
  .download-card { padding: 24px; }
  .feature-box, .stats-box, .qr-card { padding: 20px; }
  .phone-frame { border-radius: 30px; }
  .phone-screen { border-radius: 22px; min-height: 540px; }
  .shot-card { border-radius: 22px; }
}


