
/* =========================================================
   LEFNOUN WEBSITE
   Main stylesheet
   ========================================================= */

/* ---------- Base ---------- */
/* Add these rules near the end of css/style.css, before media queries if possible */
  
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badges span {
  padding: 8px 12px;
  border: 1px solid rgba(91, 160, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.badges span::before {
  content: "✓";
  margin-right: 7px;
  color: #22d3ee;
  font-weight: 800;
}

.orbit {
  position: relative;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}

.ring-two {
  inset: 16%;
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 18px #22d3ee;
}

.dot-one {
  top: 7%;
  left: 51%;
}

.dot-two {
  right: 8%;
  bottom: 28%;
}

.dot-three {
  left: 18%;
  bottom: 12%;
}

.chip {
  animation: chipFloat 7s ease-in-out infinite;
}

@keyframes chipFloat {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}
.philosophy {
  background: #ffffff;
}

.publication-card {
  padding: 32px;
  border: 1px solid #dbe5f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #2d7ff9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-card h3 {
  margin: 24px 0 10px;
  font-size: 1.55rem;
}

.publication-card p,
.muted {
  color: #64748b;
}

.publication-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.publication-targets span {
  padding: 7px 10px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  padding: 30px;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.project-card > span {
  color: #2d7ff9;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 24px 0 9px;
  font-size: 1.45rem;
}

.project-card p {
  color: #64748b;
}

.project-card a {
  color: #2d7ff9;
  font-weight: 700;
}

.project-card.featured {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0b1728, #123052);
}

.project-card.featured p {
  color: #cbd5e1;
}

.project-card.featured a {
  color: #5ba0ff;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
   .badges {
    justify-content: center;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #07111f;
  line-height: 1.65;
}

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

.container {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

/* ---------- Header and navigation ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: #ffffff;
}

.brand span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: #cbd5e1;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6ad4b, #f4dc8b);
  color: #07111f;
  font-weight: 800;
}

.nav nav {
  display: flex;
  gap: 24px;
  color: #cbd5e1;
}

.nav nav a {
  transition: color 0.2s ease;
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: #ffffff;
}

.menu {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d7ff9, #22d3ee);
  color: #ffffff;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 127, 249, 0.28);
}

.small {
  min-height: 42px;
  padding: 0 18px;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 70px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(45, 127, 249, 0.28),
      transparent 32%
    ),
    linear-gradient(135deg, #07111f, #10243d);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 46px 46px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #5ba0ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
{
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: transparent;
  background: linear-gradient(
    90deg,
    #ffffff,
    #5ba0ff,
    #22d3ee
  );
  background-clip: text;
  -webkit-background-clip: text;
}

.lead {
  max-width: 680px;
  margin: 28px 0 34px;
  color: #cbd5e1;
  font-size: 1.14rem;
}

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

.meta {
  margin-top: 32px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.meta span::before {
  content: "?";
  margin-right: 8px;
  color: #22d3ee;
}

/* ---------- Hero visual ---------- */

.visual {
  display: grid;
  place-items: center;
}

.orbit {
  width: min(430px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 160, 255, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(45, 127, 249, 0.08);
}

.chip {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px solid rgba(91, 160, 255, 0.62);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(16, 36, 61, 0.96),
    rgba(7, 17, 31, 0.98)
  );
  box-shadow: 0 0 80px rgba(45, 127, 249, 0.35);
  transform: rotate(-5deg);
}

.chip small {
  color: #d6ad4b;
  letter-spacing: 0.18em;
}

.chip strong {
  margin: 14px 0;
  font-size: 3.6rem;
  line-height: 1;
}

.chip span {
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- General sections ---------- */

.section {
  padding: 105px 0;
}

.light {
  background: #f8fafc;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.copy p,
.heading p,
.center p,
#contact p {
  color: #64748b;
}

.heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

/* ---------- Research cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.card b {
  color: #2d7ff9;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.card h3 {
  margin: 38px 0 10px;
}

.card p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* ---------- PDIF section ---------- */

.pdif {
  color: #ffffff;
  background: linear-gradient(135deg, #07111f, #10243d);
}

.pdif h2 {
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.95;
}

.pdif h3 {
  color: #5ba0ff;
}

.pdif p {
  color: #cbd5e1;
}

.pdif ul {
  padding: 0;
  list-style: none;
}

.pdif li {
  margin: 10px 0;
}

.pdif li::before {
  content: "?";
  margin-right: 12px;
  color: #22d3ee;
  font-weight: 800;
}

.pdif blockquote {
  margin: 30px 0 0;
  padding: 20px 22px;
  border-left: 3px solid #d6ad4b;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

/* ---------- Architecture card ---------- */

.architecture {
  display: grid;
  gap: 10px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.architecture > div {
  padding: 17px;
  border: 1px solid rgba(91, 160, 255, 0.36);
  border-radius: 14px;
  background: rgba(45, 127, 249, 0.08);
}

.architecture span {
  color: #22d3ee;
  font-weight: 800;
}

.db,
.tools {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.db i,
.tools i {
  padding: 9px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-style: normal;
}

/* ---------- Vision ---------- */

.center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 12px;
  padding: 30px;
  border-radius: 22px;
  background: #0b1728;
  color: #ffffff;
}

.contact span {
  color: #cbd5e1;
}

.contact a {
  color: #5ba0ff;
}

/* ---------- Footer ---------- */

footer {
  padding: 42px 0;
  background: #07111f;
  color: #cbd5e1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer b {
  color: #ffffff;
}

.footer p {
  margin: 5px 0;
  font-size: 0.84rem;
}

/* ---------- Scroll animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */

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

  .menu {
    display: block;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
  }

  .nav nav.open {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: grid;
    padding: 20px;
    border-radius: 14px;
    background: #0b1728;
    box-shadow: 0 18px 40px rgba(7, 17, 31, 0.3);
  }

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

  .hero {
    text-align: center;
  }

  .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .actions,
  .meta {
    justify-content: center;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), 1180px);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

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

  .db,
  .tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    display: grid;
    text-align: center;
  }

  .section {
    padding: 80px 0;
  }

  .chip {
    width: 180px;
  }

  .chip strong {
    font-size: 2.9rem;
  }
}
