/* ConRob LLC — conrob.dev rebuild
   Mobile-first, no frameworks, no build step.
   Dark theme: deep navy + teal/amber glow. */

:root {
  --ink: #eef2fa;
  --ink-soft: #b9c3d8;
  --muted: #8b96b0;
  --paper: #0a0f1e;
  --wash: #0d1428;
  --wash-deep: #14203c;
  --card: #101b36;
  --line: #223052;
  --accent: #fbbf24;
  --accent-deep: #fcd34d;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.55);
  --glow-teal: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 12px 40px rgba(45, 212, 191, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(45, 212, 191, 0.35); color: #fff; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--ink-soft); }

a { color: var(--teal); }
a:hover { color: #5eead4; }

.container { width: min(var(--max), 100% - 2.5rem); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo {
  height: 36px; width: auto; flex: none;
}
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-tag { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 0.5rem 0.65rem; font-size: 1.15rem; cursor: pointer;
  color: var(--ink); line-height: 1;
}
.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  padding: 0.55rem 0.85rem; border-radius: 10px; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--wash-deep); color: var(--ink); }
.site-nav a.active { background: #1e2c52; color: #c9d8f8; }
.site-nav a.cta {
  background: #2f6fed; color: #fff; margin-left: 0.4rem;
}
.site-nav a.cta:hover { background: #2563eb; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(251, 191, 36, 0.13), transparent 60%),
    radial-gradient(800px 500px at 8% 110%, rgba(45, 212, 191, 0.13), transparent 60%),
    linear-gradient(180deg, #0d1530 0%, var(--paper) 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(600px 380px at 20% 30%, rgba(45, 212, 191, 0.09), transparent 65%),
    radial-gradient(700px 420px at 80% 70%, rgba(251, 191, 36, 0.07), transparent 65%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to { transform: translate3d(3%, -2%, 0) scale(1.08); }
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { max-width: 16ch; }
.hero h1 .glow { color: var(--teal); }
.hero .lead { max-width: 56ch; margin: 1rem 0 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04211d; box-shadow: var(--shadow); }
.btn-primary:hover { color: #04211d; background: #5eead4; box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); color: #1c1005; box-shadow: var(--shadow); }
.btn-accent:hover { color: #1c1005; background: #f59e0b; box-shadow: var(--shadow-hover); }
.btn-ghost { background: rgba(20, 32, 60, 0.6); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #3b4d7a; }

.hero-stats {
  display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.8rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(45, 212, 191, 0.35); }
.card .icon { font-size: 1.9rem; margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.98rem; margin-bottom: 0.8rem; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card-link::after { content: " →"; }

.card-img { border-radius: var(--radius); overflow: hidden; padding: 0; }
.card-img img { width: 100%; height: 190px; object-fit: cover; }
.card-img .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-img h3 { margin: 0 0 0.4rem; }
.card-img p { font-size: 0.97rem; }
.card-img .app-icon {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover;
  margin: -3.2rem 0 0.9rem 1.5rem; border: 3px solid var(--card); box-shadow: var(--shadow);
  position: relative; background: #0f172a;
}

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.badge.live { background: rgba(74, 222, 128, 0.13); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.badge.beta { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid rgba(251, 191, 36, 0.35); }
.badge.wip { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(45, 212, 191, 0.35); }
.badge.soon { background: var(--wash-deep); color: var(--ink-soft); border: 1px solid var(--line); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 1rem; }
.tag {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--wash-deep); border: 1px solid var(--line);
  padding: 0.25rem 0.65rem; border-radius: 999px;
}

/* ---------- Section headers ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 2rem 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(251, 191, 36, 0.5);
}
.timeline .when { font-size: 0.85rem; font-weight: 700; color: var(--accent-deep); letter-spacing: 0.04em; }
.timeline h3 { margin: 0.2rem 0 0.3rem; }
.timeline p { margin: 0; font-size: 0.98rem; }

/* ---------- Feature rows (case study) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.flip .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem;
}
.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.check-list li { padding-left: 1.8rem; position: relative; font-weight: 500; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #152238 0%, #1b2c5e 60%, #0e4f4a 130%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: #fff; border-radius: 20px; padding: 3rem 2rem; text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(45, 212, 191, 0.08);
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #aeb9d4; max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #060b16; color: #8b96b0; padding: 3.5rem 0 2rem; margin-top: 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #aeb9d4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid #16203a; padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, #0d1530, var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 60ch; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-row.flip .feature-media { order: 0; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #0d1428; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.6rem; }
  .site-nav a.cta { margin: 0.5rem 0 0; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.4rem; }
  .cta-band { padding: 2.2rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Personal bio */
.bio {
  display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem;
  align-items: start; max-width: 960px; margin: 0 auto;
}
.bio-photo {
  width: 100%; border-radius: 18px; display: block;
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.bio-text p {
  color: var(--muted); line-height: 1.75; margin: 0 0 1.1rem;
  font-size: 1.02rem;
}
.bio-text p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .bio { grid-template-columns: 1fr; gap: 1.5rem; }
  .bio-photo { max-width: 260px; }
}
