:root {
  --sapphire-950: #061833;
  --sapphire-900: #0b2d5c;
  --sapphire-700: #114a8c;
  --sapphire-500: #1e6fbf;
  --cyan-glass: #3ec6e8;
  --cyan-soft: #7ed7ff;
  --white-glow: #f4fbff;
  --indigo-shadow: rgba(26, 16, 64, 0.42);
  --ink: #0a1c33;
  --muted: #3d5670;
  --line: rgba(126, 215, 255, 0.28);
  --glass: rgba(244, 251, 255, 0.72);
  --radius: 4px;
  --shadow: 0 28px 64px rgba(6, 24, 51, 0.24);
  --font-display: "Pridi", serif;
  --font-body: "Sarabun", sans-serif;
  --shell: min(1140px, 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(1000px 520px at 0% 0%, rgba(62, 198, 232, 0.16), transparent 55%),
    radial-gradient(800px 480px at 100% 8%, rgba(17, 74, 140, 0.2), transparent 50%),
    linear-gradient(165deg, #e6f2fb 0%, #d7e7f6 42%, #eef5fb 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--sapphire-950);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.18rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

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

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

.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(244, 251, 255, 0.8);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sapphire-950);
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, #fff, transparent 42%),
    conic-gradient(from 200deg, #7ed7ff, #114a8c, #3ec6e8, #0b2d5c, #7ed7ff);
  box-shadow: 0 0 0 3px rgba(126, 215, 255, 0.22);
  animation: pulse-mark 5s ease-in-out infinite;
}

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

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

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--sapphire-900);
  border-radius: 2px;
}

.hero-crystal-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(88vh, 760px);
  position: relative;
}

.hero-panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(6, 24, 51, 0.96), rgba(17, 74, 140, 0.88) 55%, rgba(11, 45, 92, 0.94)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(126, 215, 255, 0.05) 18px,
      rgba(126, 215, 255, 0.05) 19px
    );
  color: var(--white-glow);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-radial-gradient(
    circle at 20% 80%,
    rgba(126, 215, 255, 0.14) 0 1px,
    transparent 1px 26px
  );
  animation: wave-drift 22s linear infinite;
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.brand-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
  color: var(--cyan-soft);
  text-shadow: 0 0 40px rgba(62, 198, 232, 0.35);
}

.hero-panel h1 {
  color: var(--white-glow);
  max-width: 18ch;
}

.hero-panel .lede {
  color: rgba(244, 251, 255, 0.88);
  max-width: 34rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--sapphire-950);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  animation: soft-zoom 18s ease-in-out infinite alternate;
}

.hero-echo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 51, 0.45), transparent 35%),
    repeating-radial-gradient(circle at 70% 40%, rgba(126, 215, 255, 0.12) 0 2px, transparent 2px 30px);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

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

.page-hero .lede {
  max-width: 40rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--sapphire-500);
  font-weight: 600;
}

.lede {
  font-size: 1.08rem;
  max-width: 40rem;
  color: var(--muted);
}

.section {
  padding: 4.5rem 0;
}

.section-tint {
  background:
    linear-gradient(135deg, rgba(244, 251, 255, 0.7), rgba(126, 215, 255, 0.11));
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 36rem;
  color: var(--muted);
}

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

.section-cta .narrow {
  padding: 2.5rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(17, 74, 140, 0.94), rgba(6, 24, 51, 0.96));
  color: var(--white-glow);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section-cta .narrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 50% 120%,
    rgba(126, 215, 255, 0.1) 0 2px,
    transparent 2px 24px
  );
  pointer-events: none;
}

.section-cta h2,
.section-cta p {
  color: var(--white-glow);
  position: relative;
  z-index: 1;
}

.section-cta .btn {
  position: relative;
  z-index: 1;
}

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

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.media-frame {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(244, 251, 255, 0.4), rgba(62, 198, 232, 0.08));
}

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

.roadmap-hero-img {
  margin-top: -1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.55);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: crystal-wave 1.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #1e6fbf, #0b3a7a 55%, #114a8c);
  color: var(--white-glow);
  box-shadow: 0 10px 28px rgba(17, 74, 140, 0.35);
}

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

.btn-ghost {
  background: rgba(244, 251, 255, 0.18);
  border-color: rgba(244, 251, 255, 0.42);
  color: var(--white-glow);
  backdrop-filter: blur(8px);
}

.section .btn-ghost,
.page-hero .btn-ghost,
.contact-form .btn-ghost {
  color: var(--sapphire-900);
  border-color: var(--line);
  background: rgba(244, 251, 255, 0.55);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--sapphire-700);
}

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

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  background: rgba(244, 251, 255, 0.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.offer-row h3 {
  margin-bottom: 0.25rem;
}

.offer-row a {
  text-decoration: none;
  color: inherit;
}

.offer-meta {
  color: var(--sapphire-700);
  font-weight: 600;
  white-space: nowrap;
}

.quote-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--cyan-glass);
  background: linear-gradient(90deg, rgba(126, 215, 255, 0.16), rgba(244, 251, 255, 0.4));
  border-radius: 0 10px 10px 0;
}

blockquote p {
  font-size: 1.05rem;
  color: var(--sapphire-950);
}

blockquote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.service-item {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(6, 24, 51, 0.08);
}

.service-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.service-body a {
  text-decoration: none;
}

.check-list {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

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

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

.process-flow article {
  padding: 1.5rem;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(244, 251, 255, 0.82), rgba(62, 198, 232, 0.12));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-glass);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.blog-list {
  display: grid;
  gap: 1.75rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.blog-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.blog-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-item h2 a {
  text-decoration: none;
  color: inherit;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-hero-img {
  margin: 1.5rem 0 2rem;
}

.prose :is(h2, h3) {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.tag-row span {
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  background: rgba(30, 111, 191, 0.12);
  color: var(--sapphire-700);
  font-size: 0.85rem;
}

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

.contact-card,
.contact-form {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.7);
  backdrop-filter: blur(12px);
}

.field {
  margin-bottom: 1rem;
}

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

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 74, 140, 0.22);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(62, 198, 232, 0.55);
  border-color: var(--cyan-glass);
}

.field-error,
.js-error,
.form-status[data-state="error"] {
  color: #9b1c2e;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.form-status[data-state="success"] {
  color: #0f6a4c;
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 45, 92, 0.96), #061833);
  color: rgba(244, 251, 255, 0.88);
}

.site-footer a {
  color: #a9e8ff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

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

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

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

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(126, 215, 255, 0.18);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(6, 24, 51, 0.95);
  border-top: 1px solid rgba(126, 215, 255, 0.28);
  color: var(--white-glow);
  box-shadow: 0 -12px 40px rgba(6, 24, 51, 0.35);
}

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

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
}

.cookie-inner a {
  color: #7ed7ff;
}

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

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

.error-page {
  text-align: center;
  padding: 5rem 0;
}

@keyframes crystal-wave {
  0% {
    inset: 38%;
    opacity: 0.85;
  }
  100% {
    inset: -35%;
    opacity: 0;
  }
}

@keyframes wave-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-80px); }
}

@keyframes pulse-mark {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.07); filter: saturate(1.2); }
}

@keyframes soft-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (max-width: 900px) {
  .hero-crystal-split,
  .split,
  .split.reverse,
  .service-grid,
  .process-flow,
  .contact-layout,
  .footer-grid,
  .blog-item {
    grid-template-columns: 1fr;
  }

  .offer-row {
    flex-direction: column;
    gap: 0.4rem;
  }

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

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

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

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

  .hero-panel-inner {
    padding: 3rem 0 2.5rem;
  }

  .hero-media {
    min-height: 280px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
