:root {
  --bg: #0b1020;
  --bg-2: #0e1530;
  --text: #e6f0ff;
  --muted: #9fb3d9;
  --primary: #6ad0ff;
  --primary-2: #8a7cff;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #0a0e21;
  background-attachment: fixed;
  line-height: 1.5;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10, 14, 33, 0.7), rgba(10, 14, 33, 0.4));
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo img {
  width: 40px;
}

.logo.small {
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  color: #0b1020;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(138, 124, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(138, 124, 255, 0.45);
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: rgba(138, 124, 255, 0.4);
}

.btn-outline:hover {
  border-color: rgba(138, 124, 255, 0.8);
  background: rgba(138, 124, 255, 0.08);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 100px;
  text-align: center;
  min-height: 80vh;
  overflow: hidden;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.info-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 16px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text);
  backdrop-filter: blur(10px);
}

.info-banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(106, 208, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.headline {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: clamp(42px, 7vw, 72px);
  margin: 0 0 16px;
  text-shadow: 0 2px 30px rgba(106, 208, 255, 0.15);
}

.subhead {
  color: var(--muted);
  font-size: clamp(18px, 2.8vw, 24px);
  margin: 0 0 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Background Yearn Icons */
.hero-bg-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.yearn-icon-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  filter: blur(25px);
  background: radial-gradient(ellipse at center, rgba(106, 208, 255, 0.25), transparent 70%);
  border-radius: 50%;
}

.yearn-icon-bg::before {
  content: "";
  position: absolute;
  inset: 20%;
  border: 2px solid rgba(106, 208, 255, 0.3);
  border-radius: 50%;
  transform: scaleX(1.4) scaleY(1);
}

.yearn-icon-bg::after {
  content: "Y";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  color: rgba(106, 208, 255, 0.25);
  font-family: Poppins, sans-serif;
  transform: scaleX(1.1);
}

.icon-1 {
  top: 15%;
  left: 10%;
  width: 140px;
  height: 140px;
  animation: float 8s ease-in-out infinite;
}

.icon-2 {
  top: 25%;
  right: 15%;
  width: 100px;
  height: 100px;
  animation: float 10s ease-in-out infinite reverse;
}

.icon-3 {
  bottom: 20%;
  left: 20%;
  width: 110px;
  height: 110px;
  animation: float 12s ease-in-out infinite;
}

.icon-4 {
  top: 50%;
  right: 25%;
  width: 90px;
  height: 90px;
  animation: float 9s ease-in-out infinite reverse;
}

.icon-5 {
  bottom: 35%;
  right: 10%;
  width: 130px;
  height: 130px;
  animation: float 11s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }

  33% {
    transform: translateY(-20px) translateX(10px) scale(1.05);
  }

  66% {
    transform: translateY(10px) translateX(-15px) scale(0.95);
  }
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -120px;
  right: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(106, 208, 255, 0.5), transparent 60%);
}

.orb-2 {
  bottom: -140px;
  left: 10%;
  background: radial-gradient(circle at 70% 70%, rgba(138, 124, 255, 0.45), transparent 60%);
}

/* Sections */
.section-head {
  text-align: center;
  margin: 60px 0 26px;
}

.section-head h2 {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  margin: 0 0 8px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Ecosystem */
.ecosystem {
  padding: 40px 0 10px;
}

.eco-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.eco-art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(35, 70, 255, 0.25), rgba(10, 14, 33, 0.4));
  height: clamp(220px, 30vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-blob {
  width: 80%;
  height: 70%;
  border-radius: 20px;
  background: radial-gradient(circle at 40% 40%, rgba(32, 87, 255, 0.9), rgba(30, 40, 120, 0.9) 60%);
  background-image: url("https://yearn.fi/landing/apps.png");
  background-size: cover;
}

.eco-content {
  padding: 6px 6px 6px 6px;
}

.eyebrow {
  color: #7ab9ff;
  font-size: 14px;
  margin: 0 0 8px;
}

.eco-title {
  font-family: Poppins, Inter, sans-serif;
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 40px);
}

.eco-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.eco-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.eco-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.eco-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 124, 255, 0.35);
  transform: translateY(-2px);
}

.eco-token {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1020;
  font-weight: 800;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.eco-token img {
  width: 28px;
  height: 28px;
}

.token-yfi {
  background: linear-gradient(135deg, #7a5cff, #b48cff);
}

.token-ycrv {
  background: linear-gradient(135deg, #ff7a5c, #ffc48c);
}

.token-yeth {
  background: linear-gradient(135deg, #5cc6ff, #6f7dff);
}

.token-bearn {
  background: linear-gradient(135deg, #58e1b5, #2ab58e);
}

.eco-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eco-main strong {
  font-weight: 700;
}

.eco-main span {
  color: var(--muted);
  font-size: 13px;
}

.eco-arrow {
  color: var(--muted);
  font-size: 18px;
}

.eco-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.eco-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.eco-dots .dot.active {
  background: #6ad0ff;
  box-shadow: 0 0 10px rgba(106, 208, 255, 0.7);
}

/* Security */
.security {
  padding: 40px 0 20px;
}

.eyebrow.center {
  text-align: center;
}

.security-title {
  text-align: center;
  font-family: Poppins, Inter, sans-serif;
  margin: 8px 0 6px;
  font-size: clamp(24px, 4.5vw, 44px);
}

.security-desc {
  text-align: center;
  color: var(--muted);
  margin: 0 0 20px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.security-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.security-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.security-card p {
  margin: 0 0 12px;
  color: rgba(235, 245, 255, 0.9);
}

.security-card .learn {
  color: #e6f0ff;
  opacity: 0.8;
}

.security-card.audits {
  background: linear-gradient(135deg, rgba(137, 78, 255, 0.9), rgba(116, 88, 255, 0.8));
}

.security-card.bounties {
  background: linear-gradient(135deg, rgba(26, 120, 255, 0.9), rgba(18, 98, 235, 0.9));
}

/* Yearn X */
.yearnx {
  padding: 30px 0 10px;
}

.yearnx-title {
  font-family: Poppins, Inter, sans-serif;
  margin: 6px 0 6px;
  font-size: clamp(24px, 4.2vw, 40px);
}

.yearnx-desc {
  color: var(--muted);
  margin: 0 0 18px;
}

.yearnx-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.partner-card img {
  width: 50px;
}

.partner-card:hover {
  transform: translateY(-3px);
  background: rgb(0, 38, 255);
  border-color: rgba(138, 124, 255, 0.35);
}


/* Integrations */
.integrations {
  padding: 30px 0 20px;
}

.integrations-title {
  font-family: Poppins, Inter, sans-serif;
  margin: 6px 0 6px;
  font-size: clamp(24px, 4.2vw, 40px);
}

.integrations-desc {
  color: var(--muted);
  margin: 0 0 20px;
}

.integrations-list {
  display: grid;
  gap: 12px;
}

.integration-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.integration-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(138, 124, 255, 0.35);
  transform: translateX(4px);
}

.integration-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.integration-logo img {
  width: 50px;
  height: 50px;
}

.logo-1up {
  background: linear-gradient(135deg, #2a1a50, #1a0f30);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.logo-stakedao {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
  color: #fff;
  font-size: 24px;
}

.logo-sturdy {
  background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 800;
}

.logo-pwn {
  background: linear-gradient(135deg, #1a3a2a, #0f251a);
  color: #4ade80;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
}

.logo-superform {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.integration-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.integration-name {
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-name .arrow {
  color: var(--muted);
  font-size: 14px;
  opacity: 0.6;
  transition: opacity .2s ease, transform .2s ease;
}

.integration-item:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

.integration-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* FAQs */
.faqs {
  padding: 34px 0;
}

.faqs-title {
  font-family: Poppins, Inter, sans-serif;
  margin: 6px 0 6px;
  font-size: clamp(24px, 4.5vw, 44px);
}

.faqs-desc {
  color: var(--muted);
  margin: 0 0 18px;
}

.faqs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 22px;
}

.faqs-art {
  border-radius: 16px;
  background: radial-gradient(ellipse at 40% 30%, rgba(35, 70, 255, 0.25), rgba(10, 14, 33, 0.5));
  height: clamp(240px, 34vw, 420px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faqs-blob img{
  width: 100%;
  height: 270px;
}

.faqs-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 124, 255, 0.35);
}

.faq-item .q {
  font-weight: 600;
}

.faq-item .plus {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.faq-item .a {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: var(--muted);
  display: none;
}

.faqs-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.links-col {
  display: grid;
  gap: 10px;
}

.link-row {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  width: max-content;
}

.link-row:hover {
  color: #a7c8ff;
}

.social-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.social:hover {
  background: rgba(255, 255, 255, 0.07);
}


/* Responsive */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 4%;
    background: rgba(10, 14, 33, 0.92);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 14px;
  }

  .yearn-icon-prominent {
    right: 2%;
    top: 10%;
    width: 120px;
    height: 120px;
  }

  .yearn-icon-prominent svg {
    width: 120px;
    height: 120px;
  }

  .eco-inner {
    grid-template-columns: 1fr;
  }

  .eco-art {
    order: -1;
    height: 220px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .yearnx-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faqs-grid {
    grid-template-columns: 1fr;
  }

  .faqs-links {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 120px;
    min-height: 70vh;
  }

  .hero-actions {
    gap: 10px;
  }

  .yearn-icon-prominent {
    display: none;
  }

  .yearn-icon-bg {
    opacity: 0.08;
  }

  .info-banner {
    font-size: 12px;
    padding: 6px 12px;
  }

  .yearnx-grid {
    grid-template-columns: 1fr;
  }
}