/* ============================================================
   Programmeroo — Shared Styles
   Dark theme, blue accent, Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg: #0A0E17;
  --bg-elevated: #111827;
  --card: #141B2D;
  --accent: #3B82F6;
  --accent-glow: rgba(59,130,246,0.3);
  --accent-soft: rgba(59,130,246,0.08);
  --accent-strong: #60A5FA;
  --teal: #06D6A0;
  --amber: #F59E0B;
  --text: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E293B;
  --border-light: #334155;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  font-size: 17px;
  scroll-behavior: smooth;
}

/* ─── Typography ─── */

h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; color: var(--text-secondary); }
p.lead { font-size: 1.25rem; color: var(--text); font-weight: 500; line-height: 1.55; }

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

code, .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.9em; }

.accent-text { color: var(--accent-strong); }
.accent-glow { text-shadow: 0 0 40px var(--accent-glow); }
.teal { color: var(--teal); }
.amber { color: var(--amber); }

/* ─── Layout ─── */

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

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-elevated); }

/* ─── Navigation ─── */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

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

.nav-logo {
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo .accent { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent); color: white !important;
  padding: 0.5rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: #2563EB; box-shadow: 0 0 20px var(--accent-glow); }

/* ─── Hero ─── */

.hero { padding: 5rem 0 3rem; text-align: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--teal); }
.hero .lead { max-width: 680px; margin: 0 auto 2rem; }
.hero-badge {
  display: inline-block; background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent-strong); font-weight: 600; font-size: 0.85rem;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}

/* ─── Buttons ─── */

.btn {
  display: inline-block; padding: 0.75rem 2rem;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}
.btn-primary:hover { background: #2563EB; box-shadow: 0 0 30px var(--accent-glow); color: white; }
.btn-outline {
  border: 1.5px solid var(--border-light); color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Cards ─── */

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

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0.75rem; }

.card-accent { border-color: rgba(59,130,246,0.25); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(59,130,246,0.1); }

.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* ─── Framework visualization ─── */

.framework { display: flex; flex-direction: column; gap: 0; max-width: 640px; margin: 2rem auto; }
.fw-layer {
  padding: 1.5rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  transition: transform 0.2s;
}
.fw-layer:hover { transform: scale(1.02); }
.fw-layer-1 { background: var(--card); }
.fw-layer-2 { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); }
.fw-layer-3 { background: rgba(6,214,160,0.06); border-color: rgba(6,214,160,0.3); }
.fw-arrow {
  text-align: center; font-size: 1.5rem; color: var(--text-muted);
  padding: 0.25rem 0;
}
.fw-layer h3 { margin-bottom: 0.25rem; }
.fw-layer p { margin-bottom: 0; font-size: 0.9rem; }

/* ─── Pricing cards ─── */

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

.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(59,130,246,0.1); }

.price-header { margin-bottom: 1.5rem; }
.price-header h3 { margin-bottom: 0.25rem; }
.price-tag { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.price-tag span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-desc { color: var(--text-muted); font-size: 0.9rem; }

.price-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.price-features li { padding: 0.4rem 0; color: var(--text-secondary); font-size: 0.95rem; }
.price-features li::before { content: "→ "; color: var(--accent-strong); }

/* ─── About section ─── */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat { text-align: center; padding: 1.25rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent-strong); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.timeline-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { color: var(--accent-strong); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }

/* ─── Testimonial ─── */

.testimonial {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  max-width: 700px; margin: 0 auto; text-align: center;
}
.testimonial blockquote {
  font-size: 1.15rem; font-style: italic; color: var(--text);
  margin-bottom: 1rem; line-height: 1.6;
}
.testimonial blockquote::before { content: '"'; }
.testimonial blockquote::after { content: '"'; }
.testimonial cite { color: var(--text-muted); font-style: normal; font-size: 0.9rem; }

/* ─── Contact ─── */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card .contact-link { font-size: 1.2rem; font-weight: 600; }

/* ─── Footer ─── */

footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--text); }

/* ─── Blog ─── */

.blog-list { max-width: 700px; }
.blog-card {
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.blog-card:first-child { padding-top: 0; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--accent-strong); }
.blog-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.blog-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ─── Responsive ─── */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* TODO: add mobile menu */
  .container { padding: 0 1.25rem; }
}

/* ─── Utilities ─── */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
