@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --night-0: #040814;
  --night-1: #081027;
  --night-2: #0e1b3d;
  --blue: #7ea6ff;
  --blue-soft: #a9c3ff;
  --silver: #dfe6f2;
  --silver-dim: #b7c3d8;
  --muted: #b4c0d6;
  --heading: #f2f6fd;
  --ink: #0a1330;
  --line: rgba(190, 208, 240, 0.16);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

/* overflow-x on html only: setting it on body too would break position: sticky */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--silver);
  background: var(--night-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layers: bg 0, canvas 1, content 2, nav 100 ---------- */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 78% 18%, rgba(70, 110, 200, 0.28), transparent 65%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(60, 90, 170, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night-1) 45%, var(--night-0) 100%);
}

#sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 26px 0;
  background: rgba(6, 11, 28, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: padding 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--silver);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  transition: font-size 250ms ease;
}

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

.logo .turn {
  font-style: italic;
  color: var(--blue-soft);
}

.logo .tld {
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
  margin-left: 0.5em;
}

.site-nav .nav-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 245, 0.4);
  background: rgba(126, 166, 255, 0.08);
  transition: padding 250ms ease, font-size 250ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.site-nav .nav-link:hover {
  background: var(--silver);
  color: var(--ink);
  border-color: var(--silver);
  box-shadow: 0 0 24px rgba(169, 195, 255, 0.45);
}

.site-nav .nav-link:focus-visible,
.signal-cta:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
  box-shadow: none;
}

.site-nav.nav-scrolled {
  padding: 10px 0;
  background: rgba(6, 11, 28, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.site-nav.nav-scrolled .logo {
  font-size: 1.5rem;
}

.site-nav.nav-scrolled .nav-link {
  padding: 7px 18px;
  font-size: 0.78rem;
}

/* ---------- Content ---------- */
.hero,
.cards-section,
.cta,
.signal-line {
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 12vh 0 9vh;
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-shadow: 0 2px 40px rgba(4, 8, 20, 0.9), 0 0 60px rgba(126, 166, 255, 0.25);
}

.hero h1 .line {
  display: block;
}

.hero h1 .line + .line {
  font-style: italic;
  background: linear-gradient(100deg, #a9c3ff 0%, #eef3fb 50%, #b7c3d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.hero-sub {
  max-width: 680px;
  margin: 2.2rem auto 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 1px 18px rgba(4, 8, 20, 0.9);
}

/* ---------- Cards ---------- */
.cards-section {
  padding: 4vh 0 10vh;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 38px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 34, 72, 0.88), rgba(9, 16, 38, 0.92));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(2, 5, 15, 0.45);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(190, 208, 240, 0.4);
  box-shadow: 0 22px 54px rgba(2, 5, 15, 0.6), 0 0 34px rgba(126, 166, 255, 0.14);
}

.feature-card .glyph {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-bottom: 22px;
  background: radial-gradient(circle at 68% 50%, #eef3fb 0 55%, rgba(30, 46, 90, 0.9) 56%);
  box-shadow: 0 0 18px rgba(169, 195, 255, 0.45);
}

.feature-card:nth-child(2) .glyph {
  background: radial-gradient(circle at 30% 50%, #eef3fb 0 62%, rgba(30, 46, 90, 0.9) 63%);
}

.feature-card:nth-child(3) .glyph {
  background: radial-gradient(circle at 50% 50%, #eef3fb 0 100%, rgba(30, 46, 90, 0.9) 101%);
}

.feature-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--heading);
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta,
.signal-line {
  padding: 4vh 0 12vh;
}

.signal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signal-status {
  margin: 0 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--blue-soft);
}

.signal-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fc0ff;
  box-shadow: 0 0 12px rgba(159, 192, 255, 0.9);
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.signal-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  padding: 22px 52px;
  border-radius: 999px;
  background: linear-gradient(120deg, #a9c3ff 0%, #eef3fb 55%, #c4cfe2 100%);
  box-shadow: 0 10px 40px rgba(126, 166, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.signal-cta:hover {
  color: var(--ink);
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 16px 54px rgba(169, 195, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.signal-cta:active {
  transform: translateY(0);
}

.signal-sub {
  margin: 26px 0 0;
  font-size: 0.85rem;
  color: var(--silver-dim);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
/* Footer markup is injected via SSI and is not edited per-domain - visibility and spacing live here. */
footer {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--silver);
  background: var(--night-0);
  border-top: 1px solid var(--line);
}

footer div {
  margin: 4px 0;
}

footer div:first-child {
  margin-top: 0;
}

footer div:last-of-type {
  margin-bottom: 0;
}

footer a {
  color: var(--blue-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .wrap, .nav-inner { padding: 0 22px; }
  .feature-card { padding: 32px; }
}

@media (max-width: 480px) {
  .site-nav { padding: 16px 0; }
  .nav-inner, .wrap { padding: 0 16px; }
  .logo { font-size: 1.5rem; }
  .logo .tld { display: none; }
  .site-nav .nav-link { padding: 9px 16px; font-size: 0.78rem; }
  .site-nav.nav-scrolled { padding: 8px 0; }
  .site-nav.nav-scrolled .logo { font-size: 1.25rem; }
  .site-nav.nav-scrolled .nav-link { padding: 6px 13px; font-size: 0.72rem; }
  .hero { padding: 11vh 0 6vh; }
  .hero-sub { font-size: 0.85rem; letter-spacing: 0.24em; }
  .feature-card { padding: 28px 24px; }
  .feature-card h3 { font-size: 1.5rem; }
  .signal-status { font-size: 0.75rem; letter-spacing: 0.2em; }
  .signal-cta { font-size: 1rem; padding: 18px 30px; }
}

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