:root {
  --ink: #05060f;
  --navy: #0a1c44;
  --deep: #123a6b;
  --bone: #ede6da;
  --bone-dim: rgba(237, 230, 218, .62);
  --bone-faint: rgba(237, 230, 218, .14);
  --gold: #e0a35a;
  --sky: #cfe2ff;
  --glow: #9fd0ff;
  --blue: rgb(70, 140, 255);
  --card: rgba(255, 255, 255, .045);
  --line: rgba(207, 226, 255, .12);
  --ok: #7fd6a0;
  --warn: #f0b36a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  font-family: "Rubik", system-ui, sans-serif; font-size: 16px;
  color: var(--bone); background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* Soft gradients instead of filter: blur, so phones render it without lag */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 72% 12%, rgba(18,58,107,.95), rgba(10,28,68,.55) 45%, transparent 75%),
    radial-gradient(45% 40% at 95% 45%, rgba(11,42,74,.7), transparent 70%),
    radial-gradient(50% 45% at 12% 95%, rgba(18,58,107,.45), transparent 70%),
    #05060f;
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
.wrap { position: relative; z-index: 1; width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.gold { color: var(--gold); }
.muted { color: var(--bone-dim); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }
.top img.logo { height: 58px; width: auto; display: block; }
@media (max-width: 600px) { .top img.logo { height: 42px; } }
.pill.big {
  padding: 11px 22px; gap: 11px; font-size: 17px; font-weight: 600; letter-spacing: .01em; color: var(--bone);
  border-color: rgba(224,163,90,.45); background: rgba(224,163,90,.08);
  box-shadow: 0 0 30px -8px rgba(224,163,90,.45);
}
.pill.big .dot { width: 9px; height: 9px; }
@media (max-width: 600px) { .pill.big { padding: 9px 16px; font-size: 15px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .02em;
  border: 1px solid var(--line); background: rgba(5,6,15,.35); color: var(--sky);
  backdrop-filter: blur(8px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #3d8bff, #1f5fd6);
  box-shadow: 0 0 0 1px rgba(159,208,255,.25) inset, 0 8px 30px -6px rgba(70,140,255,.65);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(159,208,255,.4) inset, 0 12px 38px -6px rgba(70,140,255,.85); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line) inset; color: var(--bone); }
.btn.ghost:hover { background: rgba(255,255,255,.09); }
.btn.sm { padding: 9px 15px; font-size: 14px; }
.btn.ok { background: rgba(127,214,160,.12); color: var(--ok); box-shadow: 0 0 0 1px rgba(127,214,160,.35) inset; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:focus-visible, .card button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* inputs */
label.field { display: grid; gap: 8px; font-size: 14px; color: var(--sky); }
.input {
  width: 100%; font: inherit; color: var(--bone); padding: 13px 16px; border-radius: 14px;
  background: rgba(5,6,15,.45); border: 1px solid var(--line); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(159,208,255,.55); box-shadow: 0 0 0 4px rgba(70,140,255,.15); }
textarea.input { min-height: 110px; resize: vertical; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(14px); }

.toast {
  position: fixed; inset-inline: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); margin: auto; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: rgba(10,28,68,.92); border: 1px solid var(--line);
  color: var(--bone); font-size: 14px; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  transform: translateY(20px); opacity: 0; transition: .3s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }

footer.foot { padding-block: 60px 40px; text-align: center; color: var(--bone-dim); font-size: 14px; }
footer.foot img { height: 26px; opacity: .8; margin-bottom: 14px; }
footer.foot .svc { letter-spacing: .02em; }
footer.foot .svc span { color: var(--gold); margin-inline: 8px; }

@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* Hide the "Powered by Netlify" badge that Netlify injects on free-plan sites */
#nl-badge-frame, #nl-hud-frame { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* Copyright line, same wording and style as the portfolio footer */
footer.foot .rights { margin: 22px auto 0; padding-top: 18px; max-width: 560px; border-top: 1px solid var(--line); font-size: 14px; color: var(--bone-dim); }
