/* ============================================
   KREATIVE LAND — Design System & Styles
   Dark & Modern / Linear-inspired
   ============================================ */

/* --- Tokens --- */
:root {
  /* Background & Surface */
  --bg-base: #09090b;
  --bg-surface: #111114;
  --bg-elevated: #18181c;
  --bg-hover: #1f1f24;

  /* Text */
  --text-primary: #f0f0f3;
  --text-secondary: #8b8b99;
  --text-muted: #5a5a6e;

  /* Accent */
  --accent: #7c6aef;
  --accent-glow: rgba(124, 106, 239, 0.35);
  --accent-subtle: rgba(124, 106, 239, 0.08);

  /* Status */
  --status-live: #34d399;
  --status-live-bg: rgba(52, 211, 153, 0.1);
  --status-soon: #f59e0b;
  --status-soon-bg: rgba(245, 158, 11, 0.1);

  /* Project accent colors */
  --vocab-accent: #6366f1;
  --vocab-glow: rgba(99, 102, 241, 0.25);
  --story-accent: #f472b6;
  --story-glow: rgba(244, 114, 182, 0.25);
  --phonics-accent: #f59e0b;
  --phonics-glow: rgba(245, 158, 11, 0.25);
  --chat-accent: #e94560;
  --chat-glow: rgba(233, 69, 96, 0.25);
  --exam-accent: #22d3ee;
  --exam-glow: rgba(34, 211, 238, 0.25);
  --learner-accent: #fb7185;
  --learner-glow: rgba(251, 113, 133, 0.25);
  --next-accent: #8b8b99;

  /* Border */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Ambient Background Glow --- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -200px;
  left: -100px;
}

.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  bottom: -150px;
  right: -100px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 18px;
  color: var(--accent);
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(124, 106, 239, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), #a78bfa, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.65;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

/* --- Projects Section --- */
.projects {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.section-header {
  margin-bottom: 48px;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* --- Project Card --- */
.project-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-decoration: none;
  color: var(--text-primary);
  transition: 
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s var(--ease) 0.35s both;
}

.project-card:not(.card-placeholder) {
  cursor: pointer;
}

.project-card:not(.card-placeholder):hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.project-card:not(.card-placeholder):hover .card-glow {
  opacity: 1;
}

.project-card:not(.card-placeholder):hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Card inner glow on hover */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--vocab-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.card-icon-vocab {
  background: rgba(99, 102, 241, 0.1);
  color: var(--vocab-accent);
  border-color: rgba(99, 102, 241, 0.15);
}

.card-icon-story {
  background: rgba(244, 114, 182, 0.1);
  color: var(--story-accent);
  border-color: rgba(244, 114, 182, 0.15);
}

.card-glow-story {
  background: linear-gradient(180deg, var(--story-glow), transparent);
}

.card-icon-phonics {
  background: rgba(245, 158, 11, 0.1);
  color: var(--phonics-accent);
  border-color: rgba(245, 158, 11, 0.15);
}

.card-glow-phonics {
  background: linear-gradient(180deg, var(--phonics-glow), transparent);
}

.card-icon-chat {
  background: rgba(233, 69, 96, 0.1);
  color: var(--chat-accent);
  border-color: rgba(233, 69, 96, 0.15);
}

.card-glow-chat {
  background: linear-gradient(180deg, var(--chat-glow), transparent);
}

.card-icon-exam {
  background: rgba(34, 211, 238, 0.1);
  color: var(--exam-accent);
  border-color: rgba(34, 211, 238, 0.15);
}

.card-glow-exam {
  background: linear-gradient(180deg, var(--exam-glow), transparent);
}

.card-icon-learner {
  background: rgba(251, 113, 133, 0.1);
  color: var(--learner-accent);
  border-color: rgba(251, 113, 133, 0.15);
}

.card-glow-learner {
  background: linear-gradient(180deg, var(--learner-glow), transparent);
}

.ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid rgba(124, 106, 239, 0.2);
  border-radius: 100px;
  background: var(--accent-subtle);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
  margin-top: 12px;
}

.ecosystem-link:hover {
  background: rgba(124, 106, 239, 0.15);
  border-color: rgba(124, 106, 239, 0.35);
}

.card-icon-next {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.card-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-live {
  color: var(--status-live);
  background: var(--status-live-bg);
}

.status-soon {
  color: var(--status-soon);
  background: var(--status-soon-bg);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: 
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease);
  z-index: 2;
}

/* Placeholder card styling */
.card-placeholder {
  border-style: dashed;
  background: transparent;
}

.card-placeholder .card-title {
  color: var(--text-muted);
}

.card-placeholder .card-description {
  color: var(--text-muted);
}

/* --- About Section --- */
.about {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 560px;
}

.about .section-title {
  margin-bottom: 16px;
}

.about-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero {
    padding: 140px 20px 60px;
  }

  .projects {
    padding: 40px 20px 80px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 24px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .about {
    padding: 40px 20px 80px;
  }
}
