/* ============================================
   VeloPsy — Aether Design System
   Deep Tech Teal + Electric Violet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --teal: #0D7377;
  --teal-deep: #095558;
  --teal-light: #14919B;
  --teal-glow: rgba(13, 115, 119, 0.35);
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --violet-deep: #5B21B6;
  --violet-glow: rgba(124, 58, 237, 0.3);

  --bg-primary: #06080E;
  --bg-secondary: #0B0E18;
  --bg-tertiary: #10142A;

  --glass-bg: rgba(15, 20, 40, 0.55);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(20, 28, 55, 0.65);
  --glass-highlight: rgba(255, 255, 255, 0.04);

  --text-primary: #E2E4EA;
  --text-secondary: #7A7F9A;
  --text-muted: #4E5269;
  --text-accent: #14919B;

  --radius-soft: 1rem;
  --radius-full: 9999px;

  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}

a:hover {
  color: var(--violet-light);
}

img {
  max-width: 100%;
  border-radius: var(--radius-soft);
}

::selection {
  background: var(--teal);
  color: #fff;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--violet) 50%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  margin: 1.2rem auto 0;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.4) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(1.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  padding: 2rem;
  transition: all 0.5s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-soft);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--teal-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--violet-glow);
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--violet-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--teal);
}

.btn .arrow {
  transition: transform 0.3s var(--transition-smooth);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.7rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.nav-logo .velo {
  color: var(--teal-light);
}

.nav-logo .psy {
  color: var(--violet-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  border-radius: var(--radius-full);
  transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, var(--teal-glow) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, var(--violet-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- Sub-page Hero (smaller) --- */
.hero-sub {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-sub .hero-gradient {
  opacity: 0.6;
}

.hero-sub .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-sub .hero-content p {
  margin: 1rem auto 0;
}

/* --- Mission Section --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-visual {
  position: relative;
}

.mission-stat-ring {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mission-stat-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    var(--teal) 0deg,
    var(--violet) 120deg,
    transparent 120deg
  );
  z-index: -1;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.mission-stat-ring .big-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-light), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-stat-ring .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  max-width: 160px;
}

.mission-text h2 {
  margin-bottom: 1.5rem;
}

.mission-text p {
  margin-bottom: 1.2rem;
}

.mission-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
}

.highlight-item p {
  font-size: 0.95rem;
}

.highlight-item strong {
  color: var(--text-primary);
}

/* --- Technology Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-card {
  padding: 2.5rem 2rem;
}

.tech-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13,115,119,0.15), rgba(124,58,237,0.1));
  border: 1px solid rgba(13,115,119,0.2);
  border-radius: var(--radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--transition-smooth);
}

.tech-card .card-icon svg {
  width: 26px;
  height: 26px;
}

.tech-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(13,115,119,0.25), rgba(124,58,237,0.2));
  box-shadow: 0 0 25px var(--teal-glow);
}

.tech-card h3 {
  margin-bottom: 0.8rem;
}

.tech-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.tech-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Research Section --- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.research-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.research-card .card-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(13, 115, 119, 0.12);
  border: 1px solid rgba(13, 115, 119, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  margin-bottom: 1.2rem;
}

.research-card .card-tag.violet {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--violet-light);
}

.research-card h3 {
  margin-bottom: 0.8rem;
}

.research-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.research-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-light);
}

.research-card .card-link .arrow {
  transition: transform 0.3s var(--transition-smooth);
}

.research-card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* --- Impact Section --- */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-number.teal {
  color: var(--teal-light);
}

.stat-card .stat-number.violet {
  color: var(--violet-light);
}

.stat-card .stat-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.impact-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.impact-narrative .glass-card {
  padding: 3rem;
}

.impact-narrative h3 {
  margin-bottom: 1rem;
}

.impact-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.impact-list li .check {
  color: var(--teal-light);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Careers Section --- */
.careers-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.careers-content h2 {
  margin-bottom: 1rem;
}

.careers-content > p {
  margin: 0 auto 2.5rem;
}

.careers-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.perk-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.perk-card .perk-icon {
  margin-bottom: 1rem;
  color: var(--teal-light);
}

.perk-card .perk-icon svg {
  width: 32px;
  height: 32px;
}

.perk-card h4 {
  margin-bottom: 0.5rem;
}

.perk-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--teal-light);
  border-color: var(--teal);
  box-shadow: 0 0 15px var(--teal-glow);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Background Decorations --- */
.bg-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-teal {
  background: var(--teal-glow);
}

.bg-orb-violet {
  background: var(--violet-glow);
}

/* --- Detail Page Styles --- */
.detail-section {
  padding: 5rem 0;
}

.detail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.detail-card {
  padding: 2.5rem 2rem;
}

.detail-card h3 {
  margin-bottom: 0.8rem;
}

.detail-card p {
  font-size: 0.95rem;
}

.detail-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13,115,119,0.15), rgba(124,58,237,0.1));
  border: 1px solid rgba(13,115,119,0.2);
  border-radius: var(--radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}

.detail-card .card-icon svg {
  width: 26px;
  height: 26px;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--violet), transparent);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 15px var(--teal-glow);
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.95rem;
}

/* --- Job Cards (Careers Page) --- */
.job-card {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.job-info h3 {
  margin-bottom: 0.3rem;
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.job-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(13, 115, 119, 0.1);
  border: 1px solid rgba(13, 115, 119, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal-light);
}

.job-tag.violet {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--violet-light);
}

/* --- Architecture Diagram --- */
.arch-diagram {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  padding: 3rem;
  margin: 2rem 0;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-layer {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.arch-layer-label {
  min-width: 140px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
}

.arch-components {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.arch-comp {
  padding: 0.4rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.arch-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* --- Values Grid (Careers) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
}

.value-card .value-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(13, 115, 119, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  position: relative;
}

.cta-section .cta-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-section .cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--violet), transparent);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Publications Table --- */
.pub-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.pub-table th {
  text-align: left;
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.pub-table td {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--glass-bg);
}

.pub-table tr td:first-child {
  border-radius: var(--radius-soft) 0 0 var(--radius-soft);
}

.pub-table tr td:last-child {
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

.pub-table .pub-title {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    background: rgba(6, 8, 14, 0.96);
    backdrop-filter: blur(24px);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.5s var(--transition-smooth);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .mission-grid,
  .impact-narrative,
  .detail-grid-2 {
    grid-template-columns: 1fr;
  }

  .tech-grid,
  .research-grid,
  .careers-perks,
  .values-grid,
  .detail-grid-3 {
    grid-template-columns: 1fr;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 5rem 0;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .arch-layer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }
}
