/* =========================================================
   Technopaths Entity — Premium Glass Design System
   Content-Driven Website Design Standard
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050510;
  --bg-deep: #03030a;
  --purple: #bf00ff;
  --purple-mid: #9b30ff;
  --purple-dim: #8a2be2;
  --purple-soft: rgba(191, 0, 255, 0.14);
  --purple-border: rgba(191, 0, 255, 0.28);
  --purple-border-strong: rgba(191, 0, 255, 0.55);
  --purple-glow: rgba(191, 0, 255, 0.35);
  --text: #f0f0ff;
  --text-soft: #cdcdfa;
  --text-muted: #9a96c0;
  --glass-bg: rgba(15, 8, 30, 0.48);
  --glass-bg-hover: rgba(25, 12, 50, 0.62);
  --glass-panel: rgba(12, 6, 28, 0.55);
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-pill: 999px;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Progressive reveal after typewriter */
body:not(.content-ready) .section-reveal {
  opacity: 0;
  pointer-events: none;
}
body.content-ready .section-reveal {
  opacity: 1;
  transition: opacity 0.85s ease 0.15s;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #0a0a22; }
::-webkit-scrollbar-thumb {
  background: var(--purple-dim);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ---------- Canvas ---------- */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bg-canvas { width: 100%; height: 100%; display: block; }

.content-layer { position: relative; z-index: 2; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(8, 4, 20, 0.52);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--purple-border);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.75rem;
  gap: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--purple) 55%, #c9a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 3.2px;
  color: var(--purple-dim);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1px;
}

#nav-links {
  display: flex;
  gap: 1.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#nav-links a {
  color: #e0e0ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s;
}
#nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
#nav-links a:hover { color: #fff; }
#nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
header.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7.5rem 1.5rem 5rem;
}

#hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 10%, var(--purple) 50%, #d4b0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px var(--purple-glow));
  margin-bottom: 0.85rem;
  min-height: 1.2em;
}

#hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--purple);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.35rem;
  min-height: 1.4em;
}

#hero-tagline {
  max-width: 540px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  margin-bottom: 2.4rem;
  min-height: 1.6em;
  line-height: 1.55;
}

#hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.25px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.28s, border-color 0.28s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7b2cbf 100%);
  color: #fff;
  box-shadow: 0 4px 22px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(191, 0, 255, 0.5);
}
.btn-ghost {
  background: rgba(191, 0, 255, 0.06);
  border-color: var(--purple-border);
  color: #e8e4ff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--purple-border-strong);
  background: rgba(191, 0, 255, 0.14);
  transform: translateY(-2px);
  color: #fff;
}

/* ---------- Sections ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}
section + section {
  border-top: 1px solid rgba(191, 0, 255, 0.08);
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.55rem;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, var(--purple), transparent);
  border-radius: 2px;
}
.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ---------- Glass system ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-radius: var(--radius-card);
  padding: 2rem 1.85rem;
  border: 1px solid var(--purple-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s, background 0.35s;
}
.glass-card:hover {
  transform: translateY(-7px);
  border-color: var(--purple-border-strong);
  background: var(--glass-bg-hover);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(191, 0, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-panel {
  background: var(--glass-panel);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-panel);
  padding: 2.4rem 2.2rem;
  border: 1px solid var(--purple-border);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- Services grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-soft);
  border: 1px solid rgba(191, 0, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple);
  margin-bottom: 1.2rem;
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.service-card:hover .card-icon {
  transform: scale(1.08) rotate(4deg);
  background: rgba(191, 0, 255, 0.22);
  box-shadow: 0 0 18px rgba(191, 0, 255, 0.4);
}
.service-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.2px;
}
.service-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- Projects ---------- */
.projects-intro-panel {
  margin-bottom: 2.25rem;
  text-align: center;
}
.projects-intro-panel p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
}

.project-meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}
.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
}
.status-badge.active {
  background: rgba(0, 220, 140, 0.12);
  color: #3dffb0;
  border: 1px solid rgba(0, 220, 140, 0.28);
}
.status-badge.dev {
  background: rgba(255, 180, 50, 0.1);
  color: #ffc14d;
  border: 1px solid rgba(255, 180, 50, 0.25);
}
.category-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(160, 160, 200, 0.22);
  border-radius: var(--radius-pill);
}
.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.project-card p {
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* ---------- Careers ---------- */
#careers-content h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
#careers-content h3 i { color: var(--purple); }
#careers-content p {
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}
.highlight-box {
  background: rgba(191, 0, 255, 0.1);
  border: 1px solid var(--purple-border);
  border-left: 3px solid var(--purple);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  margin: 1.3rem 0;
}
.highlight-box strong {
  display: block;
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.highlight-box p {
  color: #e0e0ff !important;
  margin: 0 !important;
  font-size: 0.95rem;
}
.careers-note {
  font-size: 0.92rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* ---------- About ---------- */
#about-intro {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #fff;
  margin-bottom: 2rem;
  max-width: 820px;
}
#about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.feature-tile {
  background: rgba(191, 0, 255, 0.07);
  border: 1px solid rgba(191, 0, 255, 0.2);
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  transition: border-color 0.3s, background 0.3s;
}
.feature-tile:hover {
  border-color: var(--purple-border-strong);
  background: rgba(191, 0, 255, 0.12);
}
.feature-tile h4 {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.3px;
}
.feature-tile p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}
#about-community {
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid var(--purple-border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
#about-community h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
#about-community h4 i { color: var(--purple); }
#about-community p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Terminal flourish */
.terminal-window {
  margin-top: 2.5rem;
  background: #080414;
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(191, 0, 255, 0.06);
  max-width: 680px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(25, 12, 45, 0.95);
  border-bottom: 1px solid var(--purple-border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.r { background: #ff5f56; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #27c93f; }
.terminal-title {
  margin-left: 0.7rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 1px;
}
#terminal {
  padding: 1.1rem 1.2rem 1.35rem;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  min-height: 170px;
  color: #c8c0e8;
}
.term-line.cmd { color: #6dffb8; }
.term-line.out { color: #a8a0c8; }
.term-line.out.ok { color: #5dffc0; }
.term-line.cursor { color: var(--purple); }
.blink { animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Contact ---------- */
.contact-panel { text-align: center; }
.contact-panel h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}
.contact-body {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 1.8rem;
  font-size: 1.02rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid var(--purple-border);
  color: #e8e4ff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.contact-link:hover {
  background: rgba(191, 0, 255, 0.18);
  border-color: var(--purple-border-strong);
  transform: translateY(-2px);
  color: #fff;
}
.contact-link i { color: var(--purple); font-size: 1.05rem; }
.contact-link.whatsapp i { color: #25d366; }

.social-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 0, 255, 0.12);
  border: 1px solid var(--purple-border);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.social-btn:hover {
  background: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 0 16px var(--purple-glow);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--purple-border);
  padding: 3rem 1.5rem 2.2rem;
  background: rgba(6, 3, 16, 0.75);
  backdrop-filter: blur(12px);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
#footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}
#footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 420px;
}
.footer-meta {
  text-align: right;
}
#footer-copy, #footer-legal {
  color: var(--text-muted);
  font-size: 0.85rem;
}
#footer-legal {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--purple-dim);
}
.footer-standard {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(191, 0, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  #about-features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .nav-container {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.3rem 1.25rem;
  }
  #nav-links {
    gap: 1rem;
    justify-content: center;
  }
  #nav-links a { font-size: 0.85rem; }
  header.hero { padding-top: 8.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  #about-features { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; align-items: center; }
  .glass-panel { padding: 1.75rem 1.4rem; }
  section { padding: 3.75rem 0; }
}

@media (max-width: 420px) {
  #hero-title { letter-spacing: 0.5px; }
  .btn { width: 100%; }
  #hero-ctas { width: 100%; flex-direction: column; }
}

/* ---------- Refined tech system ---------- */
:root {
  --bg: #07090d;
  --bg-deep: #05070a;
  --purple: #a78bfa;
  --purple-mid: #8b5cf6;
  --purple-dim: #8b79c9;
  --purple-soft: rgba(167, 139, 250, 0.1);
  --purple-border: rgba(167, 139, 250, 0.18);
  --purple-border-strong: rgba(167, 139, 250, 0.42);
  --purple-glow: rgba(124, 92, 246, 0.22);
  --text: #f3f5fa;
  --text-soft: #c1c8d5;
  --text-muted: #858fa1;
  --glass-bg: rgba(15, 19, 28, 0.72);
  --glass-bg-hover: rgba(21, 26, 38, 0.9);
  --glass-panel: rgba(13, 17, 25, 0.82);
  --max: 1120px;
}

html {
  scroll-padding-top: 6rem;
  scrollbar-color: #7161a0 #090b10;
}

body {
  background:
    radial-gradient(ellipse at 78% 12%, rgba(86, 66, 156, 0.13), transparent 34rem),
    radial-gradient(ellipse at 12% 54%, rgba(33, 99, 121, 0.08), transparent 32rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(159, 173, 203, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 173, 203, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

nav {
  padding: 0.75rem 0;
  background: rgba(7, 9, 13, 0.78);
  border-bottom-color: rgba(191, 203, 225, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 1.3px;
}

.brand-sub {
  color: #a78bfa;
  letter-spacing: 2.7px;
}

#nav-links a {
  color: #b6becc;
  font-size: 0.84rem;
}

#nav-links a:hover,
#nav-links a:focus-visible {
  color: #fff;
}

#nav-links a::after {
  background: linear-gradient(90deg, #a78bfa, #59d8d0);
}

.nav-toggle { display: none; }

header.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(850px, 100svh);
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem 1.75rem 5rem;
  align-items: flex-start;
  text-align: left;
}

header.hero::before {
  content: "INDEPENDENT DIGITAL STUDIO  /  SOUTH AFRICA";
  margin-bottom: 1.35rem;
  color: #9aa8b8;
  font: 600 0.69rem/1.4 var(--font-body);
  letter-spacing: 2.1px;
}

header.hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 3%;
  width: min(38vw, 440px);
  aspect-ratio: 1;
  content: "";
  transform: translateY(-47%);
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.13), transparent 5%, transparent 28%, rgba(89, 216, 208, 0.06) 29%, transparent 30%),
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(167, 139, 250, 0.18) 48.2%, transparent 48.7%),
    radial-gradient(circle at 50% 50%, transparent 66%, rgba(89, 216, 208, 0.16) 66.2%, transparent 66.6%),
    radial-gradient(circle at 50% 50%, rgba(89, 216, 208, 0.08), transparent 70%);
  box-shadow: inset 0 0 70px rgba(167, 139, 250, 0.05), 0 0 100px rgba(89, 216, 208, 0.05);
}

header.hero::after {
  animation: orbit-pulse 9s ease-in-out infinite alternate;
}

#hero-title {
  max-width: 780px;
  font-family: var(--font-body);
  font-size: clamp(3.2rem, 8.2vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
  background: none;
  color: #fff;
  -webkit-text-fill-color: initial;
  filter: none;
  margin-bottom: 1.2rem;
}

#hero-title > span {
  display: block;
  background: linear-gradient(112deg, #fff 15%, #d7d2ef 55%, #9a8ad3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#hero-subtitle {
  color: #8ee4dc;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 1.1rem;
}

#hero-tagline {
  max-width: 510px;
  color: #adb7c6;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

#hero-ctas { justify-content: flex-start; }

.btn {
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 8px;
}

.btn-primary {
  color: #090b10;
  background: linear-gradient(115deg, #a78bfa, #8ee4dc);
  box-shadow: 0 8px 28px rgba(136, 117, 226, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(136, 117, 226, 0.34);
}

.btn-ghost {
  color: #e2e7ef;
  border-color: rgba(190, 202, 220, 0.2);
  background: rgba(18, 22, 31, 0.65);
}

.container { max-width: var(--max); }

section {
  padding: 5.5rem 0;
  scroll-margin-top: 5.5rem;
}

section + section {
  border-top-color: rgba(191, 203, 225, 0.09);
}

.section-head {
  margin-bottom: 2.2rem;
  text-align: left;
}

.section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.055em;
}

.section-head h2::after {
  width: 42px;
  height: 2px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, #a78bfa, #59d8d0);
}

.glass-card,
.glass-panel {
  border-color: rgba(187, 199, 222, 0.12);
  background: linear-gradient(145deg, rgba(20, 25, 36, 0.86), rgba(11, 14, 21, 0.84));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.8rem;
}

.glass-card::before {
  position: absolute;
  inset: 0 auto auto 1.8rem;
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #a78bfa, #59d8d0);
  opacity: 0.75;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.34);
  background: linear-gradient(145deg, rgba(25, 30, 43, 0.95), rgba(13, 17, 25, 0.92));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3), 0 0 28px rgba(126, 111, 190, 0.08);
}

.card-icon {
  color: #8ee4dc !important;
  background: rgba(89, 216, 208, 0.08) !important;
  border-color: rgba(89, 216, 208, 0.16) !important;
  border-radius: 12px !important;
}

.service-card h3,
.project-card h3 { letter-spacing: -0.025em; }

.projects-intro-panel {
  text-align: left;
  border-radius: 12px;
}

.projects-intro-panel p { margin: 0; }

.feature-tile,
#about-community,
.highlight-box {
  border-color: rgba(167, 139, 250, 0.16);
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.055);
}

.feature-tile h4,
#about-community h4 i,
#careers-content h3 i { color: #a99af1; }

.terminal-window {
  border-color: rgba(89, 216, 208, 0.2);
  border-radius: 12px;
  background: #080d12;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.terminal-bar {
  background: rgba(17, 25, 31, 0.95);
  border-bottom-color: rgba(89, 216, 208, 0.16);
  min-width: 0;
}

.terminal-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

#terminal {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.term-line {
  min-width: 0;
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 1.5vw, 0.96rem);
  white-space: normal;
  overflow-wrap: anywhere;
}

.term-line.cmd {
  color: #8ee4dc;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.84em;
}
.term-line.out { color: #c1c8d5; }
.term-line.out.ok { color: #8ee4dc; }
.term-line.close { color: #d7d2ef; font-weight: 600; }

@media (max-width: 480px) {
  .terminal-bar { padding: 0.65rem 0.8rem; }
  .terminal-title { font-size: 0.62rem; letter-spacing: 0.06em; }
  #terminal { gap: 0.55rem; }
}

.contact-link,
.social-btn {
  border-color: rgba(187, 199, 222, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.contact-link i { color: #a99af1; }

footer {
  border-top-color: rgba(191, 203, 225, 0.11);
  background: rgba(6, 8, 12, 0.86);
}

@keyframes orbit-pulse {
  from { opacity: 0.62; scale: 0.97; }
  to { opacity: 1; scale: 1.03; }
}

@media (max-width: 720px) {
  nav { padding: 0.7rem 0; }

  .nav-container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(187, 199, 222, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: #e8eaf0;
    transition: transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  #nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1.25rem;
    left: 1.25rem;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid rgba(187, 199, 222, 0.14);
    border-radius: 14px;
    background: rgba(10, 13, 19, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  #nav-links.is-open { display: flex; }

  #nav-links a {
    padding: 0.8rem 0.85rem;
    border-radius: 8px;
  }

  #nav-links a:hover { background: rgba(167, 139, 250, 0.08); }
  #nav-links a::after { display: none; }

  header.hero {
    min-height: 90svh;
    padding: 8rem 1.25rem 5rem;
    justify-content: center;
  }

  header.hero::before {
    max-width: 250px;
    font-size: 0.61rem;
    letter-spacing: 1.6px;
  }

  header.hero::after {
    top: 22%;
    right: -24%;
    width: min(76vw, 350px);
    transform: translateY(-10%);
    opacity: 0.65;
  }

  #hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 5rem);
  }

  #hero-subtitle { letter-spacing: 0.2em; }
  .section-head { text-align: left; }
  .section-head h2::after { margin-left: 0; }
}

@media (max-width: 420px) {
  header.hero { min-height: 84svh; }
  #hero-ctas { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up { opacity: 1; transform: none; }
}
