/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #6B4CE6;
  --purple-dark: #5538CC;
  --purple-light:#8B6CF0;
  --teal:        #00D9A3;
  --orange:      #FFB84D;
  --red:         #FF5757;
  --bg:          #1A1625;
  --bg-card:     #221E31;
  --bg-card2:    #2A2540;
  --gray-900:    #2E2A3D;
  --gray-700:    #4D475F;
  --gray-600:    #6B6580;
  --gray-400:    #A8A0B8;
  --gray-300:    #C7C0D6;
  --gray-200:    #E5E1F0;
  --gray-100:    #F5F3FA;
  --white:       #FFFFFF;
  --font-body:   'Work Sans', sans-serif;
  --font-display:'Playfair Display', serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.25);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-200);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── CONTAINER ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(107,76,230,0);
}
.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 0 20px rgba(107,76,230,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-300);
  border: 1.5px solid var(--gray-700);
}
.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--white);
}

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,22,37,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.brand-icon { display: flex; align-items: center; }
.brand-name { letter-spacing: -0.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
}

/* ─── SECTION COMMON ─── */
.section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(107,76,230,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107,76,230,0.15);
  border: 1px solid rgba(107,76,230,0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 40px;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ─── FEATURES ─── */
.features-section { background: rgba(255,255,255,0.01); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(107,76,230,0.35);
  transform: translateY(-3px);
}

.feature-card--highlight {
  background: linear-gradient(135deg, rgba(107,76,230,0.15) 0%, rgba(107,76,230,0.05) 100%);
  border-color: rgba(107,76,230,0.3);
  grid-row: span 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(107,76,230,0.15);
  color: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon--teal {
  background: rgba(0,217,163,0.12);
  color: var(--teal);
}
.feature-icon--orange {
  background: rgba(255,184,77,0.12);
  color: var(--orange);
}
.feature-icon--purple {
  background: rgba(107,76,230,0.15);
  color: var(--purple-light);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--gray-400);
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  font-size: 13.5px;
  color: var(--gray-300);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ─── TECH STACK ─── */
.stack-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(34,30,49,0.7) 100%);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.stack-category {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stack-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stack-dot--purple { background: var(--purple-light); }
.stack-dot--teal   { background: var(--teal); }
.stack-dot--orange { background: var(--orange); }

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  transition: all var(--transition);
}
.pill:hover {
  background: rgba(107,76,230,0.15);
  border-color: rgba(107,76,230,0.4);
  color: var(--purple-light);
}

.arch-callout {
  background: rgba(107,76,230,0.08);
  border: 1px solid rgba(107,76,230,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
}
.arch-callout-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.6;
}
.arch-callout-inner strong { color: var(--white); }
.arch-callout-icon { flex-shrink: 0; }

/* ─── DEMO ─── */
.demo-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.demo-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(107,76,230,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.demo-card {
  position: relative;
  background: linear-gradient(135deg, rgba(107,76,230,0.2) 0%, rgba(34,30,49,0.9) 60%);
  border: 1px solid rgba(107,76,230,0.35);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.demo-content .section-title { margin-bottom: 12px; }

.demo-perks {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.perk-icon {
  width: 22px;
  height: 22px;
  background: rgba(0,217,163,0.15);
  border: 1px solid rgba(0,217,163,0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ─── FORM SHARED ─── */
.demo-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-card2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,76,230,0.2);
}
.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── CONTACT ─── */
.contact-section { padding: 96px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(107,76,230,0.15);
  border: 1px solid rgba(107,76,230,0.25);
  border-radius: 10px;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 2px;
}
.contact-item a {
  font-size: 14px;
  color: var(--purple-light);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--white); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: var(--gray-700);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card2);
  border: 1px solid rgba(0,217,163,0.3);
  color: var(--teal);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 60px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { position: relative; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-divider { width: 80px; height: 1px; }

  .features-grid { grid-template-columns: 1fr; }

  .demo-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-row { grid-template-columns: 1fr; }

  .stack-grid { grid-template-columns: 1fr; }

  .arch-callout-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
