@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&family=Sarabun:wght@400;500;700&display=swap');

:root {
  --bg-primary: #0B0B12;
  --accent-blue: #1E6BFF;
  --accent-pink: #FF2E9A;
  --text-main: #F5F7FF;
  --text-keyword: #7FD1FF;
  --surface: rgba(30, 107, 255, 0.06);
  --surface-strong: rgba(11, 11, 18, 0.85);
  --border-soft: rgba(30, 107, 255, 0.35);
  --glow-blue: 0 0 18px rgba(30, 107, 255, 0.45);
  --glow-pink: 0 0 18px rgba(255, 46, 154, 0.45);
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-btn: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(30, 107, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255, 46, 154, 0.10), transparent 60%),
    var(--bg-primary);
  color: var(--text-main);
  font-family: 'Sarabun', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .nav__link, .btn, .eyebrow, .site-footer__name {
  font-family: 'Prompt', 'Sarabun', sans-serif;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; color: var(--text-keyword); }

p { margin: 0 0 1em; }
a { color: var(--text-keyword); text-decoration: none; }
a:hover { text-shadow: var(--glow-blue); }
img, svg { max-width: 100%; display: block; }

.shell {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-pink);
  color: #0B0B12;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-btn);
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.brand__logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  box-shadow: var(--glow-blue), var(--glow-pink);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle-btn { display: none; }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  color: #FFFFFF;
  border: 0;
  box-shadow: 0 6px 18px rgba(30, 107, 255, 0.25);
}
.btn--primary:hover {
  box-shadow: var(--glow-blue), var(--glow-pink);
}

.btn--ghost {
  background: transparent;
  color: var(--text-keyword);
  border: 1px solid var(--accent-blue);
  box-shadow: inset 0 0 0 0 transparent;
}
.btn--ghost:hover {
  box-shadow: var(--glow-blue), inset 0 0 14px rgba(30, 107, 255, 0.25);
  color: var(--text-main);
}

.header-cta { padding: 0.5rem 1.1rem; min-height: 2.4rem; }

/* ---------- Hero / page hero ---------- */
.hero, .page-hero, .section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  padding-inline: 1rem;
  position: relative;
}
.hero > *, .page-hero > *, .section > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}
.section > * + * { margin-top: 1.5rem; }

.hero {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(30, 107, 255, 0.08), transparent 70%);
  border-bottom: 1px solid rgba(255, 46, 154, 0.18);
}
.page-hero {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 46, 154, 0.06), transparent 75%);
  border-bottom: 1px solid rgba(30, 107, 255, 0.18);
}

.eyebrow {
  display: block;
  width: max-content;
  max-width: calc(100% - 2rem);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-pink);
  background: rgba(255, 46, 154, 0.08);
  color: var(--text-keyword);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  position: static;
  float: none;
  left: auto;
  box-shadow: var(--glow-pink);
}

.lede {
  max-width: 62ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-main);
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Content blocks ---------- */
.feature-row, .contact-grid, .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature, .card, .cta-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover, .card:hover {
  border-color: var(--accent-pink);
  box-shadow: var(--glow-pink), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cta-panel {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(30, 107, 255, 0.14), rgba(255, 46, 154, 0.12)),
    var(--bg-primary);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glow-blue), var(--glow-pink);
}

.split { align-items: center; }

.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  color: var(--text-main);
}
.prose h2, .prose h3 { color: var(--text-keyword); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: #07070D;
  border-top: 1px solid var(--accent-blue);
  box-shadow: 0 -6px 24px rgba(30, 107, 255, 0.12);
  padding-block: 3rem 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
}
.site-footer__tagline { color: var(--text-keyword); opacity: 0.85; margin: 0; }

.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__heading {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: var(--accent-pink);
  margin-bottom: 0.75rem;
}

.site-footer__bar {
  width: min(1120px, 100%);
  margin: 2.5rem auto 0;
  padding: 1rem 1rem 0;
  border-top: 1px solid rgba(30, 107, 255, 0.25);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-main);
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle-btn {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border: 1px solid currentColor;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle-btn::before {
    content: '';
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  }
  .nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked ~ .nav .nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-row, .contact-grid, .split, .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* image-gallery: generated in code */
section.image-gallery .image-gallery__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 1rem;
  width: 100%;
}
section.image-gallery figure.image-gallery__item {
  box-sizing: border-box;
  display: block !important;
  flex: 0 1 calc((100% - 2rem) / 3) !important;
  width: calc((100% - 2rem) / 3) !important;
  max-width: calc((100% - 2rem) / 3) !important;
  margin: 0 !important;
}
section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item {
  flex-basis: min(360px, 100%) !important;
  width: min(360px, 100%) !important;
  max-width: min(360px, 100%) !important;
}
section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
  flex-basis: min(360px, calc((100% - 1rem) / 2)) !important;
  width: min(360px, calc((100% - 1rem) / 2)) !important;
  max-width: min(360px, calc((100% - 1rem) / 2)) !important;
}
section.image-gallery .image-gallery__item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
}
@media (max-width: 720px) {
  section.image-gallery figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
    flex-basis: calc((100% - 1rem) / 2) !important;
    width: calc((100% - 1rem) / 2) !important;
    max-width: calc((100% - 1rem) / 2) !important;
  }
}
@media (max-width: 480px) {
  section.image-gallery figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-1 figure.image-gallery__item,
  section.image-gallery .image-gallery__grid--count-2 figure.image-gallery__item {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* slot-media: homepage images assigned in code */
.slot-media {
  margin: 1rem 0;
  width: 100%;
}
.slot-media__grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 0.75rem;
  width: 100%;
}
.hero--stack .slot-media__grid,
.hero--center .slot-media__grid,
.hero .slot-media__grid--count-1 {
  justify-content: center !important;
}
.slot-media figure.slot-media__item {
  box-sizing: border-box;
  display: block !important;
  flex: 0 1 calc((100% - 1.5rem) / 3) !important;
  width: calc((100% - 1.5rem) / 3) !important;
  max-width: calc((100% - 1.5rem) / 3) !important;
  margin: 0 !important;
}
.slot-media .slot-media__grid--count-1 figure.slot-media__item {
  flex-basis: min(520px, 100%) !important;
  width: min(520px, 100%) !important;
  max-width: min(520px, 100%) !important;
}
.slot-media .slot-media__grid--count-2 figure.slot-media__item,
.slot-media .slot-media__grid--count-many figure.slot-media__item {
  flex-basis: min(360px, calc((100% - 0.75rem) / 2)) !important;
  width: min(360px, calc((100% - 0.75rem) / 2)) !important;
  max-width: min(360px, calc((100% - 0.75rem) / 2)) !important;
}
.shell.split .slot-media figure.slot-media__item {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.shell.split .slot-media .slot-media__grid--count-2 figure.slot-media__item,
.shell.split .slot-media .slot-media__grid--count-many figure.slot-media__item {
  flex-basis: calc((100% - 0.75rem) / 2) !important;
  width: calc((100% - 0.75rem) / 2) !important;
  max-width: calc((100% - 0.75rem) / 2) !important;
}
.slot-media .slot-media__item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: 0.75rem;
}
.hero--center > .slot-media--banner,
.hero--stack > .slot-media--banner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.hero--center > .slot-media--banner .slot-media__grid,
.hero--stack > .slot-media--banner .slot-media__grid {
  justify-content: center !important;
}
.hero--center > .slot-media--banner figure.slot-media__item,
.hero--center > .slot-media--banner .slot-media__grid--count-1 figure.slot-media__item,
.hero--stack > .slot-media--banner figure.slot-media__item,
.hero--stack > .slot-media--banner .slot-media__grid--count-1 figure.slot-media__item {
  flex: 0 1 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.hero--center > .slot-media--banner .slot-media__item img,
.hero--stack > .slot-media--banner .slot-media__item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 0.75rem;
}
@media (max-width: 720px) {
  .hero--center > .slot-media--banner,
  .hero--stack > .slot-media--banner {
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* middle count-1: full width, height capped — not hero, not split */
.section > .shell:not(.split) .slot-media .slot-media__grid--count-1 figure.slot-media__item {
  flex: 0 1 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.section > .shell:not(.split) .slot-media .slot-media__grid--count-1 .slot-media__item img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 28rem !important;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .section > .shell:not(.split) .slot-media .slot-media__grid--count-1 .slot-media__item img {
    max-height: 20rem !important;
  }
}

/* typography rhythm: generated in code */
.section .shell:not(.cta-panel) > h2 { margin-bottom: 1rem; }
.section .shell:not(.cta-panel) > * + * { margin-top: 1.25rem; }
.section .shell:not(.cta-panel) > h2 + * { margin-top: 0; }
.prose > * + * { margin-top: 1rem; }
.prose > h2, .prose > h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0; }

/* hero-img: spacing between hero image and following text */
.hero .shell > img, .page-hero .shell > img {
  margin: 0 auto 1.75rem;
  border-radius: 0.75rem;
}
