:root {
  --bg: #030510;
  --card: #0b0f1d;
  --glass: rgba(255, 255, 255, 0.04);
  --grid-line: rgba(255, 255, 255, 0.06);
  --muted: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
  --text: #e8edf7;
  --subtext: #b6c1d8;
  --accent: #b6f5ff;
  --accent-2: #d8ffe0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 20%, rgba(182, 245, 255, 0.12), transparent 28%),
    radial-gradient(circle at 70% 10%, rgba(216, 255, 224, 0.12), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(102, 142, 255, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 30%, rgba(182, 245, 255, 0.03)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 16px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 16px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

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

.page-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(3, 5, 16, 0.95), rgba(3, 5, 16, 0.82));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 5%;
  gap: 20px;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--subtext);
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(182, 245, 255, 0.15);
}

.cta:hover {
  background: rgba(90, 208, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(182, 245, 255, 0.25);
}

.scribble {
  position: relative;
  font-family: "Caveat", cursive;
  color: var(--accent);
  display: inline-block;
}

.scribble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: radial-gradient(ellipse at center, rgba(182, 245, 255, 0.45), rgba(216, 255, 224, 0.55) 55%, transparent 75%);
  border-radius: 999px;
  transform: translateY(5px) rotate(-3deg);
  z-index: -1;
}

.nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 5% 18px;
  background: rgba(3, 5, 16, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-drawer a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-weight: 600;
}

.nav-drawer .button {
  width: fit-content;
  margin-top: 4px;
}

.nav-open {
  overflow: hidden;
}

.nav-open .nav-drawer {
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .nav-links,
  .cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

.hero {
  padding: 42px 5% 120px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 18% 10%, rgba(182, 245, 255, 0.08), transparent 30%), radial-gradient(circle at 80% 20%, rgba(140, 247, 154, 0.06), transparent 28%), linear-gradient(180deg, rgba(5, 8, 18, 0.85), rgba(3, 5, 16, 0.95));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 20%, rgba(182, 245, 255, 0.05), transparent 32%), radial-gradient(circle at 70% 70%, rgba(140, 247, 154, 0.05), transparent 26%), linear-gradient(135deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 18px;
  background: rgba(4, 8, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 22px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(90, 208, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-family: "DM Serif Display", "Work Sans", "Poppins", serif;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  font-family: "DM Serif Display", "Work Sans", "Poppins", serif;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.lead {
  max-width: 720px;
  color: var(--subtext);
  font-size: 18px;
  margin-bottom: 26px;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

@media (min-width: 960px) {
  .hero-glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.glance-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}
.panel-heading {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--subtext);
}

.hero-panel h3 {
  margin: 0;
  font-size: 22px;
  font-family: "DM Serif Display", "Work Sans", "Poppins", serif;
}

.hero-panel p {
  margin: 0;
  color: var(--subtext);
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.hero-panel ul {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--subtext);
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: var(--text);
}

.pill.ghost {
  background: transparent;
  color: var(--subtext);
}

.glance-label {
  display: block;
  color: var(--subtext);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111f;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(90, 208, 255, 0.35);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-120%);
  transition: transform 0.4s ease;
}

.button.primary:hover::after {
  transform: translateX(120%);
}

.hero-visual {
  position: absolute;
  right: 6%;
  top: 80px;
  width: 320px;
  aspect-ratio: 3 / 4;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
  opacity: 0.85;
}

.hero-visual .visual-card {
  position: absolute;
  inset: 16% 8% 12%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 18px;
  display: grid;
  gap: 10px;
  animation: float 14s ease-in-out infinite alternate;
}

.visual-card .chip {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(182, 245, 255, 0.35);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(182, 245, 255, 0.08);
}

.visual-bars {
  display: grid;
  gap: 8px;
}

.visual-bars span {
  display: block;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.8;
  animation: pulse-bar 3.2s ease-in-out infinite;
}

.visual-bars span:nth-child(2) {
  width: 68%;
  animation-delay: 0.2s;
}

.visual-bars span:nth-child(3) {
  width: 82%;
  animation-delay: 0.5s;
}

.visual-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--subtext);
  font-size: 13px;
}

.visual-node {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 245, 255, 0.15), transparent 60%);
  border: 1px solid rgba(182, 245, 255, 0.3);
  animation: pulse 6s ease-in-out infinite;
}

.visual-node.one {
  top: 6%;
  right: 18%;
}

.visual-node.two {
  bottom: 6%;
  left: 16%;
  animation-delay: 1.4s;
}

.visual-connector {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 245, 255, 0.5), transparent);
  animation: dash 8s linear infinite;
}

.scroll-indicator {
  position: absolute;
  left: 5%;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtext);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}

.scroll-indicator .dot {
  width: 8px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator .dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
  animation: drop 1.2s ease-in-out infinite;
}

.experiments-grid .pill {
  width: fit-content;
}

.glance-card,
.card,
.list-item,
.highlight,
.contact-item {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glance-card:hover,
.card:hover,
.list-item:hover,
.highlight:hover,
.contact-item:hover {
  transform: translateY(-6px);
  border-color: rgba(182, 245, 255, 0.25);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.section {
  padding: 80px 5%;
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 120px;
}

.section.muted {
  background: var(--muted);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.description {
  color: var(--subtext);
  margin: 0;
  max-width: 760px;
}

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

.card, .highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

.card p, .highlight p {
  color: var(--subtext);
  margin: 0;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.list-title {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.highlight ul {
  padding-left: 18px;
  color: var(--subtext);
  margin: 12px 0 0;
}

.manifesto-grid .card {
  background: rgba(255, 255, 255, 0.02);
}

.experiments-grid .card {
  display: grid;
  gap: 10px;
}

.experiments-wrap {
  position: relative;
}

.experiments-grid {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.experiments-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.overlay-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(3, 5, 16, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

.overlay-chip svg {
  width: 24px;
  height: 24px;
}

.overlay-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.overlay-sub {
  color: var(--subtext);
  font-size: 14px;
}

.approach-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact {
  padding-bottom: 120px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(90, 208, 255, 0.15), rgba(140, 247, 154, 0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.contact-label {
  display: block;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 6px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(90, 208, 255, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item p,
.contact-item a {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
  font-size: 14px;
  color: var(--subtext);
}

.footer {
  text-align: center;
  padding: 30px 5% 50px;
  color: var(--subtext);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  font-family: "Work Sans", "Poppins", "Inter", sans-serif;
}

@keyframes aurora {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 120% 0, -60% 40%, 80% 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(4px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 245, 255, 0.3);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(182, 245, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(182, 245, 255, 0);
  }
}

@keyframes dash {
  0% {
    opacity: 0.1;
    transform: translateX(-40%);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.1;
    transform: translateX(40%);
  }
}

@keyframes pulse-bar {
  0% {
    opacity: 0.5;
    transform: scaleX(0.9);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.05);
  }
  100% {
    opacity: 0.7;
    transform: scaleX(0.95);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes drop {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 80px;
  }

  .hero::after {
    inset: 20px;
  }

  .section {
    padding: 64px 5%;
  }

  .nav-bar {
    padding: 14px 5%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

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

  .contact-card {
    padding: 24px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-item {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-visual {
    opacity: 0.4;
    right: 2%;
  }
}
