:root {
  /* Figma brand magenta (not legacy dusty rose) */
  --chula-pink: #cc5a7f;
  --chula-pink-hover: #b84d70;
  --chula-pink-rgb: 204, 90, 127;
  --chula-grey: #8e8e8e;
  --chula-nav: #6b7280;
  --neutral-800: #2f2f2f;
  --neutral-900: #171717;
  --chula-font-body: "Chula Charas New", "Chula Longkorn", sans-serif;
  --chula-font-heading: "Chula Longkorn", "Chula Charas New", sans-serif;
  --hero-bg-1: #f796b8;
  --hero-bg-2: #e86595;
  --hero-bg-3: #d04a78;
  --chula-band: #d15d89;
  --chula-band-dark: #c04f78;
  --chula-slate-btn: #7d8891;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--chula-font-body);
}

body {
  margin: 0;
  color: var(--neutral-900);
  background: #fff;
  line-height: 1.5;
  overflow-x: clip;
  font-family: var(--chula-font-body);
}

body,
button,
input,
select,
textarea,
.chula-v2-nav__link,
.chula-v2-mobile-nav__link,
.chula-v2-btn,
.chula-v2-member-btn,
.chula-v2-lang__btn,
.chula-v2-pill,
.chula-v2-site-footer {
  font-family: var(--chula-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.chula-v2-hero__title,
.chula-v2-page-hero__title {
  font-family: var(--chula-font-heading);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.chula-v2-container {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* â€”â€” Header â€”â€” */
.chula-v2-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.chula-v2-header__bar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chula-v2-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.chula-v2-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  line-height: 1.25;
  text-decoration: none;
  min-width: 0;
}

.chula-v2-logo img {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  max-width: min(120px, 32vw);
}

.chula-v2-logo__tagline {
  font-size: clamp(0.625rem, 1.1vw, 0.75rem);
  font-weight: 500;
  color: var(--chula-pink);
  max-width: 11.5rem;
  line-height: 1.35;
}

.chula-v2-nav--desktop {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.25rem, 0.8vw, 0.65rem);
}

.chula-v2-nav__link {
  position: relative;
  text-decoration: none;
  color: #4b5563;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.chula-v2-nav__link:hover {
  color: var(--chula-pink);
}

.chula-v2-nav__link.is-active,
.chula-v2-nav__link[aria-current="page"] {
  color: var(--chula-pink);
  font-weight: 600;
  background: rgba(var(--chula-pink-rgb), 0.14);
  padding-inline: 0.85rem;
  box-shadow: 0 0 0 1px rgba(var(--chula-pink-rgb), 0.22);
}

.chula-v2-nav__link.is-active::after {
  content: none;
}

.chula-v2-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.35rem, 1.2vw, 0.65rem);
}

.chula-v2-lang {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  border: 0;
  background: #e8eef3;
}

.chula-v2-lang__btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-width: 34px;
  height: 28px;
  padding: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
}

.chula-v2-lang__btn.is-active {
  background: transparent;
  color: var(--chula-pink);
  box-shadow: none;
}

.chula-v2-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chula-v2-icon-btn--profile {
  border-radius: 50%;
  background: #e8eef3;
}

.chula-v2-icon-btn--plain:hover,
.chula-v2-icon-btn--profile:hover {
  background: #dde5ec;
  color: #4b5563;
}

.chula-v2-icon-btn:hover {
  background: #f3f3f3;
  color: #656565;
}

.chula-v2-search-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.chula-v2-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.chula-v2-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #4f4f4f;
}

.chula-v2-mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem 1rem 0.85rem;
}

.chula-v2-mobile-nav.is-open {
  display: flex;
}

.chula-v2-mobile-nav__link {
  padding: 0.75rem 0.25rem;
  text-decoration: none;
  color: var(--chula-nav);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chula-v2-mobile-nav__link.is-active,
.chula-v2-mobile-nav__link[aria-current="page"] {
  color: var(--chula-pink);
  font-weight: 600;
  background: rgba(var(--chula-pink-rgb), 0.12);
  border-radius: 0.5rem;
  padding-inline: 0.5rem;
}

/* â€”â€” Hero â€”â€” */
.chula-v2-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  container-type: inline-size;
  container-name: hero;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 78% 22%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(90deg, var(--hero-bg-1) 0%, #e8669a 38%, var(--hero-bg-2) 68%, var(--hero-bg-3) 100%);
  padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.chula-v2-hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: 10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(40px);
  pointer-events: none;
}

.chula-v2-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
}

.chula-v2-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.chula-v2-hero__visual {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

@container hero (min-width: 880px) {
  .chula-v2-hero__grid {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .chula-v2-hero__copy {
    flex: 1 1 52%;
    max-width: none;
  }

  .chula-v2-hero__visual {
    flex: 1 1 48%;
    max-width: none;
    margin-inline: 0;
  }

  .chula-v2-hero__actions {
    flex-direction: row;
  }

  .chula-v2-btn {
    width: auto;
    flex: 0 1 auto;
  }
}

.chula-v2-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
}

.chula-v2-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9dff4f;
  box-shadow: 0 0 10px rgba(157, 255, 79, 0.65);
}

.chula-v2-hero__title {
  margin: 0;
  font-family: var(--chula-font-heading);
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}

.chula-v2-hero__title-accent {
  position: relative;
  display: inline-block;
  width: fit-content;
  margin-top: 0.1rem;
}

.chula-v2-hero__squiggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.chula-v2-hero__lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
}

.chula-v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.chula-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.chula-v2-btn:hover {
  transform: translateY(-1px);
}

.chula-v2-btn--dark {
  background: #2a2330;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.chula-v2-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
}

.chula-v2-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.chula-v2-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 5.5rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.chula-v2-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.chula-v2-stat strong {
  font-family: var(--chula-font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.1;
}

.chula-v2-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Vision window */
.chula-v2-vision {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(20, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.chula-v2-vision__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chula-v2-vision__dots {
  display: flex;
  gap: 0.35rem;
}

.chula-v2-vision__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.chula-v2-vision__dots span:nth-child(2) {
  background: #febc2e;
}

.chula-v2-vision__dots span:nth-child(3) {
  background: #28c840;
}

.chula-v2-vision__sys {
  font-family: var(--chula-font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.chula-v2-vision__latency {
  opacity: 0.75;
}

.chula-v2-vision__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.chula-v2-vision__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) hue-rotate(-8deg) contrast(1.05);
}

.chula-v2-vision__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(180, 60, 110, 0.15), rgba(80, 20, 50, 0.45));
  pointer-events: none;
}

.chula-v2-vision__hud {
  position: absolute;
  inset: 12% 8% auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  pointer-events: none;
}

.chula-v2-vision__hud-tag,
.chula-v2-vision__hud-title {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chula-v2-vision__hud-title {
  margin-left: auto;
}

.chula-v2-vision__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.chula-v2-vision__footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8669a, #9d6678);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chula-v2-vision__footer-icon span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9dff4f;
}

.chula-v2-vision__footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.chula-v2-vision__footer-text strong {
  font-size: 0.82rem;
}

.chula-v2-vision__footer-text span {
  font-size: 0.68rem;
  opacity: 0.82;
}

.chula-v2-vision__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #c94d7f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chula-v2-vision__live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
}

.chula-v2-hero__pager {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.chula-v2-hero__pager span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.chula-v2-hero__pager span.is-active {
  width: 28px;
  background: #fff;
}

/* Homepage sections: see home-sections.css */

/* Tablet: compact desktop-like header */
@media (max-width: 960px) {
  .chula-v2-nav--desktop {
    display: none;
  }

  .chula-v2-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chula-v2-nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 961px) {
  .chula-v2-nav-toggle {
    display: none;
  }
}

@media (max-width: 1100px) {
  .chula-v2-logo__tagline {
    display: none;
  }
}

@media (max-width: 640px) {
  .chula-v2-header__inner {
    min-height: 58px;
  }

  .chula-v2-logo img {
    height: 32px;
    max-width: min(132px, 46vw);
  }

  .chula-v2-header__actions .chula-v2-icon-btn {
    display: none;
  }

  .chula-v2-hero {
    min-height: auto;
    padding: 1.75rem 0 2.25rem;
  }

  .chula-v2-hero__glow {
    width: 280px;
    height: 280px;
    right: -40px;
    top: 0;
  }

  .chula-v2-hero__title {
    font-size: clamp(1.65rem, 8.5vw, 2.15rem);
  }

  .chula-v2-hero__lead {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .chula-v2-hero__badge {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 879px) {
  .chula-v2-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chula-v2-btn {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 879px) {
  .chula-v2-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chula-v2-btn {
    width: auto;
    flex: 1 1 calc(50% - 0.375rem);
  }
}

@media (max-width: 640px) {
  .chula-v2-hero__stats {
    gap: 0.65rem;
  }

  .chula-v2-stat {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 0;
    padding-right: 0.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .chula-v2-stat:nth-child(3) {
    border-right: 0;
  }

  .chula-v2-stat strong {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .chula-v2-stat span {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .chula-v2-vision__chrome {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "dots latency"
      "sys sys";
    font-size: 0.58rem;
  }

  .chula-v2-vision__dots {
    grid-area: dots;
  }

  .chula-v2-vision__sys {
    grid-area: sys;
    margin-top: 0.25rem;
  }

  .chula-v2-vision__latency {
    grid-area: latency;
    justify-self: end;
  }

  .chula-v2-vision__footer {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .chula-v2-vision__footer-text {
    flex: 1 1 calc(100% - 120px);
  }

  .chula-v2-vision__live {
    margin-left: 0;
  }

  .chula-v2-vision__hud-title {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* Site footer (global — every page) */
.chula-v2-site-footer {
  background: #f3f4f6;
  padding: clamp(2rem, 4vw, 2.75rem) 0 0;
}

.chula-v2-site-footer__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .chula-v2-site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.chula-v2-site-footer__heading {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.chula-v2-site-footer__heading-sub {
  margin: 0.15rem 0 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.chula-v2-site-footer__address-block,
.chula-v2-site-footer__contact-lines {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4b5563;
}

.chula-v2-site-footer__section-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--chula-pink);
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
}

.chula-v2-site-footer__list,
.chula-v2-site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.chula-v2-site-footer__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chula-v2-site-footer__list a,
.chula-v2-site-footer__links a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
}

.chula-v2-site-footer__list a:hover,
.chula-v2-site-footer__links a:hover {
  color: var(--chula-pink);
}

.chula-v2-site-footer__contact-lines {
  margin-top: 0.85rem;
  color: #6b7280;
}

.chula-v2-site-footer__contact-lines a {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
}

.chula-v2-site-footer__email {
  color: var(--chula-pink) !important;
}

.chula-v2-legal {
  margin-top: 2rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #eceff2;
}

.chula-v2-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--chula-grey);
}

.chula-v2-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.chula-v2-legal__links a {
  color: inherit;
  text-decoration: none;
}

.chula-v2-legal__links a:hover {
  color: var(--chula-pink);
}
