/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
  /* High-end Light Mode */
  --bg-main: #FAFAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #121217;
  --text-secondary: #5A5A66;
  --border-color: rgba(0, 0, 0, 0.08);

  --accent-base: #2563EB;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --accent-gradient: linear-gradient(135deg, #1D4ED8, #3B82F6, #8B5CF6);
  --btn-text: #FFFFFF;

  --nav-bg: rgba(250, 250, 252, 0.85);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --card-border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  /* Ultra-Premium AI Startup Dark Mode */
  --bg-main: #000000;
  --bg-secondary: #050505;
  --bg-card: rgba(10, 10, 12, 0.7);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --border-color: rgba(255, 255, 255, 0.1);

  --accent-base: #6366F1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 50%, #EC4899 100%);
  --btn-text: #FFFFFF;

  --nav-bg: rgba(0, 0, 0, 0.7);

  /* Deep layered drop shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.5);

  --card-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   GLOBAL RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--btn-text);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px var(--accent-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-base);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-text:hover {
  gap: 10px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: baseline;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.brand-text {
  color: var(--text-primary);
}

.brand-text strong {
  color: var(--accent-base);
}

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

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s ease;
}

.theme-toggle:hover {
  background: var(--border-color);
}

[data-theme="light"] .light-icon {
  display: none;
}

[data-theme="dark"] .dark-icon {
  display: none;
}

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

.hero-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: var(--accent-gradient);
  filter: blur(180px);
  opacity: 0.25;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 5rem;
  letter-spacing: -2.5px;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* =========================================
   POSITIONING SECTION
   ========================================= */
.positioning {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.icon-large {
  font-size: 2.5rem;
  color: var(--accent-base);
  margin-bottom: 1.5rem;
}

.pos-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pos-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================
   COMMON SECTION HEADERS
   ========================================= */
.section-header {
  text-align: left;
  margin-bottom: 4rem;
}

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

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* =========================================
   CORE DOMAINS (CARDS)
   ========================================= */
.domains {
  padding: 120px 0;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.domain-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--card-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.domain-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.domain-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.domain-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.domain-card p {
  color: var(--text-secondary);
}

/* =========================================
   FEATURED BUILDS
   ========================================= */
.featured-builds {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.build-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.build-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.build-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.placeholder-1 {
  background: linear-gradient(135deg, #1e293b, #0f172a, #3b82f6);
}

.placeholder-2 {
  background: linear-gradient(135deg, #2d3748, #1a202c, #8b5cf6);
}

.build-content {
  padding: 2rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-base);
  margin-bottom: 1rem;
}

.build-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.build-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* =========================================
   LEARNING PATH / ROADMAP
   ========================================= */
.roadmap-section {
  padding: 120px 0;
}

.roadmap-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--card-border);
  padding: 5rem 4rem;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.roadmap-content {
  flex: 1;
  z-index: 2;
}

.roadmap-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.roadmap-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.timeline li {
  position: relative;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent-base);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline li:last-child {
  margin-bottom: 0;
}

.roadmap-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.huge-icon {
  font-size: 12rem;
  color: var(--text-primary);
  opacity: 0.8;
}

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-gradient);
  filter: blur(120px);
  opacity: 0.25;
  border-radius: 50%;
  z-index: -1;
}

/* =========================================
   BLOG PREVIEW
   ========================================= */
.blog-preview {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.blog-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--card-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.category {
  color: var(--accent-base);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--accent-base);
  padding-bottom: 2px;
}

.read-more:hover {
  color: var(--accent-base);
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter {
  padding: 120px 0;
}

.newsletter-container {
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 5rem 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-base);
}

.newsletter-form .btn-primary {
  background: var(--accent-base);
  color: #fff;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-main);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.link-col a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.link-col a:hover {
  color: var(--accent-base);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.socials a {
  color: var(--text-secondary);
}

.socials a:hover {
  color: var(--text-primary);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .positioning-grid,
  .domain-grid,
  .builds-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-container {
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .positioning-grid,
  .domain-grid,
  .builds-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}