/* Shared tokens + reset — icon cyan */
:root {
  --shell-bg: #050c14;
  --shell-card: rgba(10, 32, 48, 0.78);
  --shell-border: rgba(120, 235, 250, 0.2);
  --shell-text: #f2fcff;
  --shell-muted: #8bb8c6;
  --shell-violet: #2ec8e0;
  --shell-magenta: #5af0ff;
  --shell-blue: #1a9ec0;
  --shell-deep: #0c3a58;
  --shell-cream: #f2fcff;
  --font-serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --nav-h: 3.25rem;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-title: linear-gradient(105deg, #f5feff 0%, #b8f6ff 36%, #5aefff 66%, #20f0f0 100%);
  --grad-cta: linear-gradient(135deg, #1aa8c4 0%, #32d8ec 45%, #5af5ff 100%);
  --grad-beam: linear-gradient(128deg, #0c3a58 0%, #1aa8c4 35%, #32d8ec 65%, #5af5ff 100%);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--shell-text);
  background: var(--shell-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

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

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

/* —— Shell atmosphere (icon cyan) —— */
.shell-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--shell-bg);
}

.shell-atmosphere::before,
.shell-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.shell-atmosphere::before {
  top: -22%;
  left: -16%;
  width: min(75vw, 46rem);
  height: min(75vw, 46rem);
  background: radial-gradient(circle, rgba(64, 250, 255, 0.34) 0%, rgba(40, 180, 220, 0.22) 42%, transparent 70%);
  opacity: 0.85;
}

.shell-atmosphere::after {
  right: -18%;
  bottom: -28%;
  width: min(90vw, 52rem);
  height: min(90vw, 52rem);
  background: radial-gradient(circle, rgba(30, 120, 180, 0.38) 0%, rgba(12, 55, 95, 0.26) 40%, transparent 72%);
  opacity: 0.88;
}

/* Mobile: single softer top glow + quieter BR */
@media (max-width: 767px) {
  .shell-atmosphere::before {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(130vw, 30rem);
    height: min(100vw, 24rem);
    opacity: 0.55;
    filter: blur(70px);
  }
  .shell-atmosphere::after {
    right: -35%;
    bottom: -18%;
    width: min(110vw, 26rem);
    height: min(110vw, 26rem);
    opacity: 0.45;
    filter: blur(60px);
  }
}

.shell-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(230, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 18%, rgba(90, 245, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 88% 35%, rgba(64, 235, 250, 0.5), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(210, 250, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 42%, rgba(50, 220, 240, 0.38), transparent),
    radial-gradient(1px 1px at 18% 55%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 80% 58%, rgba(32, 170, 210, 0.35), transparent);
  opacity: 0.9;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 50;
  padding-inline: 1rem;
}

.nav-pill {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  background: rgba(6, 12, 18, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.nav-links a {
  color: var(--shell-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--shell-text);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #031018;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--shell-border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--shell-text);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .nav-pill {
    padding-right: 0.45rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-pill.is-open .nav-drawer {
    display: flex;
  }
}

.nav-drawer {
  display: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.5rem);
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 1.1rem;
  border: 1px solid var(--shell-border);
  background: rgba(10, 10, 24, 0.94);
  backdrop-filter: blur(18px);
}

.nav-drawer a {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--shell-muted);
  font-weight: 500;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  color: var(--shell-text);
  background: rgba(126, 79, 254, 0.12);
  font-weight: 700;
}

.nav-drawer .nav-cta {
  display: inline-flex;
  margin-top: 0.35rem;
  text-align: center;
}

/* —— Typography / buttons —— */
.serif {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.gradient-title {
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--shell-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--grad-cta);
  color: #031018;
  box-shadow: 0 8px 28px rgba(47, 122, 112, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--shell-text);
  border: 1px solid var(--shell-border);
  backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--shell-card);
  border: 1px solid var(--shell-border);
  border-radius: 1.35rem;
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(80, 160, 150, 0.14), transparent 42%, rgba(107, 199, 184, 0.08));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 1rem;
  color: var(--shell-muted);
  font-size: 0.98rem;
}

.card-link {
  font-weight: 650;
  font-size: 0.92rem;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  color: var(--shell-muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--shell-border);
  padding-top: 1.5rem;
}

.site-footer a:hover {
  color: var(--shell-text);
}
