/* ─────────────────────────────────────────────────────────────
   Skylight Build — baby blue glass theme
   ──────────────────────────────────────────────────────────── */

:root {
  --sky-50:  #f0f7ff;
  --sky-100: #e0efff;
  --sky-150: #d4e7ff;
  --sky-200: #bfdbfe;
  --sky-300: #93c5fd;
  --sky-400: #60a5fa;
  --sky-500: #3b82f6;
  --sky-700: #1d4ed8;
  --ink:     #0b2545;
  --ink-2:   #1e3a5f;
  --ink-3:   #4a6b8a;
  --white:   #ffffff;

  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-bg-2:   rgba(255, 255, 255, 0.35);
  --glass-edge:   rgba(255, 255, 255, 0.8);
  --glass-stroke: rgba(147, 197, 253, 0.45);
  --glass-shadow: 0 20px 60px -20px rgba(30, 64, 175, 0.25),
                  0 1px 0 rgba(255, 255, 255, 0.9) inset;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --easing: cubic-bezier(0.2, 0.65, 0.25, 1);

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #ffffff 0%, var(--sky-50) 35%, var(--sky-100) 70%, var(--sky-150) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--sky-200); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ─── atmospheric layer ─────────────────────────────────────── */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-a {
  width: 480px; height: 480px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, #c3dafe 0%, rgba(195,218,254,0) 70%);
}
.glow-b {
  width: 560px; height: 560px;
  top: 35%; right: -160px;
  background: radial-gradient(circle, #dbeafe 0%, rgba(219,234,254,0) 70%);
}
.cloud {
  position: absolute;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: drift 60s linear infinite;
}
.cloud-a { width: 380px; height: 160px; top: 12%; left: -8%;  animation-duration: 80s; }
.cloud-b { width: 280px; height: 120px; top: 55%; left: 60%;  animation-duration: 95s; animation-delay: -30s; }
.cloud-c { width: 340px; height: 140px; top: 78%; left: 10%;  animation-duration: 110s; animation-delay: -60s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── nav ───────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glass-shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  filter: drop-shadow(0 2px 6px rgba(59,130,246,0.25));
  flex-shrink: 0;
  transform: translateY(-1px);  /* optical alignment with serif baseline */
}
.brand-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.005em;
}
.brand-name .b-build {
  font-style: normal;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky-500);
  margin-left: 8px;
  vertical-align: 4px;  /* lift to align with serif cap height */
}
.brand-dot { display: none; }  /* legacy separator, no longer needed */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.2s var(--easing), color 0.2s var(--easing);
}
.nav-links a:hover { background: rgba(255,255,255,0.6); color: var(--ink); }
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--white);
}
.nav-links .nav-cta:hover { background: var(--ink-2); color: var(--white); }

@media (max-width: 640px) {
  .nav { margin: 12px 12px 0; padding: 10px 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── main shell ────────────────────────────────────────────── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 96px;
}

section { padding: 96px 0 24px; }
section:first-of-type { padding-top: 80px; }

@media (max-width: 720px) {
  section { padding: 72px 0 16px; }
  section:first-of-type { padding-top: 56px; }
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 640px;
}
.section-head .kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-500);
}
.section-head h2 {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-sub {
  margin: 14px auto 0;
  color: var(--ink-3);
  max-width: 520px;
}

/* ─── hero ──────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding-top: 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: 0 4px 16px -8px rgba(30, 64, 175, 0.2);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.hero-title {
  margin: 28px auto 22px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 900px;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--sky-500) 0%, var(--sky-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}
.hero-meta li {
  padding: 16px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.hero-meta li span {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18px;
  color: var(--sky-500);
  font-style: italic;
}

@media (max-width: 640px) {
  .hero-meta { grid-template-columns: 1fr; }
}

/* ─── buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--easing), box-shadow 0.2s var(--easing),
              background 0.2s var(--easing), color 0.2s var(--easing);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 28px -12px rgba(11, 37, 69, 0.55),
              0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
  background: var(--ink-2);
  box-shadow: 0 14px 34px -12px rgba(11, 37, 69, 0.65);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  color: var(--ink-2);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn-ghost:hover { background: rgba(255,255,255,0.75); color: var(--ink); }

.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ─── service cards ─────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -25px rgba(30, 64, 175, 0.3),
              0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-150), var(--sky-200));
  color: var(--sky-700);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px -4px rgba(96, 165, 250, 0.4);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card p {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 15px;
}
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.card-list li {
  padding-left: 18px;
  position: relative;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky-300);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

/* ─── process steps ─────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 28px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.step-num {
  display: inline-block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--sky-500);
  margin-bottom: 8px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.step p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
}

/* ─── inquiry form ──────────────────────────────────────────── */

.inquire { padding-bottom: 40px; }

.form {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 640px) { .form { padding: 22px; } }

.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field-label-aside {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.field-help {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: -2px;
}
.code-input {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: 15px;
}
.code-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s var(--easing);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky-400);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }

.field-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: var(--ink-3);
  opacity: 0.7;
  pointer-events: none;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(147, 197, 253, 0.4);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s var(--easing);
}
.chip:hover span { background: rgba(255, 255, 255, 0.9); }
.chip input:checked + span {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3);
}

/* honeypot — visually & assistively hidden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.form-actions .btn { width: 100%; max-width: 280px; }
.form-fineprint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  max-width: 380px;
  line-height: 1.5;
}

.btn-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-label { opacity: 0.7; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 4px;
  padding: 0 8px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: #16a34a; }
.form-status.error   { color: #dc2626; }

/* success card replaces the form when sent */
.form.is-sent .form-content { display: none; }
.success-card {
  padding: 14px 0;
  text-align: center;
}
.success-card .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: #047857;
  box-shadow: 0 8px 24px -10px rgba(16, 185, 129, 0.4);
}
.success-card h3 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
}
.success-card p {
  margin: 0 auto;
  color: var(--ink-3);
  max-width: 400px;
}

/* ─── footer ────────────────────────────────────────────────── */

.footer {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 32px 20px 48px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 600; color: var(--ink-2); }
.footer-sep { opacity: 0.4; }
.footer-thin { margin-top: 6px; opacity: 0.75; font-size: 12px; }
