:root {
  color-scheme: light;
  --primary: #000166;
  --horga-darkblue: #111b4f;
  --horga-blue: #0059da;
  --accent-orange: #ff6602;
  --accent-market: #03bf91;
  --text: #0d0d0d;
  --text-muted: #505050;
  --surface: #ffffff;
  --line: #e5e7eb;
  --shadow-sm: 0 0 14px rgba(88, 92, 95, 0.16);
  --shadow-md: 0 16px 40px -8px rgba(88, 92, 95, 0.16);
  --radius-card: 16px;
  --nav-height: 72px;
  --gradient-divider-orange: linear-gradient(
    90deg,
    var(--accent-orange) 0%,
    #ffa726 50%,
    #ffffff 100%
  );
  --gradient-divider-blue: linear-gradient(
    90deg,
    #18a0db 0%,
    var(--horga-blue) 60%,
    #ffffff 100%
  );
  font-family: "IBM Plex Sans Thai", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.font-outfit {
  font-family: Outfit, ui-sans-serif, sans-serif;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.portal-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-top: var(--nav-height);
  padding: 48px 20px 56px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30%, rgba(255, 102, 2, 0.45), transparent 42%),
    radial-gradient(circle at 50%, rgba(175, 225, 246, 0.35), transparent 42%),
    radial-gradient(circle at 70%, rgba(0, 59, 145, 0.65), transparent 42%),
    linear-gradient(135deg, var(--horga-darkblue) 0%, #003b91 55%, #001a66 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-logo {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 20px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
}

.main {
  background: linear-gradient(180deg, #f6fafc 0%, #ffffff 100%);
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.section-header {
  margin-bottom: 28px;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.25;
}

.section-subtitle {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.divider {
  width: 160px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
}

.divider-orange {
  background: var(--gradient-divider-orange);
}

.product-grid {
  display: grid;
  gap: 24px;
}

.product-block {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.product-head {
  margin-bottom: 18px;
}

.product-brands {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-brand {
  display: block;
  width: auto;
  max-width: min(220px, calc(50% - 8px));
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.product-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.action-grid {
  display: grid;
  gap: 14px;
}

.action-link {
  --btn-color: var(--accent-orange);
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fafbfc;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.market .action-link {
  --btn-color: var(--accent-market);
}

.action-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--btn-color) 35%, white);
  background: color-mix(in srgb, var(--btn-color) 6%, white);
  box-shadow: var(--shadow-sm);
}

.action-link.support {
  border-left: 4px solid var(--btn-color);
}

.action-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-link.support .action-meta {
  color: var(--btn-color);
}

.action-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.action-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.action-cta {
  margin-top: 8px;
  color: var(--btn-color);
  font-size: 14px;
  font-weight: 500;
}

.guide {
  max-width: 1080px;
  margin: 0 auto 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide summary {
  padding: 16px 20px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}

.guide[open] summary {
  border-bottom: 1px solid var(--line);
}

.guide[open] summary::after {
  content: "−";
}

.guide-content {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.guide-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 89, 218, 0.06);
}

.guide-card.support {
  background: rgba(255, 102, 2, 0.08);
}

.guide-card h3 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.guide-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.guide-card li + li {
  margin-top: 4px;
}

.site-footer {
  background: var(--horga-darkblue);
  color: #fff;
  padding: 32px 20px;
}

.site-footer-inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 147px;
  height: auto;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--horga-blue);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .site-nav-inner,
  .section,
  .guide {
    padding-inline: 32px;
  }

  .brand img {
    height: 35px;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-block {
    padding: 28px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 280px;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .section {
    padding-top: 36px;
  }
}
