/* ============================================
   1. CSS Custom Properties
   ============================================ */
:root {
  --bg: #060810;
  --accent: #4a9eff;
  --text: #ffffff;
  --text-secondary: #c8cdd8;
  --text-muted: #8b92a3;
  --border: #1e2230;
  --card-bg: #0e1220;
  --footer-bg: #04060d;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* overflow-x: clip prevents horizontal scroll WITHOUT breaking sticky */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* Fallback for older browsers that don't support clip */
  max-width: 100%;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   3. Typography
   ============================================ */
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 300; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.25; }
h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.35; }
h4 { font-size: 1.1rem; font-weight: 500; }

.mono {
  font-family: monospace;
}

/* ============================================
   4. Layout Utilities
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.text-center {
  text-align: center;
}

/* ============================================
   5. Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 22, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 18px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img:first-child {
  height: 32px;
  width: auto;
  filter: brightness(1.4) drop-shadow(0 0 8px rgba(74,158,255,0.3));
}

.navbar-logo img:last-child {
  height: 20px;
  width: auto;
  filter: brightness(1.4);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 20px;
  transition: all 0.3s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 16px rgba(255,255,255,0.06);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  transition: all 0.3s;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

/* ============================================
   6. Buttons
   ============================================ */
.btn-pill {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}

.btn-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,158,255,0.08);
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-accent:hover {
  opacity: 0.85;
}

.link-arrow {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.link-arrow:hover {
  color: var(--accent);
}

/* ============================================
   7. Hero
   ============================================ */
.hero {
  height: 300vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

/* Respect reduced motion: show fully-alive city as static bg */
@media (prefers-reduced-motion: reduce) {
  .city-layer[data-layer="0"],
  .city-layer[data-layer="1"],
  .city-layer[data-layer="2"] {
    opacity: 0 !important;
  }
  .city-layer[data-layer="3"] {
    opacity: 1 !important;
  }
  .stars-layer {
    animation: none !important;
  }
}

/* City crossfade layers — base city scene */
.city-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.city-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.3s linear;
}

.city-layer[data-layer="0"] {
  opacity: 1;
}

.city-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: center center;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.stars-layer {
  position: absolute;
  inset: -30%;
  transform-origin: center center;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-0.5%, -0.3%); }
}

.star {
  position: absolute;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6,8,16,0.2) 0%, rgba(6,8,16,0.5) 60%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(6,8,16,0.35) 50%, rgba(6,8,16,0.7) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: monospace;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  opacity: 0.85;
}

.hero-title-line1 {
  display: block;
  color: #fff;
  letter-spacing: 0.15em;
  font-weight: 300;
  text-shadow: 0 2px 30px rgba(0,0,0,0.95), 0 0 80px rgba(0,0,0,0.6);
}

.hero-title-line2 {
  display: block;
  color: #fff;
  letter-spacing: 0.15em;
  font-weight: 300;
  opacity: 0.85;
  text-shadow: 0 2px 30px rgba(0,0,0,0.95), 0 0 80px rgba(0,0,0,0.6);
}

.hero-title-line3 {
  display: block;
  color: #fff;
  font-style: italic;
  font-size: 0.6em;
  font-weight: 300;
  margin-top: 12px;
  opacity: 0.85;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #fff;
  margin-top: 36px;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 24px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-text .btn-pill {
  font-size: 16px;
  padding: 16px 36px;
  background: rgba(6,8,16,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Split-flap brand rotator */
.brand-flip {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  height: 1.3em;
  text-align: center;
  top: 0.1em;
}

.brand-flip-inner {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 0 2px;
}

.brand-flip-inner.flip-out {
  animation: flipOut 0.3s ease-in forwards;
}

.brand-flip-inner.flip-in {
  animation: flipIn 0.3s ease-out forwards;
}

@keyframes flipOut {
  0%   { transform: translateY(0) rotateX(0); opacity: 1; }
  100% { transform: translateY(-50%) rotateX(90deg); opacity: 0; }
}

@keyframes flipIn {
  0%   { transform: translateY(50%) rotateX(-90deg); opacity: 0; }
  100% { transform: translateY(0) rotateX(0); opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 2px;
  height: 50px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: #fff;
  animation: scroll-line 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.scroll-hint span {
  font-family: monospace;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.3em;
  opacity: 0.85;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* ============================================
   8. Mini Hero (inner pages)
   ============================================ */
.mini-hero {
  height: 50vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
}

.mini-hero h1 {
  margin-bottom: 16px;
}

.mini-hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   9. Cards
   ============================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: rgba(74,158,255,0.3);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Section headers */
.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 64px;
}

/* ============================================
   10. Portfolio — Showcase Layout (index)
   ============================================ */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  min-height: 320px;
  cursor: pointer;
  transition: border-color 0.4s;
}

.showcase-item:hover {
  border-color: #2a2a3a;
}

.showcase-item.reverse {
  grid-template-columns: 1fr 1.4fr;
}

.showcase-item.reverse .showcase-img {
  order: 2;
}

.showcase-item.reverse .showcase-info {
  order: 1;
}

.showcase-img {
  position: relative;
  overflow: hidden;
}

.showcase-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #0a0f1a 0%, #111828 50%, #0a0f1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover .showcase-placeholder {
  transform: scale(1.03);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}

.showcase-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.showcase-info h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.showcase-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.showcase-link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.showcase-item:hover .showcase-link {
  color: var(--accent);
}

/* Portfolio Cards — grid version (proyectos.html) */
.portfolio-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--border);
  cursor: pointer;
}

.portfolio-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.portfolio-cover {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg);
  display: block;
  width: 100%;
}

.portfolio-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-cover img {
  transform: scale(1.04);
}

.portfolio-info {
  padding: 20px;
  background: var(--card-bg);
}

.portfolio-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 15px;
}

.portfolio-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 10px;
  opacity: 0.85;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* ============================================
   11. Pricing Cards
   ============================================ */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.pricing-card.highlighted {
  border-color: var(--accent);
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.pricing-price {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 6px;
  color: #fff;
}

.pricing-period {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features {
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-card .btn-pill {
  text-align: center;
  margin-top: auto;
}

/* ============================================
   12. About Section
   ============================================ */
.about-img {
  border-radius: 12px;
  overflow: hidden;
}

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

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* About composite image — two-layer build animation */
.about-img-composite {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Override fade-in defaults for the composite wrapper */
.about-img-composite.fade-in {
  transform: none;
  opacity: 1;
}

.about-img-composite .about-bg {
  width: 100%;
  display: block;
  transition: opacity 1s ease-out, transform 1.6s ease-out;
  opacity: 0;
  transform: scale(1.1);
}

.about-img-composite .about-people {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: opacity 0.9s ease-out 0.6s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.about-img-composite.visible .about-bg {
  opacity: 1;
  transform: scale(1);
}

.about-img-composite.visible .about-people {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   13. FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================
   14. CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 24px;
}

/* ============================================
   15. Footer
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, #0a0e1c 100%);
  border-top: 1px solid var(--border);
  padding: 72px 0 28px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img:first-child {
  height: 28px;
  width: auto;
  filter: brightness(1.4) drop-shadow(0 0 8px rgba(74,158,255,0.3));
}

.footer-logo img:last-child {
  height: 16px;
  width: auto;
  filter: brightness(1.4);
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0.75;
}

.footer-links a {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   16. Hamburger
   ============================================ */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #111;
  transition: color 0.3s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ============================================
   17. Values grid (nosotros)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ============================================
   18. Floating Buttons
   ============================================ */
.float-btn {
  position: fixed;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: opacity 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

/* Back to top — left */
.btn-top {
  left: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
}

.btn-top.show {
  opacity: 1;
  pointer-events: auto;
}

.btn-top:hover {
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-top svg {
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp CTA — right */
.btn-wa {
  right: 24px;
  background: #25d366;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-wa svg {
  fill: #fff;
}

/* ============================================
   19. Content Rise (frosted card over hero)
   ============================================ */
.content-rise {
  position: relative;
  z-index: 10;
  background: rgba(6,8,16,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px 28px 0 0;
  margin-top: -60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   20. Statement Section
   ============================================ */
.statement-section {
  padding: 160px 0 120px;
  text-align: center;
}

.statement-eyebrow {
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.9;
}

.statement h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 28px;
}

.statement .accent {
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

.hero-title-line3 {
  font-family: 'Playfair Display', Georgia, serif;
}

.statement-sub {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================
   20. Product Showcase
   ============================================ */
.product-showcase {
  padding: 80px 0;
}

.product-hero {
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto 120px;
}

.product-hero-label {
  margin-bottom: 56px;
}

.product-hero-label h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 16px;
}

.product-hero-label p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.product-badge {
  display: inline-block;
  font-size: 12px;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(74,158,255,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

/* Device mockup frames */
.device-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}

.device-frame img {
  width: 100%;
  display: block;
}

.device-frame.device-mobile {
  border-radius: 20px;
  border-width: 2px;
  border-color: rgba(255,255,255,0.12);
}

/* Hero shot glow */
.product-hero > .device-frame {
  max-width: 800px;
  margin: 0 auto;
}

/* Narrower variant for low-res or portrait screenshots */
.product-hero > .device-frame.device-frame-narrow {
  max-width: 580px;
}

.product-hero > .device-frame::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse, rgba(74,158,255,0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Feature layout — text + devices side by side */
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 160px;
}

.feature-layout:last-child {
  margin-bottom: 0;
}

.feature-layout.reverse {
  grid-template-columns: 1.5fr 1fr;
}

.feature-layout.reverse .feature-text {
  order: 2;
}

.feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

/* Desktop + mobile overlap composition */
.feature-devices {
  position: relative;
  padding-bottom: 40px;
  padding-right: 60px;
}

.feature-devices .device-overlap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  z-index: 2;
}

/* ============================================
   21. Admin Flow (numbered steps)
   ============================================ */
.admin-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.flow-step {
  text-align: center;
}

.flow-number {
  display: block;
  font-family: monospace;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 12px;
}

.flow-label {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 500;
}

.flow-step .device-frame {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 0;
}

.flow-step .device-frame.device-mobile {
  border-radius: 0;
}

/* ============================================
   22. Tools Duo
   ============================================ */
.tools-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: rgba(74,158,255,0.3);
}

.tool-card-screens {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.tool-card-screens .device-frame {
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  height: 100%;
}

.tool-card-screens .device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tool-card-info {
  padding: 32px;
}

.tool-card-info h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.tool-card-info p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================
   23. Portfolio Reel
   ============================================ */
.ribbon-section {
  padding: 100px 0 60px;
}

.ribbon-track {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ribbon-inner {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ribbon-scroll 45s linear infinite;
}

.ribbon-item {
  flex-shrink: 0;
  width: 440px;
  height: 200px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  position: relative;
}

.ribbon-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ribbon-item span {
  display: none;
}

@keyframes ribbon-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   24. Animations
   ============================================ */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes scroll-line {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Entrance base */
.fade-in,
.slide-left,
.slide-right,
.slide-up {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in    { transform: translateY(30px); }
.slide-left { transform: translateX(-60px); }
.slide-right{ transform: translateX(60px); }
.slide-up   { transform: translateY(50px); }

.fade-in.visible,
.slide-left.visible,
.slide-right.visible,
.slide-up.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays for grid children */
.stagger > :nth-child(1) { transition-delay: 0s; }
.stagger > :nth-child(2) { transition-delay: 0.12s; }
.stagger > :nth-child(3) { transition-delay: 0.24s; }
.stagger > :nth-child(4) { transition-delay: 0.32s; }
.stagger > :nth-child(5) { transition-delay: 0.40s; }
.stagger > :nth-child(6) { transition-delay: 0.48s; }
.stagger > :nth-child(7) { transition-delay: 0.56s; }

/* ============================================
   25. Responsive
   ============================================ */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .navbar-right .btn-pill {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .content-rise {
    border-radius: 16px 16px 0 0;
    margin-top: -32px;
  }

  .section-header-row {
    flex-direction: column;
    gap: 8px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  body { font-size: 16px; }

  .hero-subtitle {
    font-size: 16px;
  }

  .feature-devices {
    padding-right: 0;
  }

  .mini-hero {
    height: auto;
    min-height: 280px;
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .about-img {
    max-height: 300px;
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showcase-item.reverse .showcase-img { order: 0; }
  .showcase-item.reverse .showcase-info { order: 0; }

  .showcase-placeholder {
    min-height: 200px;
  }

  .showcase-info {
    padding: 24px 20px;
  }

  /* Product showcase mobile */
  .statement-section {
    padding: 100px 0 64px;
  }

  .product-showcase {
    padding: 40px 0;
  }

  .product-hero {
    margin-bottom: 48px;
  }

  .feature-layout,
  .feature-layout.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-layout.reverse .feature-text {
    order: 0;
  }

  .feature-layout {
    margin-bottom: 80px;
  }

  .feature-devices .device-overlap {
    display: none;
  }

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

  .tools-duo {
    grid-template-columns: 1fr;
  }

  .tool-card-screens .device-overlap-card {
    display: none;
  }

  .ribbon-item {
    width: 320px;
    height: 150px;
  }

  .footer-grid {
    gap: 32px;
  }

  .pricing-card {
    padding: 24px 20px;
  }
}
