@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --forest-deep: #121c16;
  --forest-dark: #1a2b22;
  --forest-mid: #2f5d46;
  --forest-light: #4a7a5c;
  --moss: #6d9c56;
  --gold: #d6c3a3;
  --gold-soft: #c4b59f;
  --cream: #f0e6d6;
  --glass: rgba(22, 34, 28, 0.62);
  --glass-border: rgba(214, 195, 163, 0.22);
  --text: #f0e6d6;
  --muted: rgba(240, 230, 214, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sci-fi-body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--text);
  background: var(--forest-deep);
  overflow-x: hidden;
}

.sci-forest-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(14, 22, 18, 0.72) 0%, rgba(18, 28, 22, 0.55) 40%, rgba(12, 18, 15, 0.88) 100%),
    url('/static/img/bg-hero-canopy.jpg') center center / cover no-repeat;
  transform: scale(1.04);
  animation: forest-drift 28s ease-in-out infinite alternate;
}

#sci-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.sci-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sci-vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 25%, rgba(8, 12, 10, 0.65) 100%);
}

.sci-shell { position: relative; z-index: 4; }

.sci-topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: rgba(18, 28, 22, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

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

.sci-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 195, 163, 0.28);
  border-radius: 12px;
  background: rgba(12, 20, 16, 0.65);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.sci-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sci-topbar.is-open .sci-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sci-topbar.is-open .sci-menu-toggle span:nth-child(2) { opacity: 0; }
.sci-topbar.is-open .sci-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sci-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--gold);
}

.sci-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 156, 86, 0.3);
  background: rgba(47, 93, 70, 0.2);
}

.sci-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.5rem 4rem;
}

.sci-hero-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.sci-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1rem;
}

.sci-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1.2rem;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sci-lead {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

.sci-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.sci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.sci-btn--primary {
  color: #1a2b22;
  background: linear-gradient(135deg, var(--gold), #e8d8bc);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.sci-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.sci-btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(214, 195, 163, 0.35);
  background: rgba(30, 45, 36, 0.5);
}
.sci-btn--ghost:hover { transform: translateY(-2px); }

.sci-holo-panel {
  position: relative;
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: float-panel 9s ease-in-out infinite;
}

.sci-holo-panel h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--gold);
}

.sci-stat-grid { display: grid; gap: 0.75rem; }

.sci-stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.sci-stat strong {
  color: var(--moss);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.sci-section { padding: 5rem 1.5rem; }
.sci-section-inner { width: min(1080px, 100%); margin: 0 auto; }

.sci-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  color: var(--cream);
}

.sci-section .sci-sub {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

.sci-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.sci-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(22, 34, 28, 0.78);
  border: 1px solid rgba(109, 156, 86, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  overflow: hidden;
}

.sci-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 100px;
  background: radial-gradient(circle, rgba(109, 156, 86, 0.12), transparent 70%);
  pointer-events: none;
}

.sci-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.sci-card-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.sci-card h3 { margin: 0 0 0.6rem; font-size: 1.05rem; font-family: 'Manrope', sans-serif; }
.sci-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.sci-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.sci-step {
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  background: rgba(30, 45, 36, 0.55);
  border: 1px solid rgba(109, 156, 86, 0.2);
  font-size: 0.82rem;
  color: var(--muted);
}

.sci-step strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.sci-cta {
  margin: 2rem auto 5rem;
  width: min(900px, calc(100% - 2rem));
  padding: 2.2rem;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(109, 156, 86, 0.1), transparent 40%),
    rgba(22, 34, 28, 0.82);
  border: 1px solid rgba(214, 195, 163, 0.2);
  backdrop-filter: blur(16px);
}

.sci-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.8rem;
}

.sci-cta p { color: var(--muted); margin: 0 0 1.4rem; }

.sci-footer-note {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
}

.sci-footer-note a { color: var(--gold-soft); text-decoration: none; }

@keyframes float-panel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes forest-drift {
  0% { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1.07) translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Homepage (codarion-home) ── */
.codarion-home main { padding: 0; background: transparent; }
.codarion-home .site-footer {
  position: relative;
  z-index: 4;
  background: rgba(14, 22, 18, 0.92);
  border-top: 1px solid rgba(214, 195, 163, 0.15);
  color: var(--cream);
}
.codarion-home .site-footer .brand,
.codarion-home .site-footer h4 { color: var(--gold); font-family: 'Manrope', sans-serif; }
.codarion-home .site-footer p,
.codarion-home .site-footer a { color: var(--muted); }
.codarion-home .site-footer a:hover { color: var(--cream); }
.codarion-home .footer-brand-badge {
  border-color: rgba(109, 156, 86, 0.3);
  color: var(--gold-soft);
}

.sci-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.sci-topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.sci-topnav a:hover,
.sci-topnav a.active { color: var(--cream); }

.sci-btn--sm { padding: 0.55rem 1rem; font-size: 0.82rem; }

.sci-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.sci-image-card {
  min-height: 280px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 14, 11, 0.15) 0%, rgba(8, 14, 11, 0.55) 100%),
    var(--sci-img) center center / cover no-repeat;
  border: 1px solid rgba(214, 195, 163, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sci-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sci-proof-card {
  min-height: 200px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, transparent 20%, rgba(8, 14, 11, 0.82) 100%),
    var(--sci-img) center center / cover no-repeat;
  border: 1px solid rgba(109, 156, 86, 0.18);
  transition: transform 0.4s ease;
}
.sci-proof-card:hover { transform: translateY(-4px); }
.sci-proof-card h3 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: var(--cream);
  text-transform: lowercase;
}

.sci-about-panel { max-width: 760px; margin: 0 auto; text-align: center; align-items: center; }
.sci-about-panel .sci-sub { margin-left: auto; margin-right: auto; }
.sci-about-panel .sci-btn { margin-top: 0.5rem; }

.sci-contact-trust {
  text-align: center;
  margin-bottom: 1.5rem;
}
.sci-contact-trust h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.8rem;
  color: var(--cream);
}
.sci-trust-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sci-trust-tags span {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 156, 86, 0.25);
  background: rgba(30, 45, 36, 0.5);
  font-size: 0.8rem;
  color: var(--muted);
}

.sci-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}

.sci-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.sci-form-panel {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(22, 34, 28, 0.82);
  border: 1px solid rgba(214, 195, 163, 0.2);
  backdrop-filter: blur(14px);
}
.sci-form-panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}
.sci-form { display: grid; gap: 0.75rem; margin-top: 1rem; }
.sci-form-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.sci-form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(214, 195, 163, 0.2);
  background: rgba(8, 14, 11, 0.55);
  color: var(--cream);
  font: inherit;
}
.sci-form-input:focus {
  outline: none;
  border-color: rgba(109, 156, 86, 0.5);
  box-shadow: 0 0 0 3px rgba(109, 156, 86, 0.15);
}

@media (max-width: 900px) {
  .sci-hero-grid, .sci-cards, .sci-pipeline, .sci-split, .sci-proof-grid, .sci-contact-grid { grid-template-columns: 1fr; }

  .sci-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo toggle";
    align-items: center;
    border-radius: 16px;
    padding: 0.65rem 0.85rem;
  }
  .sci-logo { grid-area: logo; }
  .sci-menu-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
  }
  .sci-nav-panel {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.75rem 0.25rem 0.35rem;
    border-top: 1px solid rgba(214, 195, 163, 0.12);
    margin-top: 0.35rem;
  }
  .sci-topbar.is-open .sci-nav-panel { display: flex; }
  .sci-topnav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .sci-topnav a {
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
  }
  .sci-topnav a:hover,
  .sci-topnav a.active {
    background: rgba(109, 156, 86, 0.12);
  }
  .sci-nav-cta { width: 100%; text-align: center; }
}
