*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6d28d9;
  --accent: #a855f7;
  --bg: #ffffff;
  --text: #111827;
  --nav-bg: #ffffff;
  --card-bg: #f9fafb;
  --border: #e5e7eb;
  --font: 'Inter', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 60px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--accent);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
  color: var(--primary);
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.75;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  opacity: 0.8;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-block {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.link {
  color: var(--primary);
  text-decoration: underline;
  margin-bottom: 1rem;
  display: inline-block;
}

.site-image {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  opacity: 0.6;
  font-size: 0.9rem;
}

.card-btn {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.code-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre;
}

.example-box {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.example-box .hero {
  padding: 2rem 0 1rem;
}

.comp-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

.heading {
  margin-bottom: 1rem;
}

.heading-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.heading-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.25rem;
}
