:root {
  --sapphire: #1e4fd6;
  --sapphire-deep: #0b1c3d;
  --sapphire-mid: #163a8a;
  --cyan-glass: #7ec8ff;
  --cyan-soft: #9ad7ff;
  --indigo-shadow: #1a1a4a;
  --white-glow: #e8f6ff;
  --foam: rgba(232, 246, 255, 0.14);
  --ink: #e8f4ff;
  --ink-muted: rgba(232, 244, 255, 0.72);
  --line: rgba(158, 215, 255, 0.22);
  --panel: linear-gradient(145deg, rgba(30, 79, 214, 0.22), rgba(11, 28, 61, 0.72));
  --shadow: 0 22px 60px rgba(8, 18, 48, 0.45);
  --radius: 1.1rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Thai", "Sarabun", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(126, 200, 255, 0.28), transparent 55%),
    radial-gradient(700px 480px at 88% 8%, rgba(30, 79, 214, 0.35), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(26, 26, 74, 0.55), transparent 60%),
    linear-gradient(165deg, #071428 0%, #0b1c3d 42%, #12183a 100%);
  min-height: 100vh;
  line-height: 1.7;
}

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

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

a:hover {
  color: #fff;
}

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

.sr-only {
  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(16px);
  background: rgba(7, 20, 40, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white-glow);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(135deg, var(--cyan-glass), var(--sapphire), var(--indigo-shadow));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 24px rgba(126, 200, 255, 0.35);
  animation: crystalPulse 5.5s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.35rem;
}

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

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

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

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--foam);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--white-glow);
}

.hero-echo {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-echo-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(126, 200, 255, 0.03) 18px,
      rgba(126, 200, 255, 0.03) 19px
    ),
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(126, 200, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-echo-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-echo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.45) contrast(1.05);
}

.hero-echo-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 40, 0.35) 0%, rgba(7, 20, 40, 0.55) 45%, rgba(7, 20, 40, 0.92) 100%),
    radial-gradient(600px 280px at 70% 30%, rgba(30, 79, 214, 0.35), transparent 70%);
}

.hero-echo-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - var(--shell)) / 2));
  margin-right: auto;
  animation: riseIn 0.9s ease-out both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 40px rgba(126, 200, 255, 0.35);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--cyan-soft);
  max-width: 28rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  max-width: 32rem;
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

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

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.08), transparent);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2,
.prose h2,
.process-step h2,
.pricing-row h2,
.offer-item h2,
.split-cta h2,
.center-cta h2 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.crystal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 1.4rem;
}

.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.feature-split img,
.offer-item img,
.bleed-hero img {
  border-radius: calc(var(--radius) - 0.2rem);
  width: 100%;
  object-fit: cover;
}

.feature-split h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}

.meta {
  color: var(--cyan-soft);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  padding: 0;
  background: transparent;
}

.offer-item img {
  aspect-ratio: 8 / 5;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}

.offer-item h2,
.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

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

.offer-meta {
  color: var(--cyan-glass) !important;
  font-weight: 600;
}

.quote-band {
  margin: 0;
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--cyan-glass);
  background: linear-gradient(90deg, rgba(30, 79, 214, 0.18), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 1rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.split-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.checklist {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--cyan-glass) 45%, var(--sapphire));
  box-shadow: 0 0 10px rgba(126, 200, 255, 0.55);
}

.price-note {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.price-display {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0.2rem 0 0.5rem;
  color: #fff;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  color: #071428;
  background: linear-gradient(135deg, #e8f6ff, var(--cyan-glass) 45%, #5aa8ef);
  box-shadow: 0 10px 28px rgba(126, 200, 255, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 40% auto 40% 50%;
  width: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(126, 200, 255, 0.4);
}

.btn-primary:hover::after {
  animation: waveBurst 0.9s ease-out;
}

.btn-ghost {
  color: var(--white-glow);
  background: rgba(126, 200, 255, 0.08);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(126, 200, 255, 0.16);
  color: #fff;
}

.bleed-hero {
  position: relative;
  min-height: 38vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.bleed-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.42) saturate(0.9);
}

.bleed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(7, 20, 40, 0.92) 100%);
}

.bleed-copy {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2rem;
}

.bleed-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0.3rem 0 0.5rem;
  max-width: 18ch;
}

.bleed-copy p {
  color: var(--ink-muted);
  max-width: 36rem;
}

.prose p,
.legal p,
.legal li {
  color: var(--ink-muted);
}

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

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

.process-step {
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan-glass), transparent);
}

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

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.pricing-side {
  text-align: right;
  flex-shrink: 0;
}

.center-cta {
  text-align: center;
}

.center-cta p {
  color: var(--ink-muted);
  margin: 0 auto 1rem;
  max-width: 36rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.optional {
  font-weight: 400;
  color: var(--ink-muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(7, 20, 40, 0.55);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(126, 200, 255, 0.45);
  outline-offset: 1px;
}

.field-error {
  color: #ffb4b4;
  font-size: 0.85rem;
  min-height: 1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}

.form-status[data-state="success"] {
  background: rgba(80, 180, 140, 0.18);
  border-color: rgba(120, 220, 180, 0.35);
}

.form-status[data-state="error"] {
  background: rgba(180, 60, 80, 0.18);
  border-color: rgba(255, 140, 160, 0.35);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(8, 14, 36, 0.65));
}

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

.footer-heading {
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--white-glow);
}

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

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a,
.footer-brand a {
  text-decoration: none;
  color: var(--ink-muted);
}

.footer-links a:hover,
.footer-brand a:hover {
  color: #fff;
}

.footer-brand .brand-name {
  margin: 0 0 0.4rem;
}

.footer-address {
  color: var(--ink-muted);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(7, 20, 40, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
}

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

.cookie-inner p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48rem;
}

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

.js-error {
  position: fixed;
  left: 1rem;
  bottom: 6.5rem;
  z-index: 51;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(120, 30, 50, 0.92);
  color: #fff;
  max-width: 24rem;
}

@keyframes crystalPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 18px rgba(126, 200, 255, 0.28); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 30px rgba(126, 200, 255, 0.55); }
}

@keyframes waveBurst {
  0% { opacity: 0.8; inset: 42% 42%; width: auto; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  100% { opacity: 0; inset: -20% -20%; width: auto; box-shadow: 0 0 0 28px rgba(255, 255, 255, 0); }
}

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

@media (max-width: 900px) {
  .offer-list,
  .feature-split,
  .grid-2,
  .split-cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-side {
    text-align: left;
  }

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

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

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

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

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

  .hero-echo-inner {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    max-width: none;
  }
}
