@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #060913;
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3D Perspective Grid Background */
.perspective-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  perspective: 1000px;
  overflow: hidden;
  z-index: -1;
  background: var(--bg);
}

.perspective-grid::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.15) 1px, transparent 1px),
    linear-gradient(to top, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(75deg);
  transform-origin: center center;
  animation: gridMove 4s linear infinite;
}

.perspective-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 10%, transparent 60%, var(--bg) 100%);
}

@keyframes gridMove {
  0% { transform: rotateX(75deg) translateY(0); }
  100% { transform: rotateX(75deg) translateY(60px); }
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section Split Layout */
.hero {
  padding: 8rem 0 6rem;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  text-align: left;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content .hero-lead {
  margin: 0 0 3rem 0;
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 500px;
}

.hero-content .hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.hero-graphic {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-orb {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  filter: blur(40px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.glass-pane {
  position: absolute;
  width: 300px;
  height: 350px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transform: rotate(10deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: float-delayed 8s ease-in-out infinite;
}

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

@keyframes float-delayed {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-20px); }
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  .hero-content .hero-actions {
    justify-content: center;
  }
  .hero-content .hero-lead {
    margin: 0 auto 3rem;
  }
  .hero-graphic {
    display: none;
  }
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Glass Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.glass-card p {
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* Bento Grid */
.bento-section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-main {
  grid-column: span 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 4rem;
}

.bento-main .bento-content {
  flex: 1;
}

.bento-main .bento-content h3 {
  font-size: 2rem;
}

.bento-main .bento-visual {
  flex: 1;
  height: 200px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
}

.bento-side {
  grid-column: span 1;
}

.bento-side:nth-child(2) {
  grid-column: span 1;
}
.bento-side:nth-child(3) {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-main {
    grid-column: span 1;
    flex-direction: column;
    padding: 2.5rem;
  }
  .bento-main .bento-visual {
    width: 100%;
  }
  .bento-side:nth-child(2), .bento-side:nth-child(3) {
    grid-column: span 1;
  }
}

/* Manifesto Section */
.manifesto {
  padding: 4rem 0 8rem;
}

.manifesto-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.manifesto-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-card p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-dim);
}
