/* ============================================================
   LIQUID INFO — COMPLETE STYLESHEET
   ============================================================ */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* 2. CSS CUSTOM PROPERTIES */
:root {
  --teal:        #475B63;
  --teal-mid:    #3a4f57;
  --teal-deep:   #2c3b42;
  --teal-light:  #01BCD9;
  --orange:      #FF9B42;
  --orange-hover:#f08a30;
  --warm-grey:   #475B63;
  --light:       #2E2C2F;
  --dark-brown:  #2E2C2F;
  --near-black:  #FAFAFF;
  --white:       #2E2C2F;
  --off-white:   #eef0f4;
  --surface:     #ffffff;
  --surface-2:   #eef0f4;
  --border:      rgba(71,91,99,0.12);
  --border-teal: rgba(71,91,99,0.2);

  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.2);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.3);

  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* 3. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--near-black);
  color: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--warm-grey); line-height: 1.75; }

.mono { font-family: var(--font-mono); }

/* 5. LAYOUT UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 100px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, #01BCD9 0%, #01BCD9 40%, #a8e6de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 6. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--orange);
  color: #FAFAFF;
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,155,66,0.4); }

.btn-outline {
  border: 1.5px solid rgba(71,91,99,0.35);
  color: var(--light);
  background: transparent;
}
.btn-outline:hover { border-color: var(--teal); background: rgba(71,91,99,0.06); transform: translateY(-1px); }

.btn-ghost {
  color: var(--light);
  background: rgba(71,91,99,0.07);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(71,91,99,0.13); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

/* 7. NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250,250,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(71,91,99,0.1);
  padding: 0.85rem 0;
  box-shadow: 0 4px 24px rgba(71,91,99,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: brightness(0); /* dark logo — hero is now light */
}

.nav-brand-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2E2C2F;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(46,44,47,0.72);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: #2E2C2F; background: rgba(71,91,99,0.07); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(71,91,99,0.08);
  border: 1px solid rgba(71,91,99,0.18);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: rgba(46,44,47,0.45);
  transition: all var(--transition);
  margin-left: 1rem;
}
.lang-toggle:hover { background: rgba(71,91,99,0.14); }
.lang-toggle .lt-sep { color: rgba(46,44,47,0.2); }
.lang-toggle .lt-active { color: #2E2C2F; }

/* Mobile menu toggle */
.nav-mobile-menu {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2E2C2F;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 8. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right,
      rgba(250,250,255,1)    0%,
      rgba(250,250,255,0.92) 35%,
      rgba(250,250,255,0.5)  60%,
      rgba(250,250,255,0)    100%
    ),
    url('../img/hero2.png') right center / cover no-repeat,
    #FAFAFF;
  padding: 120px 0 80px;
}

/* Animated grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71,91,99,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,91,99,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-radial-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,155,66,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-radial-2 {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,155,66,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,155,66,0.15);
  border: 1px solid rgba(255,155,66,0.35);
  color: #FF9B42;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--warm-grey);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--warm-grey);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Animated SVG Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual-inner {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(71,91,99,0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring-1 { width: 380px; height: 380px; border-color: rgba(1,188,217,0.45); animation: ringRotate 30s linear infinite, ringGlow 5s ease-in-out infinite 0s; }
.hero-ring-2 { width: 280px; height: 280px; border-color: rgba(1,188,217,0.6); animation: ringRotate 20s linear infinite reverse, ringGlow 5s ease-in-out infinite 1.7s; }
.hero-ring-3 { width: 180px; height: 180px; border-color: rgba(1,188,217,0.8); border-width: 2px; animation: ringRotate 12s linear infinite, ringGlow 5s ease-in-out infinite 3.3s; }

@keyframes ringRotate {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}

@keyframes ringGlow {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 4px rgba(1,188,217,0.4)); }
  50%       { opacity: 1;   filter: drop-shadow(0 0 16px rgba(1,188,217,0.9)) drop-shadow(0 0 32px rgba(1,188,217,0.4)); }
}

.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(1,188,217,0.15), 0 0 40px rgba(1,188,217,0.3);
}

.hero-center-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(68%) sepia(52%) saturate(752%) hue-rotate(333deg) brightness(105%);
}

/* Orbit wrappers — zero-size div anchored to centre, child dot offset by radius */
.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.hero-orbit-r1 { --orbit-r: 190px; }
.hero-orbit-r2 { --orbit-r: 140px; }
.hero-orbit-r3 { --orbit-r: 90px;  }

@keyframes orbitCW  { to { transform: rotate(360deg);  } }
@keyframes orbitCCW { to { transform: rotate(-360deg); } }

.hero-orbit-r1.hero-orbit-cw  { animation: orbitCW  18s linear infinite; }
.hero-orbit-r1.hero-orbit-ccw { animation: orbitCCW 18s linear infinite; animation-delay: -9s; }
.hero-orbit-r2.hero-orbit-cw  { animation: orbitCW  12s linear infinite; animation-delay: -3s; }
.hero-orbit-r2.hero-orbit-ccw { animation: orbitCCW 12s linear infinite; animation-delay: -6s; }
.hero-orbit-r3.hero-orbit-cw  { animation: orbitCW   7s linear infinite; }
.hero-orbit-r3.hero-orbit-ccw { animation: orbitCCW  7s linear infinite; animation-delay: -3.5s; }

/* Data nodes — positioned at orbit radius via CSS custom property from parent */
.hero-node {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -5px;
  left: -5px;
  transform: translateX(var(--orbit-r));
  background: var(--teal-light);
  border-radius: 50%;
  border: 2px solid rgba(1,188,217,0.6);
  box-shadow: 0 0 12px rgba(1,188,217,0.5);
  animation: nodePulse 3s ease-in-out infinite;
}

.hero-node::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(1,188,217,0.7);
  animation: nodeRipple 3s ease-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(1,188,217,0.5); opacity: 0.75; }
  50%       { box-shadow: 0 0 18px rgba(1,188,217,0.95), 0 0 32px rgba(1,188,217,0.3); opacity: 1; }
}

@keyframes nodePulseOrange {
  0%, 100% { box-shadow: 0 0 8px rgba(255,155,66,0.5); opacity: 0.75; }
  50%       { box-shadow: 0 0 18px rgba(255,155,66,0.95), 0 0 32px rgba(255,155,66,0.3); opacity: 1; }
}

@keyframes nodeRipple {
  0%   { transform: translateX(var(--orbit-r)) scale(1);   opacity: 0.7; }
  100% { transform: translateX(var(--orbit-r)) scale(2.8); opacity: 0; }
}

/* Orange accent dots — children 6 and 8 */
.hero-visual-inner > div:nth-child(6) .hero-node,
.hero-visual-inner > div:nth-child(8) .hero-node {
  background: var(--orange);
  border-color: rgba(255,155,66,0.6);
  box-shadow: 0 0 12px rgba(255,155,66,0.5);
  animation-name: nodePulseOrange;
}
.hero-visual-inner > div:nth-child(6) .hero-node::after,
.hero-visual-inner > div:nth-child(8) .hero-node::after {
  border-color: rgba(255,155,66,0.7);
}

/* Stagger pulse/ripple per dot */
.hero-visual-inner > div:nth-child(4) .hero-node        { animation-delay: 0s; }
.hero-visual-inner > div:nth-child(4) .hero-node::after { animation-delay: 0s; }
.hero-visual-inner > div:nth-child(5) .hero-node        { animation-delay: 0.5s; }
.hero-visual-inner > div:nth-child(5) .hero-node::after { animation-delay: 0.5s; }
.hero-visual-inner > div:nth-child(6) .hero-node        { animation-delay: 1s; }
.hero-visual-inner > div:nth-child(6) .hero-node::after { animation-delay: 1s; }
.hero-visual-inner > div:nth-child(7) .hero-node        { animation-delay: 1.5s; }
.hero-visual-inner > div:nth-child(7) .hero-node::after { animation-delay: 1.5s; }
.hero-visual-inner > div:nth-child(8) .hero-node        { animation-delay: 2s; }
.hero-visual-inner > div:nth-child(8) .hero-node::after { animation-delay: 2s; }
.hero-visual-inner > div:nth-child(9) .hero-node        { animation-delay: 2.5s; }
.hero-visual-inner > div:nth-child(9) .hero-node::after { animation-delay: 2.5s; }

/* 9. ABOUT SECTION */
.about {
  background: var(--near-black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --white: #FAFAFF;
  --light: #FAFAFF;
  --warm-grey: rgba(250,250,255,0.7);
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-stat-big {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.about-stat-label {
  font-size: 0.85rem;
  color: rgba(250,250,255,0.7);
  letter-spacing: 0.05em;
}

.about-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-mini-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.about-mini-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,155,66,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #FF9B42;
}

.about-mini-card h4 {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.about-mini-card p {
  font-size: 0.75rem;
  color: rgba(250,250,255,0.6);
  line-height: 1.4;
}

.about-text h2 { color: var(--white); margin-bottom: 1.25rem; }
.about-text > p { margin-bottom: 1.25rem; }
.about-text > p:last-of-type { margin-bottom: 2rem; }

.about-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.5rem; }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(71,91,99,0.1);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-feature:hover { background: rgba(71,91,99,0.18); border-color: rgba(71,91,99,0.6); transform: translateX(4px); }

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(71,91,99,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  flex-shrink: 0;
}

.about-feature-text h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 0.3rem; }
.about-feature-text p { font-size: 0.82rem; color: var(--warm-grey); margin: 0; line-height: 1.5; }

/* 10. TECHNOLOGY SECTION */
.technology {
  background: var(--surface);
}

.technology-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.technology-header h2 { color: var(--white); margin-bottom: 1rem; }
.technology-header p { font-size: 1rem; }

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

.tech-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.tech-card:hover { border-color: rgba(71,91,99,0.5); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tech-card:hover::before { transform: scaleX(1); }

.tech-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(71,91,99,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.tech-card:hover .tech-card-icon { background: var(--teal); color: #FAFAFF; }

.tech-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.75rem; }
.tech-card p { font-size: 0.875rem; color: var(--warm-grey); line-height: 1.6; margin: 0; }

/* 11. RESEARCH SECTION */
.research {
  background: var(--teal-deep);
  position: relative;
  overflow: hidden;
  /* override vars so text stays white on dark teal bg */
  --white: #FAFAFF;
  --light: #FAFAFF;
  --warm-grey: rgba(250,250,255,0.6);
}

.research::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(71,91,99,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.research-left h2 { color: var(--white); margin-bottom: 0.75rem; }
.research-left > p { margin-bottom: 2.5rem; }

.research-phases { display: flex; flex-direction: column; gap: 0; }

.phase {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.phase:last-child { border-bottom: none; }

.phase-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(250,250,255,0.4);
  padding-top: 0.2rem;
  flex-shrink: 0;
  width: 24px;
}

.phase-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.phase-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(250,250,255,0.2);
  border: 2px solid rgba(250,250,255,0.3);
  flex-shrink: 0;
  transition: var(--transition);
  margin-top: 0.15rem;
}

.phase.active .phase-dot-inner {
  background: var(--teal-light);
  border-color: var(--teal-light);
  box-shadow: 0 0 12px rgba(255,155,66,0.6);
}

.phase-content h4 { color: var(--white); margin-bottom: 0.35rem; font-size: 1rem; }
.phase-content p { font-size: 0.84rem; color: rgba(250,250,255,0.6); margin: 0; line-height: 1.5; }

.phase-badge {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active { background: rgba(1,188,217,0.15); color: #01BCD9; border: 1px solid rgba(1,188,217,0.3); }
.badge-planned { background: rgba(138,154,160,0.15); color: var(--warm-grey); border: 1px solid rgba(138,154,160,0.3); }
.badge-complete { background: rgba(71,91,99,0.3); color: #01BCD9; border: 1px solid rgba(71,91,99,0.5); }

.research-status-card {
  background: rgba(14,14,12,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.status-header { margin-bottom: 2rem; }
.status-header h3 { color: var(--white); margin-bottom: 0.4rem; }
.status-header p { font-size: 0.85rem; color: rgba(250,250,255,0.5); margin: 0; }

.status-items { display: flex; flex-direction: column; gap: 1rem; }

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
}

.status-item-left { display: flex; align-items: center; gap: 0.75rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #4caf7d; box-shadow: 0 0 8px rgba(76,175,125,0.6); }
.dot-teal { background: var(--teal-light); box-shadow: 0 0 8px rgba(255,155,66,0.5); }
.dot-orange { background: #FF9B42; box-shadow: 0 0 8px rgba(224,122,74,0.5); }
.dot-grey { background: var(--warm-grey); }

.status-item-label { font-size: 0.875rem; color: rgba(250,250,255,0.8); }

.progress-bar-wrap { width: 80px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); }

/* 12. PROTOTYPE SECTION */
.prototype-section {
  background: var(--near-black);
}

.prototype-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.prototype-header h2 { color: var(--white); margin-bottom: 1rem; }

.prototype-viewer {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(255,155,66,0.08);
}

.prototype-iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
  background: #000;
}

.prototype-hint {
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--warm-grey);
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.4);
}

.proto-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.proto-spec-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.proto-spec-card:hover {
  border-color: rgba(255,155,66,0.3);
  transform: translateY(-3px);
}

.proto-spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,155,66,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.proto-spec-card h4 {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.proto-spec-card p {
  font-size: 0.82rem;
  color: var(--warm-grey);
  line-height: 1.6;
  margin: 0;
}

.proto-footnote {
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(250,250,255,0.4);
  letter-spacing: 0.04em;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .proto-specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .prototype-iframe { height: 380px; }
  .proto-specs { grid-template-columns: 1fr; }
}

/* 13. PARTNERS SECTION */
.partners {
  background: var(--near-black);
}

.partners-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.partners-header h2 { color: var(--white); margin-bottom: 1rem; }

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

.partner-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover { border-color: rgba(71,91,99,0.5); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.partner-icon {
  width: 64px;
  height: 64px;
  background: rgba(71,91,99,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--teal-light);
  border: 1px solid rgba(71,91,99,0.3);
}

.partner-card h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.1rem; }
.partner-role { font-size: 0.78rem; font-family: var(--font-mono); color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.partner-card p { font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* 13. BLOG PREVIEW */
.blog {
  background: var(--surface);
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.blog-header h2 { color: var(--white); }

.blog-link {
  font-size: 0.875rem;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  font-weight: 500;
}

.blog-link:hover { color: var(--white); gap: 0.7rem; }

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

/* Blog Cards */
.blog-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { border-color: rgba(71,91,99,0.45); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.06); }

.blog-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(71,91,99,0.18) 0%, transparent 100%);
}

.blog-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

.cat-research    { background: rgba(71,91,99,0.3); color: #01BCD9; }
.cat-technology  { background: rgba(255,155,66,0.2); color: #FF9B42; }
.cat-development { background: rgba(54,41,27,0.4); color: #c4a97a; }
.cat-applications{ background: rgba(60,90,50,0.3); color: #90c878; }
.cat-insights    { background: rgba(80,60,100,0.3); color: #b89ed4; }

.blog-card-header h3 {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.45;
  margin: 0;
}

.blog-card-body { padding: 0 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body p { font-size: 0.84rem; line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-meta-date { font-size: 0.75rem; color: rgba(138,154,160,0.8); font-family: var(--font-mono); }

.blog-read-more {
  font-size: 0.8rem;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  font-weight: 500;
}

.blog-read-more:hover { color: var(--white); }

/* 14. CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #2E2C2F 0%, #1e1c1f 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  --white: #FAFAFF;
  --light: #FAFAFF;
  --warm-grey: rgba(250,250,255,0.7);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,155,66,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-section h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta-section p { font-size: 1rem; margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 15. FOOTER */
.footer {
  background: var(--near-black);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

/* ── About device image ─────────────────────────────────────── */
.about-device-img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(71,91,99,0.18);
  display: block;
  margin: 0 auto;
}

/* ── Schema diagram ─────────────────────────────────────────── */
.schema-wrap {
  margin: 3rem 0 4rem;
  text-align: center;
}
.schema-img {
  max-width: 680px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: inline-block;
}

/* ── Partner logos ──────────────────────────────────────────── */
.partner-logo-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.partner-logo-wrap--white-bg {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
}
.partner-logo-img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

/* ── Funding section ────────────────────────────────────────── */
.funding-section {
  background: var(--off-white);
  border-top: 1px solid rgba(71,91,99,0.08);
  padding: 3rem 0;
}
.funding-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.funding-text { flex: 1; min-width: 280px; }
.funding-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.funding-desc {
  font-size: 0.85rem;
  color: var(--warm-grey);
  line-height: 1.7;
  max-width: 60ch;
}
.bmftr-badge {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .funding-inner { flex-direction: column; gap: 2rem; }
  .bmftr-badge { height: 60px; }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo { height: 32px; width: auto; filter: brightness(0); }

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand p { font-size: 0.85rem; line-height: 1.65; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(46,44,47,0.45);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--warm-grey);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.8rem; color: rgba(71,91,99,0.55); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(71,91,99,0.55); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--light); }

/* 16. BLOG FULL PAGE */
.blog-page-hero {
  background: linear-gradient(180deg, var(--teal-deep) 0%, #1e1c1f 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  --white: #FAFAFF;
  --light: #FAFAFF;
  --warm-grey: rgba(250,250,255,0.65);
}

.blog-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71,91,99,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,91,99,0.12) 1px, transparent 1px);
  background-size: 50px 50px;
}

.blog-page-hero-inner { position: relative; z-index: 1; }
.blog-page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.blog-page-hero p { max-width: 520px; margin: 0 auto; }

.blog-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--warm-grey);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-btn:hover { border-color: rgba(71,91,99,0.5); color: var(--light); }
.filter-btn.active { background: var(--teal); color: #FAFAFF; border-color: var(--teal); }

.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 80px;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--warm-grey);
  font-size: 0.9rem;
}

/* 17. SINGLE POST PAGE */
.post-hero {
  background: linear-gradient(180deg, var(--teal-deep) 0%, #1e1c1f 100%);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
  --white: #FAFAFF;
  --light: #FAFAFF;
  --warm-grey: rgba(250,250,255,0.65);
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(71,91,99,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,91,99,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.post-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--warm-grey);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.post-back:hover { color: var(--light); }

.post-hero h1 { color: var(--white); margin-bottom: 1.5rem; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--warm-grey);
}

.post-meta-item svg { width: 14px; height: 14px; opacity: 0.6; }

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 2rem 80px;
}

.post-content h2 { color: var(--white); margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.post-content h3 { color: var(--light); margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.post-content p { color: var(--warm-grey); line-height: 1.85; margin-bottom: 1.25rem; font-size: 0.975rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { color: var(--warm-grey); line-height: 1.75; margin-bottom: 0.4rem; font-size: 0.975rem; }
.post-content strong { color: var(--light); font-weight: 600; }
.post-content blockquote {
  border-left: 3px solid var(--teal-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(71,91,99,0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p { color: rgba(250,250,255,0.8); font-style: italic; margin: 0; }

.post-back-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* 18. ADMIN PANEL */
.admin-page {
  background: #111110;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Login Overlay */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,14,12,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(20px);
}

.admin-login-box {
  background: #1e1c1f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.admin-login-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
}

.admin-login-box h1 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.admin-login-box > p {
  font-size: 0.85rem;
  color: var(--warm-grey);
  margin-bottom: 2rem;
}

.admin-form-group { margin-bottom: 1.25rem; text-align: left; }
.admin-form-group label { display: block; font-size: 0.8rem; color: rgba(250,250,255,0.6); margin-bottom: 0.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-form-group input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.admin-form-group input:focus { outline: none; border-color: var(--teal-light); background: rgba(71,91,99,0.1); }

.login-error {
  color: #FF9B42;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: var(--teal);
  color: #FAFAFF;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-login:hover { background: var(--teal-light); }

/* Admin Sidebar */
.admin-sidebar {
  width: 240px;
  background: #0d0d0b;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.admin-sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar-logo { height: 32px; width: auto; }

.admin-sidebar-name {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,255,0.7);
}

.admin-nav { padding: 1.5rem 0.75rem; flex: 1; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: rgba(250,250,255,0.5);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.25rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: rgba(250,250,255,0.8); }
.admin-nav-item.active { background: rgba(71,91,99,0.25); color: var(--white); }
.admin-nav-item.active svg { color: var(--teal-light); }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem;
  color: rgba(138,154,160,0.5);
}

/* Admin Main */
.admin-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #111110;
}

.admin-topbar {
  background: #111110;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 { font-size: 1.1rem; color: var(--white); font-weight: 600; }

.admin-topbar-right { display: flex; align-items: center; gap: 1rem; }

.admin-user { font-size: 0.82rem; color: var(--warm-grey); }

.admin-logout {
  font-size: 0.8rem;
  color: rgba(255,155,66,0.8);
  cursor: pointer;
  transition: var(--transition);
}

.admin-logout:hover { color: var(--orange); }

.admin-content { padding: 2rem; }

/* Admin Panel */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: #1e1c1f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.admin-stat-card-label { font-size: 0.75rem; color: var(--warm-grey); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.admin-stat-card-value { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--white); }
.admin-stat-card-sub { font-size: 0.72rem; color: rgba(138,154,160,0.6); margin-top: 0.25rem; }

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-table-header h2 { font-size: 1rem; color: var(--white); }

/* Admin Table */
.admin-table-wrap {
  background: #1e1c1f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: rgba(255,255,255,0.03);
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(250,250,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
}

.admin-table td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(250,250,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table .post-title-cell { color: var(--white); font-weight: 500; max-width: 280px; }
.admin-table .post-title-cell a { color: var(--white); }
.admin-table .post-title-cell a:hover { color: var(--teal-light); }

.table-actions { display: flex; gap: 0.5rem; }

.btn-table-edit {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  background: rgba(71,91,99,0.25);
  color: var(--teal-light);
  border: 1px solid rgba(71,91,99,0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-table-edit:hover { background: var(--teal); color: var(--white); }

.btn-table-delete {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  background: rgba(255,155,66,0.15);
  color: #FF9B42;
  border: 1px solid rgba(255,155,66,0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-table-delete:hover { background: rgba(255,155,66,0.4); color: var(--white); }
.btn-table-delete:disabled { opacity: 0.5; cursor: not-allowed; }

/* Admin Form / Editor */
.admin-editor-header { margin-bottom: 2rem; }
.admin-editor-header h2 { color: var(--white); font-size: 1.2rem; }

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-form-full { grid-column: 1 / -1; }

.admin-form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--light);
  font-size: 0.875rem;
  resize: vertical;
  transition: var(--transition);
  line-height: 1.6;
}

.admin-form-group textarea:focus { outline: none; border-color: var(--teal-light); background: rgba(71,91,99,0.08); }

.admin-form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9aa0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.admin-form-group select:focus { outline: none; border-color: var(--teal-light); }
.admin-form-group select option { background: #1e1c1f; color: var(--light); }

.admin-form-group input[type="date"] {
  color-scheme: dark;
}

/* Rich text toolbar */
.editor-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  background: transparent;
  color: rgba(250,250,255,0.6);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-mono);
  font-weight: 500;
}

.toolbar-btn:hover { background: rgba(255,255,255,0.07); color: var(--light); border-color: rgba(255,255,255,0.1); }
.toolbar-btn.active { background: rgba(71,91,99,0.3); color: var(--teal-light); }
.toolbar-sep { width: 1px; background: rgba(255,255,255,0.08); margin: 0.2rem 0.25rem; }

.post-editor-area {
  width: 100%;
  min-height: 300px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--light);
  font-size: 0.9rem;
  line-height: 1.7;
  outline: none;
  transition: var(--transition);
}

.post-editor-area:focus { border-color: var(--teal-light); background: rgba(71,91,99,0.05); }
.post-editor-area h2, .post-editor-area h3 { color: var(--white); margin-bottom: 0.5rem; }
.post-editor-area p { color: var(--light); margin-bottom: 0.75rem; }
.post-editor-area ul, .post-editor-area ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }

.admin-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* 19. SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* 20. RESPONSIVE */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 2rem; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 140px 0 80px; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; gap: 3rem; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-full-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14,14,12,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-mobile-menu.open { opacity: 1; pointer-events: all; }
  .nav-mobile-menu a { font-size: 1.5rem; font-family: var(--font-head); color: var(--white); }
  .nav-mobile-menu .btn { margin-top: 1rem; }

  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 1.5rem; }

  .about-grid { gap: 2rem; }
  .about-mini-cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-full-grid { grid-template-columns: 1fr; }

  .blog-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }

  .hero-ctas { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .admin-stats { grid-template-columns: 1fr; }
  .table-actions { flex-direction: column; gap: 0.25rem; }
}
