:root {
  --bg: #0a121d;
  --bg-soft: #111e2e;
  --card: rgba(13, 27, 42, 0.75);
  --line: rgba(145, 182, 226, 0.28);
  --text: #e9f1ff;
  --muted: #a7b8d3;
  --primary: #7ed0ff;
  --primary-strong: #4fb6ff;
  --accent: #ffd46b;
  --ok: #68e5a6;
  --bad: #ff8a8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(126, 208, 255, 0.14), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 212, 107, 0.12), transparent 38%),
    linear-gradient(160deg, #060b13, #0a121d 40%, #111e2e);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.grid-noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(173, 209, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(173, 209, 248, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 75%);
  z-index: -3;
}

.bg-orb {
  position: fixed;
  width: 42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}

.orb-a {
  background: rgba(126, 208, 255, 0.28);
  top: -10rem;
  left: -8rem;
}

.orb-b {
  background: rgba(255, 212, 107, 0.2);
  right: -8rem;
  bottom: -12rem;
  animation-delay: -8s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(6, 12, 22, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(145, 182, 226, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.1rem;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(145, 182, 226, 0.45);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  background: rgba(13, 27, 42, 0.55);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 220ms ease;
}

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

.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(126, 208, 255, 0.45);
  border-radius: 999px;
  color: #bee6ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  font-family: Sora, sans-serif;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: none;
  border-radius: 0.85rem;
  padding: 0.78rem 1.2rem;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease, background-color 200ms ease;
}

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

.btn-primary {
  color: #061320;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(126, 208, 255, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(126, 208, 255, 0.44);
  background: rgba(13, 27, 42, 0.42);
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(160deg, rgba(13, 27, 42, 0.9), rgba(17, 30, 46, 0.68));
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.card-label {
  margin: 0;
  color: #bee6ff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-top: 0.6rem;
}

.hero-card p {
  color: var(--muted);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.hero-card li::before {
  content: "\25C6";
  color: var(--accent);
  margin-right: 0.6rem;
}

.feature-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-tile {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 240ms ease, border-color 240ms ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 208, 255, 0.6);
}

.feature-tile h3 {
  font-size: 1.1rem;
}

.feature-tile p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.screen-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.screen-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(7, 15, 26, 0.92);
  box-shadow: var(--shadow);
}

.screen-card img {
  aspect-ratio: 10 / 16;
  object-fit: cover;
}

.screen-card figcaption {
  padding: 0.75rem;
  color: #bed8f6;
  font-size: 0.86rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(17, 30, 46, 0.9), rgba(11, 24, 37, 0.9)),
    radial-gradient(circle at 90% -10%, rgba(126, 208, 255, 0.26), transparent 45%);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.news-tag {
  background: rgba(255, 212, 107, 0.2);
  border: 1px solid rgba(255, 212, 107, 0.35);
  color: #ffdf92;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.08rem;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-link {
  color: #c8ecff;
  font-weight: 700;
  font-size: 0.9rem;
}

.news-empty {
  border: 1px dashed rgba(145, 182, 226, 0.45);
  border-radius: 0.9rem;
  color: var(--muted);
  padding: 1rem;
}

.signup-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.signup-copy p {
  color: var(--muted);
  max-width: 50ch;
}

.form-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 30, 46, 0.82), rgba(13, 27, 42, 0.82));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.form-message {
  display: none;
  margin-bottom: 0.75rem;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
}

.form-message.success,
.form-message.error {
  display: none;
}

.form-message.success:not(:empty) {
  display: block;
  color: #0f2f20;
  background: rgba(104, 229, 166, 0.92);
}

.form-message.error:not(:empty) {
  display: block;
  color: #3b0d0d;
  background: rgba(255, 138, 138, 0.92);
}

.signup-form {
  display: grid;
  gap: 0.5rem;
}

.signup-form label {
  font-size: 0.88rem;
  color: #c8dbf3;
  margin-top: 0.4rem;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  border: 1px solid rgba(145, 182, 226, 0.4);
  border-radius: 0.75rem;
  background: rgba(8, 18, 29, 0.7);
  color: var(--text);
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: 2px solid rgba(126, 208, 255, 0.65);
  outline-offset: 1px;
}

.field-error {
  min-height: 1.1rem;
  color: var(--bad);
  font-size: 0.8rem;
}

.full {
  width: 100%;
  margin-top: 0.35rem;
}

.fineprint {
  margin: 0.68rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.join-note {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(126, 208, 255, 0.42);
  background: rgba(126, 208, 255, 0.14);
  color: #d7f2ff;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.join-note.show {
  opacity: 1;
  transform: translateY(0);
}

.hp {
  position: absolute;
  left: -9999px;
}

.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(145, 182, 226, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

@media (max-width: 1000px) {
  .feature-grid,
  .screen-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .signup-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .feature-grid,
  .screen-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}
