:root {
  --bg-color: #030712;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --bg-surface-solid: #111827;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;

  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(56, 189, 248, 0.12) 0%,
      transparent 45%
    );
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

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

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    #818cf8 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite alternate;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  margin: 1rem auto;
  max-width: 1200px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 1rem;
  z-index: 1000;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.navbar:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px -10px rgba(56, 189, 248, 0.1);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1.5px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-cyan);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

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

.hero {
  text-align: center;
  padding: 8rem 2rem 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #030712;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.features-section {
  padding: 6rem 0;
  margin: 2rem auto;
  border-radius: 24px;
  max-width: 1200px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.bento-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-item.highlight {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    800px circle at var(--x, 0) var(--y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.bento-item.highlight:hover {
  box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.15);
}

.item-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.demo-section {
  padding: 4rem 0;
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.code-editor {
  background-color: #05070f;
  padding: 2rem;
  position: relative;
}

.code-textarea {
  background: transparent !important;
  border: none !important;
  color: #e2e8f0;
  outline: none !important;
  resize: none;
  line-height: 1.7 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em;
  scrollbar-width: thin;
}

.live-preview {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: radial-gradient(circle at center, #111827 0%, #090d16 100%);
  border-left: 1px solid var(--border-color);
  position: relative;
}

.live-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

.interactive-btn {
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 80%;
  text-align: center;
}

.interactive-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.interactive-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  filter: blur(120px);
  top: -10%;
  right: -10%;
  opacity: 0.15;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.modern-footer {
  border-top: 1px solid var(--border-color);
  background-color: #05070f;
  padding: 5rem 0 2.5rem 0;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 4rem;
}

.footer-brand .brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .brand-desc {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer-links .link-group {
  display: flex;
  flex-direction: column;
}

.footer-links .group-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding: 2rem 2rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  color: #4b5563;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item.highlight {
    grid-column: span 1;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .live-preview {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .navbar {
    border-radius: 0;
    margin: 0;
    width: 100%;
    top: 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


