/* Example 3 — Editorial Motion (Polished) */

:root {
  --sci-whatsapp: #25d366;
  --sci-whatsapp-dark: #1da851;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 244, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), height var(--transition);
  height: 4.5rem;
}

.nav.shrink {
  height: 3.5rem;
  border-bottom-color: var(--sci-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sci-text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--sci-text);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--sci-canvas);
  border: 1px solid var(--sci-border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.625rem;
  border: none;
  background: transparent;
  color: var(--sci-text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: var(--sci-text);
}

.lang-btn--active {
  background: var(--sci-white);
  color: var(--sci-text);
  box-shadow: var(--shadow-sm);
}

.nav-cta {
  background: var(--sci-whatsapp) !important;
  color: var(--sci-white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: var(--sci-whatsapp-dark) !important;
  color: var(--sci-white) !important;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sci-teal);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sci-text);
}

/* Hero */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(58, 154, 173, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(107, 127, 140, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-text,
.hero-code {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sci-teal);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .line--accent {
  color: var(--sci-teal);
}

.hero-sub {
  color: var(--sci-text-muted);
  font-size: 1.0625rem;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: var(--sci-whatsapp);
}

.btn-whatsapp:hover {
  background: var(--sci-whatsapp-dark);
}

/* Code window */
.code-window {
  background: var(--sci-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--sci-dark-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-bar span:nth-child(-n+3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-bar span:nth-child(1) { background: #ef4444; }
.code-bar span:nth-child(2) { background: #eab308; }
.code-bar span:nth-child(3) { background: #22c55e; }

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  overflow-x: auto;
}

.code-body .kw { color: #c084fc; }
.code-body .type { color: #3a9aad; }
.code-body .prop { color: #93c5fd; }
.code-body .str { color: #86efac; }
.code-body .fn { color: #fbbf24; }

.code-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(58, 154, 173, 0.1);
  border-top: 1px solid rgba(58, 154, 173, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sci-teal);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Marquee */
.marquee {
  padding: 1.25rem 0;
  background: var(--sci-dark);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.marquee-track span:nth-child(even) {
  color: var(--sci-teal);
  opacity: 0.6;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-intro {
  margin-bottom: 3rem;
}

.section-intro .section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* Services list */
.service-list {
  border-top: 1px solid var(--sci-border);
}

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--sci-border);
  transition: background var(--transition);
}

.service-item:hover {
  background: var(--sci-white);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sci-canvas-alt);
  line-height: 1;
}

.service-item:hover .service-num {
  color: var(--sci-teal);
}

.service-content h3 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.service-short {
  color: var(--sci-text-muted);
  font-size: 0.9375rem;
}

.service-detail {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
  margin-top: 0.75rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.service-item:hover .service-detail {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Work */
.work {
  background: var(--sci-white);
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  padding: 2rem;
  border: 1px solid var(--sci-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--sci-teal);
}

.work-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sci-teal);
  margin-bottom: 1rem;
}

.work-card h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
}

/* Proof */
.proof-block {
  text-align: center;
  padding: 3rem;
  border-left: 3px solid var(--sci-teal);
  background: var(--sci-teal-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.proof-block blockquote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.proof-block cite {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
  font-style: normal;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-card {
  padding: 1.75rem;
  background: var(--sci-white);
  border: 1px solid var(--sci-border);
  border-radius: var(--radius-md);
}

.p-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--sci-dark);
  color: var(--sci-white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-card p {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-band {
  padding: 3rem;
  background: var(--sci-dark);
  color: var(--sci-white);
  border-radius: var(--radius-lg);
}

.contact-band .section-label {
  color: var(--sci-teal);
}

.contact-text h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.contact-text > p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-bottom: 0 !important;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.contact-card {
  padding: 2.5rem;
  background: var(--sci-white);
  border: 1px solid var(--sci-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sci-teal);
  margin-bottom: 1rem;
}

.contact-name {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-role {
  font-size: 0.9375rem;
  color: var(--sci-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sci-border);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--sci-canvas);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: var(--sci-whatsapp);
}

.contact-icon--wa svg {
  width: 1.125rem;
  height: 1.125rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sci-text-muted);
  margin-bottom: 0.15rem;
}

.contact-details a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sci-text);
  transition: color var(--transition);
}

.contact-details a:hover {
  color: var(--sci-teal);
}

.contact-details li:last-child a {
  color: var(--sci-whatsapp);
}

.contact-details li:last-child a:hover {
  color: var(--sci-whatsapp-dark);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--sci-whatsapp);
  color: var(--sci-white);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-wa svg {
  width: 1.625rem;
  height: 1.625rem;
}

.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--sci-border);
  background: var(--sci-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
}

.footer-brand .logo-wrap {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  font-size: 0.875rem;
  color: var(--sci-text-muted);
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: var(--sci-text);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--sci-teal);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--sci-text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--sci-border);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .work-cards,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    text-align: left;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--sci-white);
    border-bottom: 1px solid var(--sci-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .lang-switcher {
    align-self: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .service-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .service-detail {
    max-height: none;
    opacity: 1;
    margin-top: 0.75rem;
  }
}
