/* =========================================================
   AEVON SMP — Design tokens
   ========================================================= */
:root {
  --sky-1: #eaf7ff;
  --sky-2: #cfeaff;
  --sky-3: #a9d9f5;
  --sky-deep: #4f9fd6;

  --ink: #123249;
  --ink-soft: #3c6580;
  --ink-faint: #6c8ea3;

  --white: #ffffff;
  --mint: #3fbe8d;
  --mint-light: #b6f2d8;
  --sun: #ffb86b;
  --sun-deep: #ef9a4a;

  --shadow-soft: 0 12px 30px rgba(18, 50, 73, 0.12);
  --shadow-card: 0 8px 24px rgba(18, 50, 73, 0.08);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --font-display: "Silkscreen", "Courier New", monospace;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --max-width: 1180px;
}

/* =========================================================
   Reset & base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { margin: 0; }

p { margin: 0; line-height: 1.6; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin: 0 0 10px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.section-title.center { text-align: center; }

.section-lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 247, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 50, 73, 0.08);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--mint); border-color: var(--mint); }

.ip-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--sky-3);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.15s;
}
.ip-pill:hover { border-color: var(--mint); transform: translateY(-1px); }
.ip-pill-icon { color: var(--mint); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Hero + shared sky background layer
   ========================================================= */
.hero, .cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
}

.sky-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cloud-blob {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.75;
  filter: blur(1px);
  animation: drift 34s ease-in-out infinite;
}
.cloud-blob::before,
.cloud-blob::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 50%;
}
.c1 { width: 160px; height: 60px; top: 12%; left: 8%; animation-duration: 38s; }
.c1::before { width: 90px; height: 90px; top: -40px; left: 15px; }
.c1::after { width: 70px; height: 70px; top: -25px; left: 80px; }

.c2 { width: 120px; height: 46px; top: 22%; right: 12%; animation-duration: 30s; animation-delay: -6s; }
.c2::before { width: 70px; height: 70px; top: -32px; left: 10px; }
.c2::after { width: 55px; height: 55px; top: -20px; left: 60px; }

.c3 { width: 200px; height: 70px; bottom: 18%; left: 4%; animation-duration: 44s; animation-delay: -12s; opacity: 0.6; }
.c3::before { width: 110px; height: 110px; top: -50px; left: 20px; }
.c3::after { width: 85px; height: 85px; top: -30px; left: 110px; }

.c4 { width: 100px; height: 40px; top: 65%; right: 8%; animation-duration: 26s; animation-delay: -3s; opacity: 0.55; }
.c4::before { width: 60px; height: 60px; top: -28px; left: 8px; }
.c4::after { width: 45px; height: 45px; top: -16px; left: 50px; }

.c5 { width: 140px; height: 50px; top: 8%; left: 42%; animation-duration: 40s; animation-delay: -18s; opacity: 0.5; }
.c5::before { width: 80px; height: 80px; top: -36px; left: 12px; }
.c5::after { width: 60px; height: 60px; top: -22px; left: 70px; }

@keyframes drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(28px); }
  100% { transform: translateX(0); }
}

/* Bird — simple wings, flapping + gliding across the sky */
.bird {
  position: absolute;
  width: 46px;
  height: auto;
  top: 20%;
  left: -10%;
  animation: fly 22s linear infinite;
}
.bird-b {
  top: 46%;
  width: 30px;
  animation-duration: 30s;
  animation-delay: -9s;
  opacity: 0.75;
}
.wing { fill: var(--ink); opacity: 0.55; transform-origin: 30px 12px; }
.wing-left { animation: flap 0.5s ease-in-out infinite alternate; }
.wing-right { animation: flap 0.5s ease-in-out infinite alternate; }

@keyframes flap {
  from { transform: scaleY(1) translateY(0); }
  to   { transform: scaleY(0.4) translateY(3px); }
}
@keyframes fly {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(60vw, -40px); }
  55%  { transform: translate(70vw, -40px) scaleX(-1); }
  100% { transform: translate(-10vw, 0) scaleX(-1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.hero-logo {
  width: min(560px, 84vw);
  margin: 6px 0 18px;
  filter: drop-shadow(0 18px 30px rgba(18, 50, 73, 0.18));
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border-radius: var(--radius-md);
  padding: 14px 26px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); background: #0d283c; }
.btn-ip-label { font-family: var(--font-mono); font-size: 1.02rem; }
.btn-ip-sub { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }

.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 12px 24px;
  justify-content: center;
  align-self: center;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 2px solid var(--ink-faint);
  border-radius: 12px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--ink-faint);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* =========================================================
   Intro ribbon — the animated GIF, shown ONCE at full width
   (not tiled — the source animation isn't a repeating texture,
   it's a single reveal, so we stretch it once instead of
   repeating it, which avoided showing fragmented/duplicated
   copies of the animation side by side)
   ========================================================= */
.intro-ribbon {
  width: 100%;
  height: 52px;
  overflow: hidden;
  line-height: 0;
}
.intro-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   Cloud divider — clean CSS scalloped cloud-bump pattern
   ========================================================= */
.cloud-divider {
  height: 40px;
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 20px 40px, var(--sky-2) 18px, transparent 19px),
    radial-gradient(circle at 60px 40px, var(--sky-2) 18px, transparent 19px);
  background-repeat: repeat-x;
  background-size: 80px 40px;
}
.cloud-divider.flip { transform: scaleY(-1); }

/* =========================================================
   Features
   ========================================================= */
.feature-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 50, 73, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* =========================================================
   Join / server info
   ========================================================= */
.join-section { background: var(--white); }

.join-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.join-copy p { color: var(--ink-soft); margin-top: 14px; }

.join-steps {
  margin-top: 22px;
  padding-left: 20px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join-steps strong { color: var(--ink); }

.server-card {
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2));
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--sky-3);
  box-shadow: var(--shadow-soft);
}

.server-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  margin-top: 18px;
}
.server-card-label:first-child { margin-top: 0; }

.server-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid rgba(18, 50, 73, 0.08);
}

.server-card-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.copy-btn {
  color: var(--mint);
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--mint-light); }

.server-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--mint-light);
  color: #1c7a56;
  padding: 6px 12px;
  border-radius: 999px;
}

.server-card-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* =========================================================
   Updates
   ========================================================= */
.updates-list {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.update-card {
  background: var(--white);
  border: 1px solid rgba(18, 50, 73, 0.08);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}

.update-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.06em;
}

.update-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 8px 0 8px;
  color: var(--ink);
}

.update-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   Staff
   ========================================================= */
.staff-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.staff-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 50, 73, 0.06);
}

.staff-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--sky-2), var(--sky-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}

.staff-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.staff-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mint);
  font-weight: 700;
}

/* ---- Staff org chart (two branches, tiered) ---- */
.staff-org {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.staff-branch {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 50, 73, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 22px 34px;
}

.branch-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(18, 50, 73, 0.15);
}

.branch-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
}

.branch-tier:first-of-type { padding-top: 0; }

/* connecting line between tiers */
.branch-tier:not(:first-of-type)::before {
  content: "";
  width: 2px;
  height: 26px;
  background: var(--sky-3);
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.tier-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.tier-members .staff-card {
  flex: 0 1 160px;
  padding: 20px 14px;
}

.tier-members .staff-avatar {
  width: 54px;
  height: 54px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.tier-members .staff-card h3 { font-size: 0.9rem; }

.staff-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  padding: 100px 24px;
  text-align: center;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}
.cta-content p {
  margin: 16px 0 34px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--sky-1);
  padding: 50px 24px 30px;
  text-align: center;
}
.footer-logo {
  width: 160px;
  margin: 0 auto 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-links a {
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--mint-light); }
.footer-copy {
  font-size: 0.78rem;
  opacity: 0.55;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-org { grid-template-columns: 1fr; gap: 32px; }
  .join-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sky-1);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(18,50,73,0.08);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 20px; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; align-items: center; text-align: center; }
}
