/* TechStrategyLab — shared stylesheet (dark / electric-accent theme) */

:root {
  --bg: #090c14;
  --bg-elevated: #0e1220;
  --bg-card: #121726;
  --bg-card-hover: #161c30;
  --border: #232b3f;
  --border-strong: #333d58;
  --text: #edf1f9;
  --text-muted: #8b96ac;
  --accent: #00e5ff;
  --accent-2: #7c5cff;
  --accent-ink: #04141a;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.text-muted {
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 10px 30px -10px rgba(0, 229, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 14px 36px -8px rgba(0, 229, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 34px;
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a.active {
  color: var(--accent);
}

.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.55rem 1.2rem !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink) !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 6px 20px -8px rgba(0, 229, 255, 0.6);
}

.nav-cta:hover {
  text-decoration: none !important;
  filter: brightness(1.08);
}

.nav-cta.active {
  color: var(--accent-ink) !important;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-muted);
  padding: 2px 4px;
}

.lang-switch a.active {
  color: var(--accent);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .lang-switch {
    margin-top: 4px;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 229, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 25%, rgba(124, 92, 255, 0.18), transparent 45%),
    var(--bg);
  padding: 96px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  max-width: 800px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page header (non-home pages) */
.page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 92, 255, 0.16), transparent 45%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.page-header h1 {
  margin-bottom: 0.6rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-intro {
  max-width: 700px;
  margin: 0 0 2.5rem;
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(0, 229, 255, 0.35);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

/* Framework timeline */
.phase {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.phase-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phase-duration {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  margin-top: 4px;
}

.phase-body {
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
  padding-left: 24px;
}

.phase-body ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0;
}

.phase-body li {
  margin-bottom: 0.4rem;
}

.deliverable {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.deliverable strong {
  color: var(--accent);
}

@media (max-width: 640px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Lists with check marks */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.7rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* About page */
.credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credential-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.credential-list li:last-child {
  border-bottom: none;
}

.role-timeline {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-left: 4px;
}

.role-timeline .role {
  margin-bottom: 20px;
  position: relative;
}

.role-timeline .role::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}

.role-title {
  font-weight: 700;
  color: var(--text);
}

.role-years {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* Blog */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.post-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-muted);
  text-align: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 48px 0 28px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav h4 {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
