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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d14;
  --bg-card: #11111a;
  --border-card: #1e293b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-violet: #8b5cf6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,15,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s, backdrop-filter .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid rgba(30,41,59,.3);
}
.navbar.scrolled {
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-card);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--text-primary);
}
.navbar-logo:hover { color: var(--text-primary); }
.logo-img { height: 36px; width: 36px; border-radius: 8px; }
.navbar-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-secondary); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,.05); }
.badge-soon {
  font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--text-muted); color: var(--text-muted);
  margin-left: 6px; vertical-align: middle;
}
.nav-actions { display: flex; gap: 10px; margin-left: 16px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: .875rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .25s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  color: #fff; box-shadow: 0 0 20px rgba(59,130,246,.25);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(59,130,246,.4); transform: translateY(-1px); color: #fff;
}
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-outline:hover {
  border-color: var(--accent); background: rgba(59,130,246,.08); color: var(--text-primary);
}
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text-primary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,.08) 0%, transparent 70%);
}
.gradient-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px; top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(139,92,246,.18) 0%, transparent 70%);
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px; bottom: -5%; left: 30%;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(.95); }
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px; font-size: .8rem; font-weight: 600;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  color: var(--accent-light); margin-bottom: 28px;
  letter-spacing: .02em;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -.03em; margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 16px; padding: 32px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(59,130,246,.3);
  box-shadow: 0 8px 40px rgba(59,130,246,.08);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: rgba(59,130,246,.1); color: var(--accent-light);
}
.card-icon.icon-green { background: rgba(34,197,94,.1); color: var(--green); }
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary); font-size: .925rem; line-height: 1.7;
}
.feature-card code {
  background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent-light);
}

/* ===== DART3 SECTION ===== */
.dart3-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(59,130,246,.03) 50%, var(--bg-primary) 100%);
  border-top: 1px solid rgba(59,130,246,.1);
  border-bottom: 1px solid rgba(59,130,246,.1);
}
.dart3-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px; font-size: .8rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
  border: 1px solid rgba(59,130,246,.3); color: var(--accent-light);
  margin: 0 auto 24px; letter-spacing: .04em; text-transform: uppercase;
}
.dart3-badge .badge-icon { display: flex; }
.dart3-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.dart3-feature {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 16px; padding: 28px;
  transition: border-color .3s, box-shadow .3s;
}
.dart3-feature:hover {
  border-color: rgba(59,130,246,.3);
  box-shadow: 0 0 30px rgba(59,130,246,.06);
}
.feature-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent-light); margin-bottom: 10px;
}
.dart3-feature p {
  color: var(--text-secondary); font-size: .9rem; line-height: 1.7;
}
.dart3-feature code {
  background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent-light);
}

/* ===== CODE SHOWCASE ===== */
.code-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.code-block {
  background: #0c0c14; border: 1px solid var(--border-card);
  border-radius: 16px; overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-card);
  background: rgba(255,255,255,.02);
}
.code-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.code-title {
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted);
}
.code-body {
  padding: 20px; font-family: var(--font-mono); font-size: .82rem;
  line-height: 1.9; overflow-x: auto;
}
.code-line { display: flex; gap: 16px; white-space: pre; }
.line-num {
  color: var(--text-muted); min-width: 24px; text-align: right;
  user-select: none; opacity: .5;
}
.prompt { color: var(--green); }
.cmd { color: var(--text-primary); }
.output { color: var(--accent-light); font-style: italic; }
.kw { color: #c792ea; }
.str { color: #c3e88d; }
.ann { color: #ffcb6b; }
.type { color: #82aaff; }

/* ===== NARRATIVE ===== */
.narrative {
  max-width: 720px; margin: 0 auto;
}
.narrative p {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.85;
  margin-bottom: 24px;
}
.narrative p strong { color: var(--text-primary); }
.narrative-highlight {
  font-size: 1.4rem !important; font-weight: 700;
  color: var(--accent-light) !important; text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}

/* ===== ECOSYSTEM ===== */
.ecosystem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.eco-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 16px; padding: 28px; transition: all .3s; display: block;
  text-decoration: none; color: inherit;
}
.eco-card:hover {
  border-color: rgba(59,130,246,.3); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59,130,246,.08); color: inherit;
}
.eco-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: var(--accent-light);
}
.eco-card-header h3 {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--text-primary);
}
.eco-card p {
  color: var(--text-secondary); font-size: .9rem; line-height: 1.65; margin-bottom: 16px;
}
.eco-link {
  font-size: .82rem; font-weight: 600; color: var(--accent-light);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-card); padding: 60px 0 40px;
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.1rem; color: var(--text-primary);
}
.footer-logo { height: 32px; width: 32px; border-radius: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px;
}
.footer-links a {
  color: var(--text-secondary); font-size: .9rem; transition: color .2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border-card); }
.footer-powered {
  font-size: .9rem; color: var(--accent-light); font-weight: 500; margin-bottom: 8px;
}
.footer-credits { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.footer-copy { font-size: .78rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .code-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(10,10,15,.96); backdrop-filter: blur(20px);
    padding: 80px 20px 20px;
    transform: translateX(100%); transition: transform .3s;
    border-left: 1px solid var(--border-card);
  }
  .navbar-links.open { transform: translateX(0); }
  .nav-actions { flex-direction: column; margin-left: 0; margin-top: 12px; }
  .hero { min-height: auto; padding: 140px 24px 80px; }
  .hero-title { font-size: 2.4rem; }
  .section { padding: 70px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
