/* ─────────────────────────────────────────────────────────────
   Soliton Corp — Shared Styles
   Theme: Black / Green
───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #070707;
  --surface:   #0f0f0f;
  --surface2:  #171717;
  --border:    #1e1e1e;
  --green:     #22C55E;
  --green-dim: rgba(34, 197, 94, 0.08);
  --green-mid: rgba(34, 197, 94, 0.18);
  --text:      #E8E8E8;
  --muted:     #6A6A6A;
  --subtle:    #3A3A3A;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── Layout ──────────────────────────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
section { padding: 96px 0; }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
}

/* ── Navigation ──────────────────────────────────────────── */

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; padding: 0 48px;
  display: flex; align-items: center;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#nav.scrolled { border-color: var(--border); }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-right: auto; flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-right: 24px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li.has-dropdown.open > a { color: var(--text); }

.chevron {
  font-size: 9px; line-height: 1; margin-top: 1px;
  opacity: 0.4; transition: transform 0.2s, opacity 0.2s;
}
.has-dropdown.open .chevron { transform: rotate(180deg); opacity: 0.7; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 210px;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255, 255, 255, 0.03);
}
.has-dropdown.open .dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 13px; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.dropdown a:hover { color: var(--text); background: var(--surface2); }
.dropdown-sep { height: 1px; background: var(--border); margin: 5px 0; }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 7px;
  background: var(--green); color: #000;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  background: none; margin-left: 12px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); border-radius: 2px; transition: all 0.25s;
}

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; inset: 60px 0 0;
  background: var(--bg); padding: 24px 20px;
  flex-direction: column; z-index: 199;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile > a {
  padding: 16px 0; font-size: 17px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.nav-mobile > a:last-of-type { border-bottom: none; }
.nav-mobile .nav-cta {
  margin-top: 24px; width: fit-content;
  padding: 11px 24px; font-size: 15px;
}

@media (max-width: 880px) {
  .nav-links, #nav > .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #nav { padding: 0 20px; }
}

/* ── Page hero (sub-pages) ───────────────────────────────── */

.page-hero { padding: 128px 0 72px; border-bottom: 1px solid var(--border); }
.page-tag {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 20px;
}
.page-h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1;
  color: var(--text); margin-bottom: 18px;
}
.page-sub {
  font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 580px;
}

/* ── Typography helpers ─────────────────────────────────── */

.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  display: block; margin-bottom: 14px;
}
.section-h2 {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 800;
  letter-spacing: -0.032em; line-height: 1.15; color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.18s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--subtle); background: var(--surface); transform: translateY(-1px); }

/* ── Stat bar ────────────────────────────────────────────── */

.stat-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--surface);
}
.stat-item { padding: 36px 40px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.045em; color: var(--text);
  line-height: 1; margin-bottom: 10px;
}
.stat-value .green { color: var(--green); }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (max-width: 640px) {
  .stat-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .stat-item:last-child { border-bottom: none; }
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: var(--green); opacity: 0; transition: opacity 0.25s;
}
.card:hover { border-color: rgba(34, 197, 94, 0.25); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── Grids ──────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

@media (max-width: 740px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Spec table ──────────────────────────────────────────── */

.spec-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-row {
  display: grid; grid-template-columns: 120px 195px 1fr;
  border-bottom: 1px solid var(--border); transition: background 0.18s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--surface2); }
.spec-cell {
  padding: 20px 22px; border-right: 1px solid var(--border);
  display: flex; align-items: center; font-size: 13px; line-height: 1.65;
}
.spec-cell:last-child { border-right: none; }
.spec-layer { color: var(--green); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.spec-component { color: var(--text); font-weight: 600; font-family: 'SF Mono', 'Fira Code', monospace; }
.spec-desc { color: var(--muted); }

@media (max-width: 700px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .spec-cell:last-child { border-bottom: none; }
  .spec-row { border-bottom: 2px solid var(--border); }
}

/* ── Team ────────────────────────────────────────────────── */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; } }

.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px 32px; text-align: center;
  transition: border-color 0.28s, transform 0.28s;
}
.team-card:hover { border-color: rgba(34, 197, 94, 0.22); transform: translateY(-3px); }
.team-photo {
  width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 24px;
  border: 1.5px solid var(--border); background: var(--surface2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-role { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.team-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.015em; margin-bottom: 4px; }
.team-uni { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.team-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── Contact ─────────────────────────────────────────────── */

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 48px 40px; transition: border-color 0.25s;
}
.contact-card:hover { border-color: rgba(34, 197, 94, 0.22); }
.contact-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 21px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.contact-card p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 32px; }

/* ── CTA strip ───────────────────────────────────────────── */

.cta-strip {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 80px 0; text-align: center;
}
.cta-strip h2 {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 14px;
}
.cta-strip p { font-size: 16px; color: var(--muted); max-width: 440px; margin: 0 auto 32px; line-height: 1.65; }
.cta-actions { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Penn badge ──────────────────────────────────────────── */

.penn-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(1, 31, 91, 0.1); border: 1px solid rgba(1, 31, 91, 0.22);
  font-size: 12px; font-weight: 600; color: #5b8df0; letter-spacing: 0.03em;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 48px; border-top: 1px solid var(--border);
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text); margin-right: auto;
}
.footer-note { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  footer { padding: 24px 20px; gap: 10px; }
  .footer-logo { margin-right: 0; }
  .footer-note { order: 3; width: 100%; }
}

/* ── Animations ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
