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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #22222f;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #666680;
  --accent-green: #44ff66;
  --accent-blue: #4af;
  --accent-magenta: #a6f;
  --border-color: #2a2a3a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #66ff88;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.landing {
  flex: 1;
}

section {
  padding: 3rem 0;
}

/* ===== Hero ===== */
.hero {
  padding: 6rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(68, 255, 102, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(74, 170, 255, 0.06), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(170, 102, 255, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-logo {
  height: 140px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: invert(1) brightness(1.8) contrast(1.3);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===== Pillars ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.made-with {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
  letter-spacing: 0.01em;
}

.made-with-icon {
  font-size: 0.95rem;
  margin-right: 0.25rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--text-primary);
}

a.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(68, 255, 102, 0.12);
}

.pillar-icon {
  font-size: 5.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.pillar-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pillar-link {
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pillar-static {
  cursor: default;
}

.pillar-static .pillar-link {
  color: var(--text-muted);
}

.pillar-badge {
  background: rgba(74, 170, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(74, 170, 255, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo img {
  height: 28px;
  opacity: 0.7;
  filter: invert(1) brightness(1.8) contrast(1.3);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-colophon {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: #2a2a3a;
  margin-top: 0.5rem;
  cursor: default;
  transition: color 0.3s;
}

.footer-colophon:hover {
  color: var(--text-muted);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero {
    padding: 4rem 0 1rem;
  }

  .hero-logo {
    height: 96px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
