:root {
  --bg: #0f1117;
  --bg2: #161b25;
  --bg3: #1e2535;
  --bg4: #252d40;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #e8eaf0;
  --text2: #8b90a0;
  --text3: #555d70;
  --accent: #4f7ef8;
  --accent2: #3563e0;
  --green: #34c97a;
  --green-bg: rgba(52,201,122,0.1);
  --green-bd: rgba(52,201,122,0.25);
  --red: #f05e5e;
  --amber: #f0a830;
  --amber-bg: rgba(240,168,48,0.1);
  --amber-bd: rgba(240,168,48,0.25);
  --purple: #9b7cf8;
  --purple-bg: rgba(155,124,248,0.1);
  --purple-bd: rgba(155,124,248,0.25);
  --teal: #38c4b8;
  --teal-bg: rgba(56,196,184,0.1);
  --teal-bd: rgba(56,196,184,0.25);
  --radius: 12px;
  --radius-lg: 24px;
}

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

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

h1, h2, h3, .logo {
  font-family: 'Syne', sans-serif;
}

code, .mockup-body {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text2);
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent2);
  box-shadow: 0 4px 15px rgba(79, 126, 248, 0.3);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 126, 248, 0.4);
}

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  background: var(--bg4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(79, 126, 248, 0.1);
}

/* HERO SECTION */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79, 126, 248, 0.15) 0%, rgba(15, 17, 23, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  color: var(--green);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

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

.glass-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  filter: blur(80px);
  opacity: 0.4;
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-mockup-img {
  width: 130%;
  min-width: 900px;
  max-width: 1400px;
  right: 5%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: rotateZ(-4deg) rotateY(8deg);
  transition: transform 0.5s ease;
  z-index: 2;
  position: relative;
}

.hero-mockup-img:hover {
  transform: rotateZ(0deg) rotateY(0deg);
}

/* FEATURES GRID */
.features {
  padding: 100px 5%;
  background: var(--bg2);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text2);
  font-size: 1.1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.bento-card:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: auto;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.bento-icon.teal { background: var(--teal-bg); color: var(--teal); border: 1px solid var(--teal-bd); }
.bento-icon.accent { background: rgba(79, 126, 248, 0.1); color: var(--accent); border: 1px solid rgba(79, 126, 248, 0.3); }
.bento-icon.green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.bento-icon.purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-bd); }
.bento-icon.amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-bd); }

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text2);
  font-size: 0.95rem;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-card.wide {
  grid-column: span 2;
}

/* DEMO EMBED */
.demo {
  padding: 100px 5%;
  position: relative;
}

.demo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse, rgba(155, 124, 248, 0.08) 0%, rgba(15, 17, 23, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.iframe-container {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  background: var(--bg);
  height: 80vh;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 5%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-content p {
  color: var(--text3);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--text2);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }
  .hero-graphic {
    margin-top: 60px;
  }
  .hero-mockup-img {
    width: 100%;
    min-width: 100%;
    right: 0;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-cta {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card.tall {
    grid-row: auto;
  }
  .bento-card.wide {
    grid-column: auto;
  }
  
  .iframe-container {
    height: 60vh;
  }
}

/* UTILS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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