/*
Theme Name: VLSIChaps
Theme URI: https://vlsichaps.com
Author: VLSIChaps
Author URI: https://vlsichaps.com
Description: The official VLSIChaps theme — Spec-to-Silicon Intelligence. Dark, modern landing page for the global VLSI & AI engineering community.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vlsichaps
*/

/* ===================== CSS VARIABLES ===================== */
:root {
  --bg:     #0a0f1e;
  --bg2:    #0d1428;
  --bg3:    #111827;
  --card:   #131d35;
  --border: rgba(255,255,255,0.07);
  --cyan:   #f97316;
  --blue:   #ea6c0a;
  --accent: #f97316;
  --text:   #f1f5f9;
  --muted:  #94a3b8;
  --tag-bg: rgba(249,115,22,0.12);
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.3); border-radius: 3px; }

/* ===================== UTILITY ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -.5px; margin-bottom: .75rem;
}
.section-sub { color: var(--muted); max-width: 520px; }

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff;
  padding: .85rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.06); color: var(--cyan);
  padding: .85rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  border: 1px solid rgba(34,211,238,0.3); cursor: pointer;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(34,211,238,0.1); color: var(--cyan); }

/* ===================== NAV ===================== */
#site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,15,30,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -.5px; }
.site-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  background: var(--blue); color: #fff; border: none;
  padding: .5rem 1.2rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,211,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--cyan); border-radius: 999px;
  padding: .35rem 1rem; font-size: .8rem; font-weight: 600;
  color: var(--cyan); letter-spacing: .08em; margin-bottom: 1.5rem;
}
.hero-badge::before { content: '⬡'; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 1.25rem;
}
.hero-title span { color: var(--cyan); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.stat-val { font-size: 2.2rem; font-weight: 900; color: var(--cyan); }
.stat-label { font-size: .75rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ===================== VISITOR BAR ===================== */
#visitor-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 2rem; text-align: center;
  font-size: .85rem; color: var(--muted);
}
#visitor-bar span { color: var(--cyan); font-weight: 700; }

/* ===================== FEATURES ===================== */
#features { padding: 5rem 2rem; background: var(--bg2); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: rgba(34,211,238,0.3); transform: translateY(-3px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(34,211,238,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feat-title { font-weight: 700; margin-bottom: .4rem; }
.feat-desc { font-size: .875rem; color: var(--muted); }

/* ===================== UPDATES ===================== */
#updates { padding: 5rem 2rem; background: var(--bg); }
.updates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.update-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.update-tag {
  display: inline-block; background: var(--tag-bg); color: var(--cyan);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 999px; letter-spacing: .05em; width: fit-content;
}
.update-title { font-weight: 600; font-size: .95rem; }
.update-meta { font-size: .78rem; color: var(--muted); }

/* ===================== BLOG ===================== */
#blog { padding: 5rem 2rem; background: var(--bg2); }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, border-color .2s; cursor: pointer;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,0.25); }
.blog-thumb {
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
}
.blog-body { padding: 1.25rem 1.5rem; }
.blog-tag {
  display: inline-block; background: var(--tag-bg); color: var(--cyan);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 999px; margin-bottom: .6rem;
}
.blog-title { font-weight: 700; font-size: .975rem; margin-bottom: .4rem; }
.blog-excerpt { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.blog-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 1rem; }
.blog-view-all { text-align: center; margin-top: 2rem; }

/* ===================== NEWSLETTER ===================== */
#newsletter {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(59,130,246,0.06));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.newsletter-box { max-width: 600px; margin: auto; text-align: center; }
.newsletter-box p { color: var(--muted); margin-bottom: 2rem; }
.sub-form { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.sub-form input {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem 1.2rem;
  color: var(--text); font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.sub-form input:focus { border-color: var(--cyan); }
.sub-form input::placeholder { color: var(--muted); }
.sub-count { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.sub-count span { color: var(--cyan); font-weight: 700; }

/* ===================== COMMUNITY ===================== */
#community { padding: 5rem 2rem; background: var(--bg); }
.community-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.comm-btn {
  display: flex; align-items: center; gap: .6rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem 1.4rem;
  color: var(--text); font-weight: 600; font-size: .9rem;
  transition: border-color .2s, transform .2s;
}
.comm-btn:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--text); }
.comm-icon { font-size: 1.3rem; }

/* ===================== CONTACT ===================== */
#contact { padding: 5rem 2rem; background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-top: 2.5rem;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem; color: var(--muted); font-size: .95rem;
}
.contact-item .ci-icon { font-size: 1.2rem; }
.contact-item a { color: var(--cyan); }
.contact-form-field {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .85rem 1.2rem; color: var(--text);
  font-size: .9rem; outline: none; margin-bottom: .75rem;
  display: block; font-family: inherit;
  transition: border-color .2s;
}
.contact-form-field:focus { border-color: var(--cyan); }
.contact-form-field::placeholder { color: var(--muted); }
textarea.contact-form-field { resize: vertical; min-height: 100px; }

/* ===================== FOOTER ===================== */
#site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-weight: 800; font-size: 1rem; }
.footer-logo span { color: var(--cyan); }
.footer-tagline { color: var(--muted); font-weight: 400; font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  color: var(--muted); font-size: .8rem;
  width: 100%; text-align: center; margin-top: 1rem;
}