/* ═══════════════════════ RESET & BASE ═══════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red-deep:   #6b0000;
  --red-hero:   #8b0000;
  --red-card:   #7a0a0a;
  --red-card2:  #6e0808;
  --red-bright: #c0392b;
  --blue-logo:  #3a7bd5;
  --white:      #ffffff;
  --off-white:  rgba(255,255,255,0.85);
  --muted:      rgba(255,255,255,0.6);
  --nav-text:   #333333;
  --nav-bg:     #ffffff;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--red-hero);
  color: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ═══════════════════════ NAVBAR ═══════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name  { font-size: 19px; font-weight: 700; color: #222; letter-spacing: -0.2px; }
.logo-red   { color: #c0392b; }
.logo-sub   { font-size: 11px; font-weight: 400; color: #777; letter-spacing: 0.2px; }

/* Footer logo variants */
.logo-white      { color: rgba(255,255,255,0.9) !important; }
.logo-white-sub  { color: rgba(255,255,255,0.5) !important; }

/* Logo image */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer {
  height: 42px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: var(--red-bright); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
}

.lang { font-size: 13px; color: #555; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  padding: 9px 18px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.1px;
}
.dropdown-menu a:hover { background: #fff5f5; color: var(--red-bright); }

/* Coming soon items in dropdown */
.dropdown-menu a.nav-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaa;
  cursor: default;
  pointer-events: none;
}
.dropdown-menu a.nav-soon:hover { background: none; color: #aaa; }
.nav-soon-badge {
  font-size: 10px;
  font-weight: 700;
  background: #f0f0f0;
  color: #999;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

/* Language switcher dropdown — smaller and right-aligned */
.lang-dropdown .dropdown-menu {
  min-width: 150px;
  left: auto;
  right: 0;
}
.lang-dropdown .dropdown-menu a.active {
  background: #fff5f5;
  color: var(--red-bright);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #8b0000 0%, #6b0000 50%, #5a0000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(180,30,30,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Badge above title */
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 6px 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* Two-button row */
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-top: 12px;
  margin-bottom: 60px;
}
@media (max-width: 640px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
  }
  .hero-cta-row .btn-hero,
  .hero-cta-row .btn-hero-ghost {
    width: 100%;
    text-align: center;
  }
}

.btn-hero-ghost {
  display: inline-block;
  padding: 13px 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 24px 36px;
  position: relative;
  z-index: 1;
}
.hstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
}
.hstat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.hstat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  text-align: center;
  max-width: 160px;
}
.hstat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.hero-content { max-width: 780px; position: relative; z-index: 1; width: 100%; }

.hero-content h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.hero-content p {
  font-size: 16px;
  color: var(--off-white);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Hero button — outline style like the original */
.btn-hero {
  display: inline-block;
  padding: 13px 36px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 30px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn-hero:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* miRNA card (centered, wider) */
.mirna-card {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  max-width: 520px;
  width: 100%;
  background: rgba(100,5,5,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 32px 36px;
  text-align: center;
}
.mirna-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--white);
}
.mirna-card p {
  font-size: 14px;
  color: var(--off-white);
  margin-bottom: 10px;
  line-height: 1.6;
}
.mirna-card em {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* Featured hero cards (miRNA + patent) */
.hero-featured {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
  max-width: 860px;
  width: 100%;
}

.patent-card {
  background: rgba(15, 30, 60, 0.55);
  border-color: rgba(99, 179, 237, 0.25);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patent-lock {
  width: 36px; height: 36px;
  background: rgba(99,179,237,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.patent-lock svg { width: 18px; height: 18px; stroke: #63b3ed; }

.patent-card h3 { text-align: left; font-size: 13px; letter-spacing: 0.6px; }
.patent-card p  { font-size: 13.5px; color: var(--off-white); line-height: 1.65; flex: 1; }

.patent-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #63b3ed;
  margin-top: 4px;
  transition: color 0.2s;
}
.patent-cta:hover { color: #90cdf4; text-decoration: underline; }

/* 3 hero cards */
.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  max-width: 900px;
  width: 100%;
}

.hero-card {
  background: rgba(90,5,5,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.hero-card:hover { background: rgba(120,10,10,0.7); transform: translateY(-2px); }

.hero-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero-card p {
  font-size: 13px;
  color: var(--off-white);
  line-height: 1.55;
}

/* ═══════════════════════ SERVICES ═══════════════════════ */
.section-services {
  background: #ffffff;
  padding: 88px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}
.svc-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 10px;
}
.services-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.services-header p,
.services-sub {
  font-size: 15px;
  color: #555;
  max-width: 600px;
  margin: 0 auto 4px;
  line-height: 1.6;
}
.svc-title-line {
  width: 48px;
  height: 3px;
  background: var(--red-hero);
  border-radius: 2px;
  margin: 14px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 26px 24px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.svc-featured {
  background: linear-gradient(135deg, #faf5ff, #f0e8ff);
  border-color: #d8b4fe;
}

.svc-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; }

.svc-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.svc-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.68;
  flex: 1;
}
.svc-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-hero);
  margin-top: 4px;
  transition: color 0.2s;
}
.svc-link:hover { color: var(--red-bright); text-decoration: underline; }

/* ═══════════════════════ SHARED SECTION STYLES ═══════════════════════ */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title-white {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.2px;
}


/* ═══════════════════════ AUDIENCE SECTIONS ═══════════════════════ */
.section-audience {
  background: linear-gradient(160deg, #5a0000 0%, #4a0000 100%);
  padding: 80px 0;
}
.section-audience.alt {
  background: linear-gradient(160deg, #4a0000 0%, #3d0000 100%);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.col-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.col-text p {
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: 20px;
}
.col-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.col-text ul li {
  font-size: 14.5px;
  color: var(--off-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.col-text ul li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Feature pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 30px;
  transition: background var(--transition);
}
.pill:hover { background: rgba(255,255,255,0.18); }

/* Pipeline box */
.pipeline-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.p-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--off-white);
  width: 100%;
  transition: background var(--transition);
}
.p-step.done {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}
.p-arrow {
  font-size: 16px;
  color: rgba(255,255,255,0.3);
  padding: 4px 0 4px 18px;
}

/* ═══════════════════════ CONTACT ═══════════════════════ */
.section-contact {
  background: linear-gradient(160deg, #3d0000 0%, #2a0000 100%);
  padding: 80px 0;
}
.contact-sub {
  text-align: center;
  font-size: 16px;
  color: var(--off-white);
  margin-top: -28px;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form select { color: rgba(255,255,255,0.7); }
.contact-form select option { background: #6b0000; color: white; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.btn-submit {
  padding: 14px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}
.btn-submit:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer {
  background: #1a0000;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 0 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer-brand a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-brand a:hover { color: var(--white); }

.footer-cols { display: flex; gap: 56px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

/* ═══════════════════════ WHITE CARDS ═══════════════════════ */
.section-white-cards {
  background: linear-gradient(160deg, #5a0000 0%, #4a0000 100%);
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.white-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.wc-text {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.wc-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wc-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.wc-text p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
}

.btn-dark {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  margin-top: 6px;
  transition: background 0.2s;
  align-self: flex-start;
}
.btn-dark:hover { background: #333; }

.wc-image {
  overflow: hidden;
  min-height: 280px;
}
.wc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.white-card:hover .wc-image img { transform: scale(1.03); }

/* ═══════════════════════ PHILOSOPHY ═══════════════════════ */
.section-philosophy {
  background: #fff;
  padding: 80px 0;
}

.two-col-light {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.phil-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.phil-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 28px;
}

.btn-outline-dark {
  display: inline-block;
  border: 2px solid #222;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 30px;
  transition: all 0.2s;
}
.btn-outline-dark:hover { background: #111; color: #fff; }

.phil-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: visible;
}
.phil-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.phil-stats-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #2563eb;
  border-radius: 10px;
  padding: 20px 28px;
  display: flex;
  gap: 32px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.35);
}

.phil-stat { display: flex; flex-direction: column; }
.ps-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ps-label {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  max-width: 110px;
  line-height: 1.3;
}

/* ═══════════════════════ VOLCANO PLOT ═══════════════════════ */
.section-volcano {
  background: #f8f8f8;
  padding: 80px 0;
}
.section-volcano .two-col-light {
  max-width: 1400px;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
}

.vol-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.vol-text p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.vol-text strong { color: #c0392b; font-weight: 600; }

.vol-embed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vol-label {
  font-size: 13px;
  color: #888;
  text-align: center;
}
.vol-label em { color: #2563eb; font-style: normal; font-weight: 600; }

.vol-embed iframe {
  width: 100%;
  height: 620px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
}

/* ═══════════════════════ DROPDOWN IP LINK ═══════════════════════ */
.dropdown-ip-link {
  color: var(--red-hero) !important;
  font-weight: 600;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 8px !important;
}
.dropdown-ip-link:hover {
  color: var(--red-bright) !important;
  background: #fff5f5 !important;
}

/* ═══════════════════════ IP SERVICE TEASER ═══════════════════════ */
.ip-teaser {
  margin-top: 48px;
  background: linear-gradient(135deg, #1a0000 0%, #3b0000 100%);
  border: 1px solid rgba(139,0,0,0.4);
  border-radius: 16px;
  padding: 40px 48px;
}
.ip-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ip-teaser-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.ip-teaser-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.ip-teaser-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.6;
}
.ip-teaser-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 14px 32px;
  background: var(--red-hero);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.ip-teaser-btn:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 960px) {
  .services-grid   { grid-template-columns: 1fr 1fr; }
  .hero-featured   { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 900px) {
  .two-col             { grid-template-columns: 1fr; gap: 40px; }
  .two-col-light       { grid-template-columns: 1fr; gap: 48px; }
  .hero-cards          { grid-template-columns: 1fr; max-width: 480px; }
  .white-card          { grid-template-columns: 1fr; }
  .wc-image            { min-height: 220px; }
  .phil-stats-overlay  { left: 0; bottom: -30px; }

  .section-volcano .two-col-light {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-volcano .vol-text  { order: 1; }
  .section-volcano .vol-embed { order: 2; width: 100%; }
  .vol-embed iframe            { height: 500px; }
}

@media (max-width: 640px) {
  .services-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    gap: 2px;
  }
  .nav-links.open .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    background: #fafafa;
    padding: 4px 0 4px 12px;
    display: none;
  }
  .nav-links.open .dropdown.open .dropdown-menu { display: block; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-cols   { flex-direction: column; gap: 32px; }
  .hero          { padding: 110px 16px 0; }
  .hero-stats    { flex-wrap: wrap; gap: 24px; padding: 28px 16px 32px; }
  .hstat         { flex: 0 0 calc(50% - 12px); padding: 0; }
  .hstat-divider { display: none; }
  .mirna-card    { padding: 24px 20px; }
  .ip-teaser-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   PRIVATE / CLIENT AREA — login, register, dashboard, admin
   ═══════════════════════════════════════════════════════════ */

.app-body {
  background: #f5f6f8;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-main {
  flex: 1;
  padding: 100px 24px 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.app-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.app-footer a { color: var(--red-bright); }

.nav-login,
.nav-login-btn,
.nav-logout {
  background: var(--red-hero);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  margin-left: 8px;
}
.nav-login:hover,
.nav-login-btn:hover,
.nav-logout:hover {
  background: var(--red-bright);
  color: #fff !important;
}
.nav-login::after,
.nav-login-btn::after,
.nav-logout::after { display: none !important; }

/* ── Auth (login / register) ─────────────────────────────── */
.auth-wrap {
  max-width: 460px;
  margin: 40px auto;
  padding: 0 16px;
}
.auth-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.auth-sub {
  color: #666;
  font-size: 14.5px;
  margin-bottom: 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.auth-form label small {
  font-weight: 400;
  color: #888;
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #111;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--red-hero);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}
.btn-auth {
  margin-top: 8px;
  padding: 12px 20px;
  background: var(--red-hero);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.btn-auth:hover { background: var(--red-bright); transform: translateY(-1px); }
.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: #666;
}
.auth-foot a {
  color: var(--red-hero);
  font-weight: 600;
}
.auth-foot a:hover { text-decoration: underline; }

.auth-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.auth-alert-error {
  background: #fff0f0;
  color: #991b1b;
  border-color: #fecaca;
}
.auth-alert-info {
  background: #f0f7ff;
  color: #1e40af;
  border-color: #c7dcff;
}

/* wider card for register */
.auth-card-wide { max-width: 640px; }
.auth-wrap-wide { max-width: 680px; }

/* 2-column row inside auth forms */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .auth-row { grid-template-columns: 1fr; }
}

/* required star */
.auth-req { color: #dc2626; font-weight: 700; }

/* "already have an account?" link */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: #666;
  margin-top: 4px;
}
.auth-switch a { color: #8b0000; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Dashboard ──────────────────────────────────────────── */
.dash-wrap, .admin-wrap { max-width: 1100px; margin: 0 auto; }

.dash-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.dash-header h1,
.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
}
.dash-sub { color: #666; font-size: 14px; margin-top: 4px; }

.points-badge {
  background: linear-gradient(135deg, var(--red-hero), var(--red-bright));
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(139,0,0,0.18);
}
.points-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.points-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.dash-section { margin-top: 40px; }
.dash-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.empty-state {
  background: #fff;
  border: 1px dashed #d4d4d4;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* ── File list ──────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.file-row:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.file-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.file-pdf  { background: #fee2e2; color: #b91c1c; }
.file-zip  { background: #fff7e6; color: #d97706; }
.file-html { background: #dbeafe; color: #1e3a6b; }
.file-htm  { background: #dbeafe; color: #1e3a6b; }
.file-meta { flex: 1; min-width: 0; }
.file-name {
  font-weight: 600;
  font-size: 14.5px;
  color: #111;
  word-break: break-word;
}
.file-desc { font-size: 13px; color: #666; margin-top: 2px; }
.file-info { font-size: 12px; color: #999; margin-top: 4px; }

.file-actions { display: flex; gap: 8px; align-items: center; }
.btn-download {
  padding: 8px 16px;
  background: var(--red-hero);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s;
  white-space: nowrap;
}
.btn-download:hover { background: var(--red-bright); color: #fff; }

.btn-danger {
  padding: 8px 14px;
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-danger:hover { background: #fee2e2; }

/* ── Admin ──────────────────────────────────────────────── */
.admin-back { font-size: 13.5px; margin-bottom: 16px; }
.admin-back a { color: #666; }
.admin-back a:hover { color: var(--red-hero); }

.admin-search { display: flex; gap: 8px; }
.admin-search input {
  padding: 9px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-size: 14px;
  width: 280px;
}
.admin-search button {
  padding: 9px 18px;
  background: var(--red-hero);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.admin-search button:hover { background: var(--red-bright); }

.admin-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-table th {
  background: #fafafa;
  font-weight: 700;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafbfc; }

.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-client      { background: #e0eaf8; color: #1e3a6b; }
.role-admin       { background: #fee2e2; color: #b91c1c; }
.role-ambassador  { background: #fef9c3; color: #854d0e; }

.btn-mini {
  padding: 6px 14px;
  background: var(--red-hero);
  color: #fff;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-mini:hover { background: var(--red-bright); color: #fff; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.admin-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 22px 22px 24px;
}
.admin-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 12.5px;
  color: #888;
  margin-bottom: 14px;
}
.card-sub code {
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.points-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.points-table th,
.points-table td {
  padding: 10px 14px;
  font-size: 13.5px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.points-table th {
  background: #fafafa;
  font-weight: 700;
  font-size: 11.5px;
  color: #666;
  text-transform: uppercase;
}
.points-table tbody tr:last-child td { border-bottom: none; }
.points-table .pos { color: #16a34a; font-weight: 700; }
.points-table .neg { color: #dc2626; font-weight: 700; }

/* ── Admin create form grid ─────────────────────────────────── */
.admin-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-search input { width: 100%; }
}

@media (max-width: 640px) {
  /* Admin header: stack title + search vertically */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .admin-search {
    width: 100%;
    flex-direction: column;
  }
  .admin-search input {
    width: 100%;
    box-sizing: border-box;
  }
  .admin-search button { width: 100%; }

  /* Create form: single column */
  .admin-create-form {
    grid-template-columns: 1fr;
  }

  /* Table: scrollable */
  .file-row { flex-wrap: wrap; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Admin wrap padding */
  .admin-wrap { padding: 0 16px; }
}
