:root {
  --sapphire-950: #06122e;
  --sapphire-900: #0b1f4d;
  --sapphire-800: #12306e;
  --sapphire-700: #1a4194;
  --sapphire-600: #2554b8;
  --cyan-glass: #5eead4;
  --cyan-soft: #99f6e4;
  --sky-glass: #7dd3fc;
  --ice: #e0f2fe;
  --white: #f8fbff;
  --indigo-shadow: #1e1b4b;
  --ink: #0c1630;
  --ink-muted: #3d4f73;
  --surface: rgba(248, 251, 255, 0.72);
  --surface-strong: rgba(248, 251, 255, 0.9);
  --glass-border: rgba(125, 211, 252, 0.35);
  --glow: rgba(94, 234, 212, 0.28);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Sarabun", "Tahoma", sans-serif;
  --radius: 2px;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(94, 234, 212, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(37, 84, 184, 0.35), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 27, 75, 0.2), transparent 50%),
    linear-gradient(165deg, #e8f4ff 0%, #d4e4f7 35%, #c5d8f0 70%, #b8cce8 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--sapphire-950);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Crystal surface utility */
.crystal {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55), rgba(224,242,254,0.25) 40%, rgba(94,234,212,0.08)),
    var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(11,31,77,0.06),
    0 18px 40px rgba(6,18,46,0.08);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6,18,46,0.92), rgba(11,31,77,0.88));
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ice);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo:hover { color: var(--cyan-soft); }

.logo-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: rgba(224, 242, 254, 0.88);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cyan-soft);
  background: rgba(94, 234, 212, 0.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: var(--ice);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 18, 46, 0.97);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(94, 234, 212, 0.2);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: 0.75rem 1rem; }
}

/* Buttons — crystalline waveform */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--sapphire-950);
  background: linear-gradient(135deg, var(--cyan-soft), var(--sky-glass) 50%, var(--cyan-glass));
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.35);
}

.btn-primary:hover { color: var(--sapphire-950); }

.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(11, 31, 77, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before {
  animation: wave-expand 1.4s ease-out infinite;
}

.btn-primary:hover::after {
  animation: wave-expand 1.4s ease-out 0.35s infinite;
}

@keyframes wave-expand {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.btn-ghost {
  color: var(--ice);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.45);
}

.btn-ghost:hover {
  color: var(--cyan-soft);
  background: rgba(94, 234, 212, 0.12);
}

.btn-outline {
  color: var(--sapphire-800);
  background: transparent;
  border: 1px solid rgba(26, 65, 148, 0.35);
}

.btn-outline:hover {
  color: var(--sapphire-900);
  background: rgba(125, 211, 252, 0.15);
}

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ice);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6,18,46,0.88) 0%, rgba(11,31,77,0.72) 42%, rgba(6,18,46,0.35) 100%),
    linear-gradient(to top, rgba(6,18,46,0.75) 0%, transparent 45%);
  z-index: 1;
}

.hero-waves {
  position: absolute;
  inset: auto 0 18% 0;
  height: 120px;
  z-index: 2;
  opacity: 0.45;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, transparent 40%, rgba(94,234,212,0.15) 41%, transparent 42%),
    radial-gradient(ellipse 50% 80% at 55% 50%, transparent 40%, rgba(125,211,252,0.12) 41%, transparent 43%),
    radial-gradient(ellipse 35% 50% at 80% 50%, transparent 40%, rgba(147,197,253,0.1) 41%, transparent 42%);
  animation: resonate 6s ease-in-out infinite;
}

@keyframes resonate {
  0%, 100% { opacity: 0.35; transform: scaleX(1); }
  50% { opacity: 0.55; transform: scaleX(1.03); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 0 5rem;
  max-width: 38rem;
  animation: rise-in 0.9s ease-out both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--cyan-soft);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero h1 {
  color: var(--white);
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
}

.hero-lead {
  color: rgba(224, 242, 254, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

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

.section-alt {
  background:
    linear-gradient(180deg, rgba(11,31,77,0.04), rgba(94,234,212,0.06));
}

/* Service list — no card chrome unless interaction needs it */
.service-list {
  display: grid;
  gap: 2.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(26, 65, 148, 0.15);
}

.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr;
}

.service-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(6, 18, 46, 0.15);
  filter: saturate(0.92) contrast(1.05);
}

.service-row h3 {
  margin: 0 0 0.5rem;
}

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

.service-row h3 a:hover {
  color: var(--sapphire-700);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.service-meta strong {
  color: var(--sapphire-800);
  font-weight: 600;
}

@media (max-width: 760px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Evidence / quotes */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.evidence blockquote {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--cyan-glass);
  font-size: 1.05rem;
  color: var(--ink);
}

.evidence cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

@media (max-width: 800px) {
  .evidence { grid-template-columns: 1fr; }
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

.blog-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-item a:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(6, 18, 46, 0.18);
}

.blog-item time {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.blog-item h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
}

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

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  color: var(--ice);
  background: var(--sapphire-900);
}

.page-hero.has-image {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,18,46,0.92), rgba(11,31,77,0.7) 60%, rgba(6,18,46,0.5));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  width: min(100% - 2rem, var(--max));
  padding-bottom: 0.5rem;
}

.page-hero .wrap.wide {
  max-width: var(--max);
}

.page-hero h1 {
  color: var(--white);
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: rgba(224, 242, 254, 0.88);
  margin: 0;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(26, 65, 148, 0.12);
  animation: rise-in 0.6s ease-out both;
}

.process-step:nth-child(2) { animation-delay: 0.1s; }
.process-step:nth-child(3) { animation-delay: 0.2s; }
.process-step:nth-child(4) { animation-delay: 0.3s; }
.process-step:nth-child(5) { animation-delay: 0.4s; }

.process-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sapphire-700);
  line-height: 1;
  background: linear-gradient(180deg, var(--cyan-glass), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-step h3 {
  margin: 0 0 0.4rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.team-member h3 {
  margin: 0 0 0.25rem;
}

.team-member .role {
  color: var(--sapphire-700);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .team-grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* Forms */
.form {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--sapphire-900);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid rgba(26, 65, 148, 0.25);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-glass);
  box-shadow: 0 0 0 3px var(--glow);
}

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

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #b91c1c;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b91c1c;
}

.form-group.has-error .field-error {
  display: block;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: rgba(94, 234, 212, 0.25);
  border: 1px solid rgba(94, 234, 212, 0.5);
  color: var(--sapphire-900);
}

.form-status.is-error {
  display: block;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #7f1d1d;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

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

.prose li {
  margin-bottom: 0.4rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-glass), var(--sky-glass));
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(135deg, var(--sapphire-900), var(--sapphire-800) 50%, #152a62);
  color: var(--ice);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(94,234,212,0.2), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(125,211,252,0.15), transparent 40%);
  animation: resonate 8s ease-in-out infinite;
}

.cta-band .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(224, 242, 254, 0.85);
  max-width: 28rem;
}

/* Footer */
.site-footer {
  background: var(--sapphire-950);
  color: rgba(224, 242, 254, 0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

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

.site-footer h3 {
  color: var(--ice);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.site-footer a {
  color: rgba(224, 242, 254, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan-soft);
}

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

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cyan-soft);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(125, 211, 252, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(6,18,46,0.95), rgba(18,48,110,0.94));
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 -8px 40px rgba(6, 18, 46, 0.35);
  color: var(--ice);
  backdrop-filter: blur(16px);
}

.cookie-inner p {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(224, 242, 254, 0.9);
}

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

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

.cookie-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--sapphire-700), var(--cyan-glass));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.5rem;
}

.detail-aside .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sapphire-800);
  margin-bottom: 0.35rem;
}

@media (max-width: 800px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--cyan-glass);
  color: var(--sapphire-950);
  padding: 0.5rem 1rem;
  z-index: 300;
}

.skip-link:focus {
  top: 1rem;
}
