/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-600: #0066FF;
  --blue-500: #1a75ff;
  --blue-400: #4d94ff;
  --blue-100: #e6f0ff;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 102, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
}

.nav-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-social a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
}

.nav-social a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 25% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0050cc 0%, #0660d9 12%, #1a7fee 28%, #3a9bff 45%, #7ec4ff 65%, #d0e8ff 82%, #ffffff 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: cloudDrift 20s ease-in-out infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  display: none;
}

/* Floating blocks */
.floating-blocks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}

.floating-blocks li {
  position: absolute;
  display: block;
  width: 70px;
  height: 70px;
  top: -250px;
  border-radius: 12px;
  background: linear-gradient(90deg, #0838b8, #0b5fff, #3fa9ff);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: floatBlock 25s linear infinite;
}

.floating-blocks li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 100%;
  height: 100%;
  background: rgba(11, 95, 255, 1);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.2;
  box-shadow: 0 0 15px rgba(8, 56, 184, 0.5);
}

.floating-blocks li::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 100%;
  height: 100%;
  background: rgba(8, 56, 184, 1);
  border-radius: inherit;
  z-index: -2;
  opacity: 0.1;
}

.floating-blocks li:nth-child(1)  { left: 10%; width: 140px; height: 140px; animation-delay: 0s;  animation-duration: 35s; }
.floating-blocks li:nth-child(2)  { left: 20%; width: 75px;  height: 75px;  animation-delay: 2s;  animation-duration: 22s; }
.floating-blocks li:nth-child(3)  { left: 25%; width: 70px;  height: 70px;  animation-delay: 4s; }
.floating-blocks li:nth-child(4)  { left: 40%; width: 100px; height: 100px; animation-delay: 0s;  animation-duration: 25s; }
.floating-blocks li:nth-child(5)  { left: 65%; width: 70px;  height: 70px;  animation-delay: 0s; }
.floating-blocks li:nth-child(6)  { left: 75%; width: 150px; height: 150px; animation-delay: 3s; }
.floating-blocks li:nth-child(7)  { left: 35%; width: 200px; height: 200px; animation-delay: 7s; }
.floating-blocks li:nth-child(8)  { left: 50%; width: 80px;  height: 80px;  animation-delay: 15s; animation-duration: 55s; }
.floating-blocks li:nth-child(9)  { left: 20%; width: 70px;  height: 70px;  animation-delay: 2s;  animation-duration: 45s; }
.floating-blocks li:nth-child(10) { left: 85%; width: 210px; height: 210px; animation-delay: 0s;  animation-duration: 20s; }

@keyframes floatBlock {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.45; }
  50%  { transform: translateY(50vh) rotate(180deg); opacity: 0.45; }
  90%  { opacity: 0; }
  100% { transform: translateY(130vh) rotate(360deg); opacity: 0; }
}

@keyframes cloudDrift {
  0%   { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
  33%  { background-position: 50% 30%, 30% 60%, 80% 40%, 0% 0%; }
  66%  { background-position: 100% 60%, 70% 20%, 20% 70%, 0% 0%; }
  100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
}

/* Vignette overlay */
.hero-overlay {
  display: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 2;
}

.hero-top {
  text-align: center;
  margin-bottom: 40px;
}

.hero-brand {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.hero-top h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
}

.hero-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* ===== Two Column Section ===== */
.two-col-section {
  background: linear-gradient(135deg, #1a75ff 0%, #4d94ff 50%, #80b3ff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Shifting background boxes */
.shifting-boxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shift-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.shift-box:nth-child(1) {
  width: 300px; height: 300px;
  top: -60px; left: -40px;
  transform: rotate(25deg);
  animation: shiftDrift1 12s ease-in-out infinite;
}

.shift-box:nth-child(2) {
  width: 250px; height: 250px;
  top: -30px; left: 30%;
  transform: rotate(-15deg);
  animation: shiftDrift2 14s ease-in-out infinite;
}

.shift-box:nth-child(3) {
  width: 350px; height: 350px;
  top: -80px; right: 10%;
  transform: rotate(40deg);
  animation: shiftDrift1 16s ease-in-out infinite reverse;
}

.shift-box:nth-child(4) {
  width: 200px; height: 200px;
  bottom: -50px; left: 15%;
  transform: rotate(-30deg);
  animation: shiftDrift2 10s ease-in-out infinite;
}

.shift-box:nth-child(5) {
  width: 280px; height: 280px;
  bottom: -70px; right: 25%;
  transform: rotate(20deg);
  animation: shiftDrift1 13s ease-in-out infinite;
}

.shift-box:nth-child(6) {
  width: 180px; height: 180px;
  top: 20%; left: 55%;
  transform: rotate(-45deg);
  animation: shiftDrift2 11s ease-in-out infinite reverse;
}

.shift-box:nth-child(7) {
  width: 320px; height: 320px;
  top: -40px; right: -60px;
  transform: rotate(15deg);
  animation: shiftDrift1 15s ease-in-out infinite;
}

.shift-box:nth-child(8) {
  width: 220px; height: 220px;
  bottom: -40px; left: 45%;
  transform: rotate(-20deg);
  animation: shiftDrift2 12s ease-in-out infinite reverse;
}

@keyframes shiftDrift1 {
  0%   { transform: translate(0, 0) rotate(25deg); }
  25%  { transform: translate(20px, -15px) rotate(35deg); }
  50%  { transform: translate(-10px, 10px) rotate(20deg); }
  75%  { transform: translate(15px, 5px) rotate(30deg); }
  100% { transform: translate(0, 0) rotate(25deg); }
}

@keyframes shiftDrift2 {
  0%   { transform: translate(0, 0) rotate(-15deg); }
  25%  { transform: translate(-15px, 10px) rotate(-25deg); }
  50%  { transform: translate(10px, -10px) rotate(-10deg); }
  75%  { transform: translate(-5px, -15px) rotate(-20deg); }
  100% { transform: translate(0, 0) rotate(-15deg); }
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.col-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.col-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== Features ===== */
.features-section {
  padding: 100px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 16px;
}

.feature-link {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 12px;
  display: inline-block;
  transition: color var(--transition);
}

.feature-link:hover {
  color: var(--blue-500);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--gray-50);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Integrations ===== */
.integrations-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.integration-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.integration-card h3,
.integration-card p {
  text-align: left;
}

.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.integration-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.integration-icon-img {
  background: transparent;
  width: 100%;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-icon-img img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}

.integration-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.integration-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

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

/* ===== News ===== */
.news-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-date {
  font-size: 0.85rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.news-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.news-link {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.news-link:hover {
  color: var(--blue-500);
}

/* ===== Downloads ===== */
.downloads-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a1a3a 0%, #0d2d6b 40%, #1a4a8a 70%, #2a6ab0 100%);
  position: relative;
  overflow: hidden;
}

/* Drifting blue squares */
.drift-squares {
  display: none;
}

/* Lab bubbles */
.lab-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lab-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: bubbleRise linear infinite;
}

.lab-bubble:nth-child(1)  { width: 20px;  height: 20px;  left: 8%;   animation-duration: 8s;  animation-delay: 0s; }
.lab-bubble:nth-child(2)  { width: 35px;  height: 35px;  left: 18%;  animation-duration: 10s; animation-delay: 1.5s; }
.lab-bubble:nth-child(3)  { width: 14px;  height: 14px;  left: 30%;  animation-duration: 7s;  animation-delay: 3s; }
.lab-bubble:nth-child(4)  { width: 28px;  height: 28px;  left: 42%;  animation-duration: 9s;  animation-delay: 0.5s; }
.lab-bubble:nth-child(5)  { width: 18px;  height: 18px;  left: 55%;  animation-duration: 11s; animation-delay: 2s; }
.lab-bubble:nth-child(6)  { width: 40px;  height: 40px;  left: 65%;  animation-duration: 8.5s; animation-delay: 4s; }
.lab-bubble:nth-child(7)  { width: 12px;  height: 12px;  left: 75%;  animation-duration: 7.5s; animation-delay: 1s; }
.lab-bubble:nth-child(8)  { width: 24px;  height: 24px;  left: 85%;  animation-duration: 9.5s; animation-delay: 3.5s; }
.lab-bubble:nth-child(9)  { width: 16px;  height: 16px;  left: 92%;  animation-duration: 8s;  animation-delay: 2.5s; }
.lab-bubble:nth-child(10) { width: 30px;  height: 30px;  left: 5%;   animation-duration: 10.5s; animation-delay: 5s; }
.lab-bubble:nth-child(11) { width: 22px;  height: 22px;  left: 48%;  animation-duration: 7s;  animation-delay: 6s; }
.lab-bubble:nth-child(12) { width: 10px;  height: 10px;  left: 35%;  animation-duration: 6.5s; animation-delay: 4.5s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.7; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-600px) scale(0.6); opacity: 0; }
}

.drift-square {
  position: absolute;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.05);
  animation: driftMove 15s ease-in-out infinite;
}

.drift-square:nth-child(1) { width: 120px; height: 120px; top: 10%; left: 5%;   animation-duration: 14s; }
.drift-square:nth-child(2) { width: 80px;  height: 80px;  top: 60%; left: 15%;  animation-duration: 18s; animation-delay: 2s; }
.drift-square:nth-child(3) { width: 150px; height: 150px; top: 20%; left: 45%;  animation-duration: 16s; animation-delay: 1s; }
.drift-square:nth-child(4) { width: 100px; height: 100px; top: 70%; left: 55%;  animation-duration: 13s; animation-delay: 3s; }
.drift-square:nth-child(5) { width: 90px;  height: 90px;  top: 5%;  right: 10%; animation-duration: 17s; animation-delay: 4s; }
.drift-square:nth-child(6) { width: 130px; height: 130px; top: 50%; right: 5%;  animation-duration: 15s; animation-delay: 2s; }
.drift-square:nth-child(7) { width: 70px;  height: 70px;  top: 35%; left: 25%;  animation-duration: 19s; animation-delay: 5s; }
.drift-square:nth-child(8) { width: 110px; height: 110px; top: 80%; right: 30%; animation-duration: 14s; animation-delay: 1s; }

@keyframes driftMove {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(15px, -10px) rotate(5deg); }
  50%  { transform: translate(-10px, 15px) rotate(-3deg); }
  75%  { transform: translate(10px, 5px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.downloads-section .container {
  position: relative;
  z-index: 2;
}

.downloads-section .section-title {
  color: var(--white);
}

.downloads-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.downloads-page {
  padding-top: 140px;
  min-height: 100vh;
}

.downloads-page .floating-blocks li {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.03);
}

.downloads-page .floating-blocks li::before {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

.downloads-page .floating-blocks li::after {
  background: rgba(255, 255, 255, 0.02);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.download-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.download-group .download-buttons:last-child {
  margin-top: auto;
}

.download-group:hover {
  box-shadow: var(--shadow-lg);
}

.download-group-icon {
  width: 52px;
  height: 52px;
  background: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.download-group-icon-img {
  background: none;
}

.download-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.download-group-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.download-sub-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 16px;
  margin-bottom: 10px;
}

.download-sub-title:first-of-type {
  margin-top: 0;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.download-buttons .btn-outline {
  font-size: 0.85rem;
  padding: 8px 18px;
}


/* ===== Our Team ===== */
.team-section {
  padding: 100px 0;
  background: var(--white);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  max-width: 300px;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--blue-100) 100%);
}

.contact-form {
  max-width: 640px;
  margin: 48px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
}

.contact-form .btn {
  width: 100%;
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.contact-form .btn:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, #0a3d8f 0%, #0050cc 100%);
  color: var(--white);
  padding: 60px 0 24px;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social a {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-image {
    max-width: 500px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-social {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(0, 102, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 4px;
    animation: slideDown 0.3s ease;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-container {
    padding: 40px 24px 60px;
  }

  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .two-col-section,
  .features-section,
  .news-section,
  .downloads-section,
  .contact-section {
    padding: 64px 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Detail Pages ===== */
.page-hero {
  background: linear-gradient(135deg, #1a6aff 0%, #3a8bff 50%, #4d9aff 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero .floating-blocks {
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(40, 90, 255, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.page-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0 auto 24px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.detail-section {
  padding: 80px 0;
  background: var(--white);
}

.detail-section-alt {
  background: var(--gray-50);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.detail-grid-reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.detail-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.detail-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.highlight-number {
  font-size: 6rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
}

.highlight-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 8px;
}

.highlight-icon {
  width: 120px;
  height: 120px;
  background: var(--blue-100);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}

.detail-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a6aff 0%, #3a8bff 50%, #4d9aff 100%);
  text-align: center;
}

.detail-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.detail-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.detail-cta-contact {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-contact-item {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  transition: opacity var(--transition);
}

.cta-contact-item:hover {
  opacity: 0.8;
}

.contact-section-contact .cta-contact-item {
  color: var(--blue-600);
}

@media (max-width: 768px) {
  .detail-grid,
  .detail-grid-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-grid-reverse .detail-highlight {
    order: -1;
  }
}

/* ===== BridgeRx Detail Page ===== */
.page-hero-bridgerx {
  background: linear-gradient(135deg, #0a4a2e 0%, #0f5c3a 40%, #168a50 100%);
}

.page-hero-bridgerx .page-hero-overlay {
  background: radial-gradient(circle at center, transparent 0%, rgba(10, 74, 46, 0.3) 100%);
}

.page-hero-bridgerx .floating-blocks li {
  background: linear-gradient(90deg, #0a4a2e, #0f5c3a, #1a8a52);
}

.page-hero-bridgerx .floating-blocks li::before {
  background: rgba(15, 92, 58, 1);
  box-shadow: 0 0 15px rgba(10, 74, 46, 0.5);
}

.page-hero-bridgerx .floating-blocks li::after {
  background: rgba(10, 74, 46, 1);
}

.page-hero-logo {
  max-width: 280px;
  margin: 0 auto 8px;
}

.hero-title-block {
  display: inline-block;
  text-align: left;
}

.hero-byline {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  margin-top: 2px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.detail-section-bridgerx-alt {
  background: #f0f9f4;
}

.detail-cta-bridgerx {
  background: linear-gradient(135deg, #0a4a2e 0%, #0f5c3a 50%, #168a50 100%);
}

.detail-cta-bridgerx .btn-primary {
  background: var(--white);
  color: #0f5c3a;
}

.detail-cta-bridgerx .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.footer-bridgerx {
  background: linear-gradient(180deg, #073d24 0%, #0f5c3a 100%);
}

/* Bridge animation canvas */
.bridge-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-hero-bridgerx .page-hero-content {
  position: relative;
  z-index: 2;
}

/* Powered by Box Labs */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  opacity: 0.7;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.powered-by img {
  height: 22px;
  display: inline-block;
}

/* Green icon blocks for BridgeRx detail sections */
.bridgerx-detail .highlight-icon {
  background: #0f5c3a;
  color: var(--white);
}

.bridgerx-detail .highlight-icon svg {
  stroke: #fff;
}

/* Platform badges (iOS/Android) */
.platform-badges {
  display: inline-flex;
  gap: 12px;
  vertical-align: middle;
  margin-left: 12px;
  opacity: 0.85;
}

/* Green navbar for BridgeRx page — transparent at top, green on scroll */
.navbar.navbar-green.scrolled {
  background: #0f5c3a;
}

/* Dark blue navbar for Downloads page */
.navbar.navbar-downloads.scrolled {
  background: #0a1a3a;
}

/* Full viewport hero for BridgeRx */
.page-hero-bridgerx {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 120px;
}

.page-hero-bridgerx .page-hero-content {
  margin-top: -60px;
}
