/* ==========================================================================
   Rodney Geller — site stylesheet
   Static build today; structured so header/nav/footer can lift straight
   into an ASP.NET Web Forms Site.Master later without a redesign.
   ========================================================================== */

:root {
  --bg: #060810;
  --bg-alt: #0a0d17;
  --surface: #10131f;
  --surface-2: #171c2c;
  --border: #232a3d;
  --text: #e8ecf6;
  --text-dim: #9aa6bd;
  --text-faint: #67708a;

  --accent: #4fd1ff;
  --accent-2: #8b6bff;
  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --success: #3ddc97;

  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 85% -10%, rgba(79, 209, 255, 0.14), transparent 60%),
    radial-gradient(600px 500px at 0% 20%, rgba(139, 107, 255, 0.12), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
code, .mono { font-family: var(--mono); }

.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(79, 209, 255, 0.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-gradient);
  color: #04101a;
  box-shadow: 0 10px 30px -8px rgba(79, 209, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 14px 34px -6px rgba(79, 209, 255, 0.6); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(79, 209, 255, 0.06); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 16, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-gradient);
  color: #04101a;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
}
.brand-mark.small { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.site-nav a { transition: color .15s ease; position: relative; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent-gradient);
}
.header-inner .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat-row .stat-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.stat-row .stat-label {
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; }
.section-head p { margin: 8px 0 0; max-width: 520px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(79, 209, 255, 0.35); transform: translateY(-3px); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 209, 255, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Featured project panel ---------- */
.feature-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(139, 107, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.feature-panel h3 { font-size: 26px; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.terminal {
  background: #05060c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4256; }
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal pre {
  margin: 0;
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #b9c3da;
  overflow-x: auto;
}
.terminal .tok-cmd { color: var(--accent); }
.terminal .tok-flag { color: var(--accent-2); }
.terminal .tok-comment { color: var(--text-faint); }
.terminal .tok-ok { color: var(--success); }

/* ---------- Blog ---------- */
.post-card {
  display: block;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: rgba(79, 209, 255, 0.35); transform: translateY(-3px); }
.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

article.post {
  max-width: 720px;
  margin: 0 auto;
}
article.post h1 { font-size: clamp(28px, 4vw, 40px); }
article.post .post-meta { margin-bottom: 28px; }
article.post h2 { font-size: 22px; margin-top: 2em; }
article.post p, article.post li { color: var(--text-dim); font-size: 16px; }
article.post ul, article.post ol { padding-left: 22px; }
article.post blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--text);
  font-style: italic;
}
article.post code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  transition: border-color .15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 16px;
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list .info-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(79, 209, 255, 0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-list .info-label { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.info-list .info-value { font-size: 15px; color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,209,255,0.12), rgba(139,107,255,0.12));
  border: 1px solid var(--border);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-band .btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding-top: 56px;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 12px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--text); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4, .footer-contact h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-links a, .footer-contact a, .footer-contact span {
  font-size: 14.5px;
  color: var(--text-dim);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 64px 0 40px; }
.page-header h1 { font-size: clamp(32px, 5vw, 46px); }
.page-header p { max-width: 620px; font-size: 16.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { grid-template-columns: 1fr; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 8, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .site-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-inner .btn { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .feature-panel { padding: 24px; }
  section { padding: 52px 0; }
}
