/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* ===== Background layers ===== */
.grain {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.03; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-bg {
  position: fixed; width: 100%; height: 100%; z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(120,119,198,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,119,198,0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(138,180,248,0.1) 0%, transparent 50%);
}

/* Floating orbs (decor) */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; animation: float-orb 20s infinite ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); bottom: -100px; right: -100px; animation-delay: 7s; }
.orb-3 { width: 300px; height: 300px; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); top: 50%; right: 10%; animation-delay: 14s; }

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===== Containers / Layout ===== */
.container {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem 2rem 130px; text-align: center;
}

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,10,10,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 2rem; animation: slideDown 0.5s ease-out;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.header-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}

/* Header logo (scoped) */
.header .logo {
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -1px;
}

.header .nav-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.header .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ===== Hero / Top section branding ===== */
.logo-wrapper { margin-bottom: 3rem; animation: fadeInDown 1s ease-out; }
.logo {
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -1px; position: relative; display: inline-block;
}
/* shimmer only when used inside .logo-wrapper to avoid affecting header logo */
.logo-wrapper .logo::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: linear-gradient(90deg, transparent, #667eea, transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

.ai-badge, .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(102,126,234,0.1); border: 1px solid rgba(102,126,234,0.3);
  padding: 8px 20px; border-radius: 50px; font-size: .85rem; font-weight: 500;
  margin-bottom: 2rem; backdrop-filter: blur(10px); animation: fadeIn .8s ease-out;
}
.ai-badge::before, .hero-badge::before { content: '✨'; font-size: 1.2rem; }
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(180deg); } }

h1, .hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeIn 1s ease-out .2s both;
}

.subtitle, .hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #a0a0a0; max-width: 700px; margin: 0 auto 3rem; line-height: 1.7;
  animation: fadeIn 1s ease-out .4s both;
}

.main-content { position: relative; z-index: 2; padding-top: 100px; }
.hero-section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }

/* ===== Buttons / CTAs ===== */
.cta-group, .cta-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: fadeIn 1s ease-out .9s both;
}

.btn {
  padding: 16px 32px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all .3s ease; cursor: pointer; border: none; position: relative; overflow: hidden; display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
  box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left .5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(102,126,234,0.5); }

.btn-secondary {
  background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ===== Feature blocks (simple) ===== */
.features {
  margin-top: 5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; max-width: 900px; animation: fadeIn 1s ease-out 1.1s both;
}
.feature {
  padding: 2rem 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; backdrop-filter: blur(10px); transition: all .3s ease;
}
.feature:hover { background: rgba(255,255,255,0.05); border-color: rgba(102,126,234,0.3); transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #fff; }
.feature p { font-size: .95rem; color: #808080; line-height: 1.5; }

/* ===== Feature Sections (extended) ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-block; color: #667eea; font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; color: #fff; }
.section-description { font-size: 1.1rem; color: #a0a0a0; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.feature-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 3rem 2rem; backdrop-filter: blur(10px);
  transition: all .4s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb); transform: scaleX(0); transition: transform .4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(102,126,234,0.3); transform: translateY(-8px); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.feature-card p { font-size: 1rem; color: #a0a0a0; line-height: 1.6; margin-bottom: 1.5rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: .5rem 0; color: #c0c0c0; font-size: .95rem; display: flex; align-items: center; gap: .5rem;
}
.feature-list li::before { content: '→'; color: #667eea; font-weight: bold; }

/* ===== Stats ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem; text-align: center; margin-top: 3rem;
}
.stat-item { padding: 2rem; }
.stat-number {
  font-size: 3.5rem; font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .5rem;
}
.stat-label { font-size: 1rem; color: #a0a0a0; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Tech Stack ===== */
.tech-stack { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 3rem; }
.tech-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 2.5rem; border-radius: 16px; font-weight: 600; color: #e0e0e0; transition: all .3s ease;
}
.tech-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(102,126,234,0.5); transform: translateY(-3px); }

/* ===== Timeline ===== */
.timeline { max-width: 800px; margin: 3rem auto 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #667eea, #764ba2); transform: translateX(-50%);
}
.timeline-item {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem; border-radius: 16px; backdrop-filter: blur(10px);
}
.timeline-date { font-size: .9rem; color: #667eea; font-weight: 600; margin-bottom: .5rem; }
.timeline-content h4 { font-size: 1.3rem; margin-bottom: .5rem; color: #fff; }
.timeline-content p { color: #a0a0a0; font-size: .95rem; line-height: 1.5; }
.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; background: #667eea; border: 4px solid #0a0a0a; border-radius: 50%; z-index: 2;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center; padding: 6rem 2rem;
  background: rgba(102,126,234,0.05);
  border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.cta-description {
  font-size: 1.2rem; color: #a0a0a0; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== Footer ===== */
.footer { position: relative; z-index: 2; padding: 3rem 2rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-logo {
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem;
}
.footer-text { color: #606060; font-size: .9rem; }

/* ===== Status bar (bottom) ===== */
.status-bar {
  position: fixed; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  background: rgba(10,10,10,0.8); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1); z-index: 10; animation: slideUp 1s ease-out 1.3s both;
}
.status-content {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.status-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #a0a0a0; }
.pulse-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.7); } 50% { opacity: .7; box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .section, .hero-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item { flex-direction: column !important; align-items: flex-start; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }

  .cta-buttons, .cta-group { flex-direction: column; }
  .btn { width: 100%; }

  .status-content { justify-content: center; text-align: center; }
}
/* === Encoding fixes / icon overrides === */
.ai-badge::before, .hero-badge::before { content: "\2728" !important; }
.feature-list li::before { content: "\2713" !important; }
