:root {
  --sapphire: #0b1f4a;
  --sapphire-mid: #1a3a7a;
  --sapphire-soft: #2f5cb8;
  --indigo: #1e1650;
  --indigo-shadow: #12103a;
  --cyan: #5ee7f0;
  --cyan-soft: #a8f4f8;
  --cyan-glass: rgba(94, 231, 240, 0.18);
  --glass: rgba(232, 244, 255, 0.72);
  --glass-strong: rgba(220, 233, 255, 0.88);
  --white: #f7fbff;
  --ink: #0b1f4a;
  --ink-muted: #4a5f8a;
  --line: rgba(11, 31, 74, 0.12);
  --danger: #8b3a4a;
  --ok: #2a6b5a;
  --font-display: "Prompt", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 0.35rem;
  --header-h: 4.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 45% at 8% 5%, rgba(94, 231, 240, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 92% 12%, rgba(47, 92, 184, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 22, 80, 0.1), transparent 55%),
    linear-gradient(165deg, #f4f8ff 0%, #e4eefc 45%, #d5e4f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0,
      transparent 18px,
      rgba(94, 231, 240, 0.035) 18px,
      rgba(94, 231, 240, 0.035) 19px
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(232, 244, 255, 0.12) 40%,
      rgba(94, 231, 240, 0.14) 50%,
      rgba(47, 92, 184, 0.1) 60%,
      transparent 78%
    );
  background-size: 100% 100%, 240% 100%;
  animation: sapphire-echo 22s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes sapphire-echo {
  0%, 100% { background-position: 0 0, 0% 50%; opacity: 0.55; }
  50% { background-position: 0 0, 100% 50%; opacity: 0.95; }
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave-dissolve {
  0% { transform: scale(0.35); opacity: 0.7; border-radius: 50%; }
  70% { opacity: 0.35; }
  100% { transform: scale(1.15); opacity: 0; border-radius: 42%; }
}

@keyframes crystal-press {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

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

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

a {
  color: var(--sapphire-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(244, 248, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.2rem;
  background:
    linear-gradient(145deg, var(--cyan) 0%, var(--sapphire-soft) 45%, var(--indigo) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 12px rgba(94, 231, 240, 0.35);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--sapphire);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

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

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background:
    linear-gradient(145deg, var(--sapphire-mid) 0%, var(--sapphire) 55%, var(--indigo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(11, 31, 74, 0.28),
    0 0 0 1px rgba(94, 231, 240, 0.15);
}

.btn-primary:hover {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 32px rgba(11, 31, 74, 0.34),
    0 0 18px rgba(94, 231, 240, 0.25);
}

.btn-ghost {
  color: var(--sapphire);
  background: var(--glass);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--glass-strong);
  color: var(--ink);
}

.btn.is-pressing {
  animation: crystal-press 0.55s ease;
}

.crystal-wave {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid rgba(94, 231, 240, 0.65);
  box-shadow:
    0 0 0 1px rgba(168, 244, 248, 0.25),
    inset 0 0 20px rgba(94, 231, 240, 0.2);
  animation: wave-dissolve 0.9s ease-out forwards;
}

.hero-anchor {
  position: relative;
  min-height: min(94vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-anchor__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-anchor__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeup 1.2s ease both;
}

.hero-anchor__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 31, 74, 0.35) 0%, rgba(18, 16, 58, 0.2) 40%, rgba(11, 31, 74, 0.88) 100%),
    linear-gradient(95deg, rgba(11, 31, 74, 0.55) 0%, transparent 55%);
}

.hero-anchor__panel {
  width: 100%;
  padding: 0 0 3.75rem;
  animation: fadeup 0.9s ease both;
}

.hero-glass {
  max-width: 40rem;
  padding: 1.75rem 1.85rem 1.9rem;
  background:
    linear-gradient(145deg, rgba(232, 244, 255, 0.16), rgba(94, 231, 240, 0.08));
  border: 1px solid rgba(232, 244, 255, 0.28);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px rgba(11, 31, 74, 0.35);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-line {
  margin: 0.95rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.4;
  color: var(--cyan-soft);
  letter-spacing: 0.01em;
}

.hero-support {
  margin: 0.85rem 0 0;
  color: rgba(247, 251, 255, 0.88);
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero-glass .btn {
  margin-top: 1.35rem;
}

.hero-place {
  margin: 0.85rem 0 0;
  color: rgba(168, 244, 248, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Alternate hero: mid-viewport editorial stack (no glass card) */
.hero-stage {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  animation: fadeup 1.2s ease both;
}

.hero-stage__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(11, 31, 74, 0.92) 0%, rgba(11, 31, 74, 0.72) 38%, rgba(18, 16, 58, 0.35) 68%, rgba(11, 31, 74, 0.55) 100%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(94, 231, 240, 0.18), transparent 70%);
}

.hero-stage__copy {
  padding: 5.5rem 0 4rem;
  max-width: 36rem;
  animation: fadeup 0.95s ease both;
}

.hero-stage__copy .hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.hero-stage__copy .hero-line {
  color: var(--cyan);
  max-width: 28rem;
}

.hero-stage__copy .hero-support {
  max-width: 30rem;
}

.hero-stage__copy .btn {
  margin-top: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0 4.5rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sapphire);
}

.section-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--ink-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: calc(var(--radius) + 0.55rem);
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(11, 31, 74, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(94, 231, 240, 0.12), transparent 40%);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.fade-in {
  animation: fadeup 0.8s ease both;
}

.delay-1 { animation-delay: 0.12s; }

.offer-list {
  display: grid;
  gap: 0.85rem;
}

.offer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-item:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 31, 74, 0.1);
}

.offer-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.offer-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.offer-meta {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sapphire-soft);
  white-space: nowrap;
}

.quote-list {
  display: grid;
  gap: 1rem;
}

.quote-item {
  padding: 1.5rem 1.6rem;
  background:
    linear-gradient(135deg, rgba(94, 231, 240, 0.12), rgba(47, 92, 184, 0.1));
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.quote-item blockquote {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
}

.quote-item cite {
  font-style: normal;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-muted);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.015em;
  color: var(--sapphire);
}

.page-hero > p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-muted);
}

.page-hero--media {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sapphire-soft);
  font-weight: 600;
}

.media-frame {
  margin: 0;
  border-radius: calc(var(--radius) + 0.4rem);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 31, 74, 0.14);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.price-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sapphire-soft);
}

.prose p {
  max-width: 42rem;
}

.prose.legal h2 {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sapphire);
}

.check-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11, 31, 74, 0.12);
}

.card-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sapphire-soft);
}

.process-steps h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.process-steps p {
  margin: 0;
  color: var(--ink-muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sapphire);
}

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

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.form-field .error {
  margin: 0;
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-status {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-err {
  color: var(--danger);
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, transparent, rgba(11, 31, 74, 0.06)),
    linear-gradient(120deg, rgba(220, 233, 255, 0.5), rgba(94, 231, 240, 0.12));
  border-top: 1px solid var(--line);
}

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

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-tag {
  margin: 0;
  color: var(--ink-muted);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-legal a {
  text-decoration: none;
}

.footer-copy {
  margin: 2rem auto 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(11, 31, 74, 0.96);
  color: var(--white);
  border-top: 1px solid rgba(94, 231, 240, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-inner p {
  margin: 0;
  max-width: 42rem;
  font-size: 0.92rem;
}

.cookie-inner a {
  color: var(--cyan-soft);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(232, 244, 255, 0.3);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
}

.blog-meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 248, 255, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .split,
  .page-hero--media,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-item {
    grid-template-columns: 1fr;
  }

  .hero-glass {
    padding: 1.35rem 1.25rem 1.5rem;
  }
}
