/* ============================================================
   MESSIER1 — Design System
   Cosmic-dark, cyan/teal accent, gold highlights
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg:        #060814;
  --bg-soft:   #0b0f22;
  --bg-card:   #0e1430;
  --bg-elev:   #131a3d;

  /* Surfaces & borders */
  --border:        rgba(120, 170, 220, 0.10);
  --border-strong: rgba(120, 200, 230, 0.22);

  /* Text */
  --white:    #f0f4ff;
  --text:     #d6dcef;
  --muted:    #8995b3;
  --dim:      #5b6582;

  /* Brand */
  --cyan:       #3fe3da;            /* primary accent — matches logo teal */
  --cyan-deep:  #1f9fb4;
  --blue:       #5db8ff;            /* secondary brand blue (logo) */
  --gold:       #f5c518;
  --red:        #ff5a6b;
  --green:      #00e87a;

  /* Effects */
  --glow-cyan:  0 0 24px rgba(63, 227, 218, 0.35), 0 0 60px rgba(63, 227, 218, 0.15);
  --glow-blue:  0 0 22px rgba(93, 184, 255, 0.30);

  /* Geometry */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: rgba(63,227,218,0.25); color: var(--white); }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Cosmic backdrop — fixed starfield + subtle vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(63,227,218,0.08), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(93,184,255,0.07), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg) 80%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 68% 14%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 88% 67%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 24% 78%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(2px 2px at 78% 30%, rgba(93,184,255,0.6), transparent 50%),
    radial-gradient(2px 2px at 15% 55%, rgba(63,227,218,0.5), transparent 50%);
  background-size: 100% 100%;
  opacity: .8;
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─────────────────────────  LAYOUT  ───────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ─────────────────────────  NAV  ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 20, 0.72);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  font-size: 1.05rem;
}
.nav-brand img {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 12px rgba(63,227,218,0.35));
}
.nav-brand small {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  font-size: .85rem;
  color: var(--text);
  padding: .55rem .9rem;
  border-radius: 100px;
  transition: all .2s ease;
  font-weight: 500;
}
.nav-link:hover { color: var(--white); background: rgba(63,227,218,0.06); }
.nav-link.active { color: var(--cyan); background: rgba(63,227,218,0.08); }
.nav-cta {
  margin-left: .5rem;
  padding: .55rem 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001220;
  font-weight: 700;
  border-radius: 100px;
  font-size: .82rem;
  letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--glow-cyan); }

.nav-burger { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; right: 1rem; left: 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .75rem; gap: 4px;
  }
  .nav-link { padding: .75rem 1rem; }
  .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ─────────────────────────  TYPE & ELEMENTS  ───────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.15rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
.section-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  background: rgba(63,227,218,0.05);
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.section-desc {
  color: var(--muted); font-size: 1.02rem; line-height: 1.7;
  max-width: 640px; margin-top: 1rem;
}
.accent      { color: var(--cyan);  text-shadow: 0 0 28px rgba(63,227,218,0.4); }
.accent-blue { color: var(--blue);  text-shadow: 0 0 28px rgba(93,184,255,0.4); }
.accent-gold { color: var(--gold);  text-shadow: 0 0 28px rgba(245,197,24,0.4); }

/* ─────────────────────────  BUTTONS  ───────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001220;
  box-shadow: 0 8px 24px -8px rgba(63,227,218,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(63,227,218,0.05); border-color: var(--cyan); color: var(--cyan); }

/* ─────────────────────────  SECTIONS  ───────────────────────── */
section { padding: 6rem 0; position: relative; z-index: 1; }
@media (max-width: 720px) { section { padding: 4rem 0; } }

/* ─────────────────────────  CARDS  ───────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -20px rgba(63,227,218,0.25);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.card-title { margin-bottom: .6rem; color: var(--white); }
.card-desc  { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.card-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(63,227,218,0.10), rgba(93,184,255,0.04));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--cyan);
}

/* feature list inside cards */
.feature-list {
  margin-top: 1rem;
  list-style: none;
  display: flex; flex-direction: column; gap: .5rem;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem;
  color: var(--text);
  padding: .35rem 0;
  border-bottom: 1px dashed var(--border);
}
.feature-list li::before {
  content: "▸";
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-top: 1px;
}

/* ─────────────────────────  REVEAL ON SCROLL  ───────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }
.reveal-delay-6 { transition-delay: .48s; }

/* ─────────────────────────  FORM  ───────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.form-control {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .92rem;
  transition: border-color .2s, background .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(63,227,218,0.04);
}
textarea.form-control { min-height: 130px; resize: vertical; }

/* ─────────────────────────  FOOTER  ───────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 20, 0.6);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-brand-name small { display: block; font-family: var(--font-mono); font-size: .58rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
.footer-desc { color: var(--muted); font-size: .88rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col li a {
  font-size: .88rem; color: var(--muted);
  transition: color .2s;
}
.footer-col li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .68rem; color: var(--dim);
  letter-spacing: .04em;
}

/* ─────────────────────────  UTILITIES  ───────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.glow-orb.cyan { background: var(--cyan); }
.glow-orb.blue { background: var(--blue); }
.glow-orb.gold { background: var(--gold); opacity: .15; }

.mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* dashed divider */
.divider-cosmic {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  margin: 4rem auto;
  max-width: 800px;
  position: relative;
}
.divider-cosmic::after {
  content: "✦";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 1rem;
  color: var(--cyan);
  font-size: 1rem;
}
