:root {
  --quartz: #f4fbff;
  --quartz-deep: #d7e8ee;
  --ink: #17303a;
  --ink-soft: #3a5660;
  --emerald: #1fbf8a;
  --emerald-deep: #0e8f68;
  --violet: #7b6cff;
  --cyan: #4ee0ff;
  --silver: #e8f2f6;
  --glass: rgba(255, 255, 255, 0.42);
  --line: rgba(123, 108, 255, 0.28);
  --font: "IBM Plex Sans Thai", "Sarabun", sans-serif;
  --display: "Syne", "IBM Plex Sans Thai", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(78, 224, 255, 0.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(123, 108, 255, 0.32), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(31, 191, 138, 0.22), transparent 55%),
    linear-gradient(180deg, #eef8fb 0%, #f7fbff 40%, #e9f4f2 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  mix-blend-mode: overlay;
  animation: aurora-shift 16s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes aurora-shift {
  from { transform: translateX(-6%) translateY(-2%); }
  to { transform: translateX(6%) translateY(3%); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald-deep);
}

a:hover {
  color: var(--violet);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(244, 251, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 1.5rem;
  height: 1.9rem;
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  background: linear-gradient(160deg, #ffffff, var(--cyan), var(--emerald), var(--violet));
  box-shadow: 0 0 16px rgba(78, 224, 255, 0.55);
}

.nav-toggle {
  display: none;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--emerald);
}

@media (min-width: 901px) {
  .site-nav[hidden] {
    display: block;
  }
}

.band {
  padding: 3.2rem 0;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--emerald-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
}

.hero-caption {
  padding: 1rem 1rem 0;
}

.hero-frame {
  margin: 0 auto;
  width: min(1200px, 100%);
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(23, 48, 58, 0.18);
}

.hero-frame img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
}

.hero-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(16, 36, 44, 0.78));
  color: #f7fbff;
}

.hero-frame h1 {
  color: #f7fbff;
  max-width: 18ch;
}

.hero-frame .eyebrow {
  color: var(--cyan);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.side-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0 0;
}

.panel-img,
.hero-inline,
.crystal-card img,
.side-hero img {
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(123, 108, 255, 0.12);
}

.hero-inline {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1rem 0 1.4rem;
}

.crystal-card {
  list-style: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(216, 255, 244, 0.28) 40%, rgba(232, 226, 255, 0.35));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 30px rgba(23, 48, 58, 0.08);
}

.card-grid,
.brief-grid,
.team-grid,
.quotes {
  display: grid;
  gap: 1.2rem;
  padding: 0;
  margin: 1.2rem 0 0;
}

.card-grid,
.brief-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.crystal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.stack-cards {
  display: grid;
  gap: 1.2rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.row-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
}

.row-card img {
  height: 150px;
  margin: 0;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quotes {
  grid-template-columns: 1fr 1fr 1fr;
  list-style: none;
}

.quotes blockquote {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.quote-band {
  background: var(--glass);
  border-radius: 1.4rem;
  padding: 2rem 1.4rem;
  border: 1px solid var(--line);
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  color: #f7fbff;
  background: linear-gradient(120deg, var(--emerald-deep), var(--violet) 55%, #3aa8c7);
  isolation: isolate;
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-120%);
  animation: crystal-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.btn-pulse:hover {
  color: #fff;
}

@keyframes crystal-pulse {
  0% { transform: translateX(-120%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
  color: var(--ink);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass);
  border-radius: 1rem;
  overflow: hidden;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.plain-list {
  padding-left: 1.2rem;
}

.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.crystal-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 226, 255, 0.35));
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.3rem;
  backdrop-filter: blur(14px);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.field-error,
.form-error {
  color: #9b2248;
  margin: 0.35rem 0 0;
}

.form-success {
  color: var(--emerald-deep);
  font-weight: 600;
}

.legal h2 {
  margin-top: 1.8rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(123, 108, 255, 0.08));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-label {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-copy {
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
}

.cookie-banner {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.92), rgba(216, 226, 255, 0.92));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(23, 48, 58, 0.12);
  backdrop-filter: blur(16px);
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  align-items: center;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .split,
  .side-hero,
  .card-grid,
  .brief-grid,
  .team-grid,
  .quotes,
  .split-form,
  .footer-grid,
  .row-card,
  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 251, 255, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1.1rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .hero-frame h1 {
    max-width: none;
    font-size: 1.55rem;
  }
}
