/* Multiplexed Solutions — styles.css
   Single-page responsive site. No framework, no build step. */

:root {
  --bg:        #0b1020;
  --bg-alt:    #0f162c;
  --surface:   #141d38;
  --border:    #26304f;
  --text:      #e8ecf7;
  --muted:     #9aa6c4;
  --accent:    #4da3ff;
  --accent-2:  #29e0c4;
  --accent-grad: linear-gradient(120deg, #4da3ff, #29e0c4);
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--accent-2);
  margin: 0 0 .8rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #001; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 34px; width: auto; display: block;
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav-menu a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #04121f; box-shadow: 0 8px 24px rgba(77,163,255,.25); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; font-family: "JetBrains Mono", monospace; }
/* Contact button: stable width so the "Copied" swap doesn't jump; confirm state. */
#contact-link { min-width: 22ch; text-align: center; }
#contact-link.copied { background: var(--accent-2); color: #04121f; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(77,163,255,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(41,224,196,.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: clamp(60px, 12vw, 130px) 24px clamp(56px, 10vw, 110px); max-width: 860px; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-icon {
  font-size: 1.4rem; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(77,163,255,.12); color: var(--accent); margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
}
.stat-num {
  display: block; font-family: "JetBrains Mono", monospace; font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 500; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1;
}
.stat-label { color: var(--muted); font-size: .95rem; display: block; margin-top: 10px; }
.experience-copy { max-width: 70ch; color: var(--muted); font-size: 1.08rem; }
.experience-copy strong { color: var(--text); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: .98rem;
}
.about-list span { color: var(--accent-2); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 640px; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact-note { color: var(--muted); font-size: .9rem; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.colophon {
  max-width: 62ch; margin: 0 auto; padding: 26px 24px 0; text-align: center;
  color: var(--muted); font-size: .9rem; line-height: 1.7;
}
.colophon-mark {
  color: var(--accent-2); font-family: "JetBrains Mono", monospace; margin-right: 6px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px 24px; color: var(--muted); font-size: .9rem;
}
.to-top { color: var(--muted); }
.to-top:hover { color: var(--text); text-decoration: none; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 340px; }
  .nav-menu li { border-top: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 16px 24px; }
  .nav-cta { border-radius: 0; border: 0; background: transparent; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
