/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  /* Dark mode (default) */
  --primary: #9f7aea;
  --primary-dark: #805ad5;
  --primary-light: #3c096c;
  --bg: #05010d;
  --bg-alt: #0d021f;
  --text: #f3e8ff;
  --text-muted: #b794f4;
  --code-bg: #0f051a;
  --white: #ffffff;
  --border: #2d1b4e;
  --card-bg: #0d021f;
  --nav-bg: rgba(5, 1, 13, 0.8);
  --hero-gradient: radial-gradient(circle at top right, #3c096c, transparent);
  --accent-gradient: linear-gradient(135deg, #9f7aea 0%, #5a189a 100%);
}

[data-theme='light'] {
  --primary: #805ad5;
  --primary-dark: #6b46c1;
  --primary-light: #e9d8fd;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --text: #1a202c;
  --text-muted: #4a5568;
  --code-bg: #1e1e1e;
  --white: #ffffff;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --hero-gradient: radial-gradient(circle at top right, #e9d8fd, transparent);
  --accent-gradient: linear-gradient(135deg, #805ad5 0%, #5a189a 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  background-color: var(--bg);
}

header {
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

.hero {
  padding: 6rem 2rem;
  background: var(--hero-gradient);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badges {
    justify-content: center;
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

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

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badges a {
  display: inline-flex;
  transition: opacity 0.2s;
}

.hero-badges a:hover {
  opacity: 0.8;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 968px) {
  .cta-group {
    justify-content: center;
    flex-direction: column;
  }
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.install-box {
  background-color: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

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

.install-box code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

#copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

#copy-btn:hover {
  color: var(--primary);
}

.hero-code {
  background-color: var(--code-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.code-header {
  background-color: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.file-name {
  color: #999;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

.hero-code pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
}

.hero-code code {
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  color: #d4d4d4;
}

.keyword { color: #c586c0; }
.string { color: #ce9178; }
.function { color: #dcdcaa; }
.decorator { color: #dcdcaa; }

.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--card-bg) 0%, #1a0a2e 100%);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.feature-card p {
  color: var(--text-muted);
}

.project-tile {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-tile:hover h3 {
  color: var(--primary);
}

.ecosystem {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

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

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-logo img {
  height: 30px;
}

