/* Theme mirrors ashokmurugan.com: Inter, white canvas, slate text, RGB (red/green/blue) accents, dark footer. */
:root {
  --background: #ffffff;
  --foreground: #0b0f1a;
  --text-muted: #64748b;
  --line-red: #ef4444;
  --line-green: #22c55e;
  --line-blue: #3b82f6;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---- Header (same metrics as ashokmurugan.com: 80rem container, 1.25rem/2rem padding) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #22c55e, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
}
.logo-text { font-size: 1.25rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; }
.logo-link:hover .logo-mark {
  transform: scale(1.05) rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.header-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.nav-icon { width: 1.25rem; height: 1.25rem; transition: all 0.3s ease; }
.header-nav-item:hover { color: #111827; }
.header-nav-item:hover .nav-icon { transform: translateY(-2px); }
.header-nav-item:hover span {
  background: linear-gradient(to right, #ef4444, #22c55e, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 640px) {
  .header-nav-item span { display: none; }
  .site-header-inner { padding: 1rem 1.25rem; }
}

/* ---- Main / hero ---- */
.page-main { flex: 1; display: flex; flex-direction: column; }
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-compact { padding: 3rem 1.5rem; }
.hero-glow { position: absolute; width: 45%; height: 60%; border-radius: 9999px; filter: blur(140px); pointer-events: none; z-index: -1; }
.hero-glow-blue { top: -10%; left: -10%; background: rgba(239, 246, 255, 0.6); }
.hero-glow-green { bottom: -10%; right: -10%; background: rgba(236, 253, 245, 0.6); }
.hero-inner { max-width: 40rem; }

.eyebrow {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-title {
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0f172a;
  margin-bottom: 1.5rem;
}
.text-gradient-rgb {
  background: linear-gradient(135deg, var(--line-red), var(--line-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text { color: #475569; font-size: 1.125rem; font-weight: 500; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }

.btn-primary {
  padding: 1rem 2rem;
  background: #0f172a;
  color: #fff;
  border-radius: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { background: #1e293b; }
.btn-primary:active { transform: scale(0.98); }
.btn-outline {
  padding: 0.75rem 1.5rem;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.btn-outline:hover { border-color: #9ca3af; }
.btn-link { color: #1e293b; font-weight: 700; transition: color 0.2s ease; }
.btn-link:hover { color: #2563eb; }

.code-404 { font-size: 3.75rem; font-weight: 700; color: #e5e7eb; margin-bottom: 0.5rem; }
.not-found-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.not-found-text { color: #9ca3af; max-width: 28rem; margin: 0 auto 2rem; }

/* ---- Footer ---- */
.site-footer { background: #0b0f1a; color: #f9fafb; position: relative; padding-top: 2px; }
.footer-rgb { position: absolute; top: 0; left: 0; right: 0; height: 2px; display: flex; overflow: hidden; }
.footer-rgb i { flex: 1; }
.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em; }
.footer-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef4444, #22c55e, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.6rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.85rem; font-weight: 600; }
.footer-link-premium { color: #94a3b8; transition: all 0.2s ease; }
.footer-link-premium:hover { color: #fff; }
@media (max-width: 640px) {
  .site-footer-inner { justify-content: center; }
}
