/* ================================================================
   Morgan — Acrylic UI 2 Design System + Sayram Lighting
   Shared foundation for www.morgandev.cc
   ================================================================ */

/* ── Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Reset & CSS Variables ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-root:     #000000;
  --bg-frame:    rgba(10,10,10,0.92);
  --bg-card:     #111111;
  --bg-card-alt: #161616;
  --bg-input:    #1a1a1a;
  --border:      rgba(255,255,255,0.06);
  --border-hov:  rgba(255,255,255,0.10);
  --text-primary:   #ffffff;
  --text-secondary: #999999;
  --text-muted:     #666666;
  --accent:      #c0aefc;
  --accent-dim:  rgba(192,174,252,0.10);
  --accent-glow: rgba(192,174,252,0.30);
  --warning:     #f0a030;
  --warning-bg:  rgba(240,160,48,0.08);
  --danger:      #ff5555;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Sayram lighting — updated by JS (px from element top-left) */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px; font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-root);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow: hidden;
}


/* ── Ambient Background Orbs ─────────────────────────────────── */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
}
.bg-orb-1 {
  top: -30%; left: -15%;
  width: 70dvw; height: 70dvw;
  background: radial-gradient(circle, rgba(80,60,180,0.07) 0%, transparent 70%);
}
.bg-orb-2 {
  bottom: -20%; right: -10%;
  width: 50dvw; height: 50dvw;
  background: radial-gradient(circle, rgba(0,180,220,0.05) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
   SAYRAM ACRYLIC BORDER LIGHTING SYSTEM
   ═══════════════════════════════════════════════════════════════ */

[data-acrylic] {
  position: relative;
  --acrylic-opacity: 0;
  transition: --acrylic-opacity 0.3s ease;
}

[data-acrylic]:hover {
  --acrylic-opacity: 1;
}

[data-acrylic]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    circle 180px at var(--mouse-x) var(--mouse-y),
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.15) 30%,
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--acrylic-opacity);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

.nav-glass {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1dvh 0;
  background: rgba(3,3,8,1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 10dvh;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 4dvh;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img, .nav-logo-img {
  height: clamp(1.2rem, 2.5dvh, 2rem);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a .material-symbols-outlined {
  font-size: 1.1em;
}

.nav-links a:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL FRAME
   Hardware bezel — monitor casing metaphor
   ═══════════════════════════════════════════════════════════════ */

.app-frame {
  margin: 0 2dvh 0 2dvh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background-color: #1a1a1a;
  height: 88dvh;
  overflow-y: scroll;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   INNER SCREEN / SCROLL CONTENT
   Wraps all scrollable content, translated by JS sync engine
   ═══════════════════════════════════════════════════════════════ */

.inner-screen {
  margin: 1dvh 1dvh 1dvh 1dvh;
  border-radius: 12px;
  background-color: #050505;
  height: 85.8dvh;
  padding: 1dvh 0 1dvh 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-DOWN INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: rgba(255,255,255,0.20);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  cursor: pointer;
  z-index: 2;
}

.scroll-indicator.visible {
  display: flex;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

body.mobile-ui .app-frame[data-acrylic]::before {
  display: none !important;
}

body.mobile-ui [data-acrylic]::before {
  display: none !important;
}

@media (max-width: 768px) {
  .scroll-label { display: none; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

/* Button group — gap expansion on hover (Acrylic UI 1 animation) */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  transition: gap 460ms cubic-bezier(.22,.9,.2,1);
  margin-top: 2rem;
}
.btn-group:hover {
  gap: 1.5rem;
}

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn .material-symbols-outlined {
  font-size: 1.1em;
}

/* Accent button (solid fill) */
.btn-accent {
  background: var(--accent);
  color: #000;
  border: 1px solid transparent;
}
.btn-accent:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

/* Ghost button (hollow frame) */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hov);
  background: var(--bg-card);
}

/* Hero CTA buttons — entrance + hover animation (Acrylic UI 1 contract) */
.btn-hero {
  opacity: 0;
  transform: translateY(24px) scale(1);
  will-change: transform, opacity;
  background: var(--accent);
  color: #000;
  border: 1px solid transparent;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  line-height: 1.5;
  text-align: center;
  transition: opacity 1000ms cubic-bezier(.22,.9,.2,1),
              transform 1000ms cubic-bezier(.22,.9,.2,1),
              box-shadow 300ms ease,
              background-color 300ms ease,
              color 300ms ease;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform-origin: center;
}

.btn-hero.is-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-hero:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow);
  z-index: 2;
  transition: box-shadow 300ms ease,
              background-color 300ms ease,
              color 300ms ease,
              transform 300ms ease;
}

.btn-hero:active {
  transform: translateY(-2px) scale(1);
}

.btn-hero .material-symbols-outlined {
  font-size: 1em;
  color: #000;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-0.05em);
}

/* Hollow ghost variant for hero CTAs */
.btn-hero-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.40);
}
.btn-hero-ghost .material-symbols-outlined {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS — Hollow Rounded Frame
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-hov);
  background: #131313;
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL HERO
   Left-aligned, 1-column carousel inside the app-frame
   ═══════════════════════════════════════════════════════════════ */

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  transition: transform 600ms cubic-bezier(.22,.9,.2,1);
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  width: 100%;
  position: relative;
}

/* ── Slide 2: Morganized app ───────────────────────────────── */
.carousel-slide-app {
  background-size: calc(100% + 1px);
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-slide-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #00000045;
  z-index: 0;
}
.carousel-slide-app > * {
  position: relative;
  z-index: 1;
}

/* ── Slide inner content ───────────────────────────────────── */
.carousel-slide-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  padding: 0 5%;
}

.carousel-slide.active .carousel-slide-content {
  animation: raiseIn 1000ms cubic-bezier(.22,.9,.2,1) forwards;
}

.carousel-headline {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 3dvw, 6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -1px;
}

.carousel-headline .gradient-text {
  background: linear-gradient(90deg, #c0aefc 0%, #a78bfa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.carousel-sub {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5dvw, 1.15rem);
  max-width: 620px;
  margin: 0 0 0.5rem;
  line-height: 1.6;
  overflow: hidden;
}

/* ── Button group inside carousel ──────────────────────────── */
.carousel .btn-group {
  justify-content: flex-start;
  gap: 1rem;
}

/* ── Carousel controls (pill timers) ────────────────────────── */
.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 36px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.carousel-dot:hover {
  border-color: rgba(255,255,255,0.45);
}

.carousel-dot.active:hover {
  background: rgba(255,255,255,0.20);
}

.carousel-dot.active::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  animation: dotFill 6s linear forwards;
}

@keyframes dotFill {
  from { width: 0; }
  to   { width: 100%; }
}


/* ── Carousel arrow controls ────────────────────────────────── */
.carousel-arrows {
  position: absolute;
  bottom: 1.5rem;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.40);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.80);
}

.carousel-arrow .material-symbols-outlined {
  font-size: 16px;
}


@keyframes raiseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════ */

.products-section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 6rem;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-header h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.products-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 65vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 400ms cubic-bezier(.22,.9,.2,1),
              box-shadow 400ms cubic-bezier(.22,.9,.2,1),
              border-color 0.25s ease;
  /* IntersectionObserver animation */
  opacity: 0;
  transform: translateY(40px);
}

.product-card.is-visible {
  animation: cardFadeIn 800ms cubic-bezier(.22,.9,.2,1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  border-color: var(--border-hov);
}

.product-card-image {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.22,.9,.2,1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 40%, transparent 100%);
  z-index: 2;
}

.product-card-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.product-card-title {
  font-size: 1.75rem;
  margin: 0 0 0.4rem;
  line-height: 1;
  font-weight: 800;
}

.product-card-title.gradient-waves {
  background: linear-gradient(135deg, #5170ff 0%, #51bcff 50%, #51fffc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card-title.gradient-morganized {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb7b7 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card-title.gradient-dashboard {
  background: linear-gradient(135deg, #cfadfb 0%, #ba97ff 50%, #7b4ae4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card-title.gradient-more {
  background: linear-gradient(135deg, #c0aefc 0%, #a78bfa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card-subtitle {
  font-size: 0.9rem;
  color: #b8b6a5;
  margin: 0 0 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 300ms cubic-bezier(.22,.9,.2,1), color 300ms ease;
}

.product-card-cta:hover {
  gap: 0.65rem;
  color: var(--accent);
}

.product-card-cta .material-symbols-outlined {
  font-size: 1.1em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Global full-width at body level
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  width: auto;
  margin-top: 2dvh;
  margin-right: 4dvh;
  margin-left: 4dvh;
}

.footer-inner {
  margin: 0 auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand img {
  height: 1.2rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.footer-divider {
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════ */

.notfound-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.notfound-code {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(5rem, 15dvw, 10rem);
  line-height: 0.9;
  margin: 0;
  color: var(--text-primary);
}

.notfound-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0.4rem 0 1rem;
}

.notfound-message {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
}

body.mobile-ui .app-frame[data-acrylic]::before {
  display: none !important;
}

body.mobile-ui [data-acrylic]::before {
  display: none !important;
}

@media (max-width: 768px) {
  .app-frame {
    margin: 0 12px 120px 12px;
    border-radius: 12px;
    min-height: calc(100dvh - 100px);
  }
  .inner-screen {
    margin: 10px;
    border-radius: 10px;
  }
  .scroll-indicator.visible {
    display: flex;
  }
  .carousel-slide {
    padding: 2rem 6% 2rem;
    height: 100%;
  }
  .carousel-controls {
    bottom: 1.5rem;
    left: 1.25rem;
  }

  .nav-glass {
    padding: 0.75rem 0;
  }

  .carousel-slide {
    padding: 2rem 6% 2rem;
  }

  .carousel-headline {
    font-size: clamp(2rem, 6dvw, 3.5rem);
  }

  .products-section {
    padding: 3rem 1rem 4rem;
  }

  .products-header h2 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .btn-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
  }

  .btn-group:hover {
    gap: 0.75rem;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .carousel-headline {
    font-size: clamp(1.8rem, 5dvw, 2.5rem);
  }

  .products-grid {
    gap: 1rem;
  }

  .product-card-content {
    padding: 1.25rem 1rem 1rem;
  }

  .product-card-title {
    font-size: 1.4rem;
  }
}

@media (min-width: 2560px) {
  .container,
  .products-grid {
    max-width: 1800px;
  }

  .carousel-headline {
    font-size: 6rem;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   CLOUDFLARE EDGE: MOBILE UI OVERRIDES
   Injected via _middleware.js → body.mobile-ui
   ═══════════════════════════════════════════════════════════════ */

body.mobile-ui {
  overflow-y: auto !important;
  height: auto;
  background-attachment: scroll;
}

body.mobile-ui .app-frame {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

body.mobile-ui .inner-screen {
  border-radius: 0 !important;
  margin: 1dvh !important;
  margin-bottom: 25vh !important;
  transform: translateY(10vh);
  height: auto !important;
  min-height: 50dvh;
  padding: 0 !important;
  background-color: transparent !important;
}

body.mobile-ui .nav-glass {
  position: sticky;
  margin: 8px 0 0 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-8px);
  width: calc(100% - 16px);
  max-width: 430px;
  border-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
}

body.mobile-ui .nav-inner {
  justify-content: space-around;
  padding: 0 8px;
}

body.mobile-ui .scroll-indicator {
  font-size: 1rem;
}

body.mobile-ui .nav-label {
  display: none;
}

body.mobile-ui .nav-links a {
  padding: 0.4rem 0.55rem;
}

body.mobile-ui .carousel {
  height: auto;
  margin-bottom: 0;
}

body.mobile-ui .carousel-track {
  position: relative !important;
  height: auto !important;
}

body.mobile-ui .carousel-controls {
  position: absolute;
  left: 5%;
}

body.mobile-ui .carousel-arrows {
  position: absolute;
  transform: translateY(1vh);
  right: 5%;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.mobile-ui .carousel-slide {
  height: auto !important;
}

body.mobile-ui .carousel-slide-content {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}



body.mobile-ui .carousel-headline {
  font-size: clamp(1.8rem, 6vw, 3rem);
  transform: translateY(-2vh);
}

body.mobile-ui .carousel-sub {
  font-size: 0.9rem;
  transform: translateY(-2vh);
}

body.mobile-ui .carousel-slide-app {
  background-size: calc(200%);
  background-position: center;
  background-repeat: no-repeat;
}

body.mobile-ui .carousel-slide-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000, #000000aa 100%, #000000);
  z-index: 0;
}

body.mobile-ui .btn-hero {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  transform: translateY(-2vh);
}

body.mobile-ui .btn-hero-ghost {
  margin-bottom: 8vh;
}

body.mobile-ui .app-frame[data-acrylic]::before {
  display: none !important;
}

body.mobile-ui [data-acrylic]::before {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-glass {
    position: sticky;
    bottom: 0;
    left: 50%;
    transform: translateX(-8px);
    width: calc(100% - 16px);
    max-width: 430px;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 0;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
  }
  .nav-inner { justify-content: space-around; padding: 0 8px; }
  .nav-links { gap: 0.5rem; }
  .nav-label { display: none; }
  .nav-links a { padding: 0.4rem 0.55rem; }
  .nav-logo-img { height: clamp(1rem, 2dvh, 1.5rem); }

  .app-frame { padding-bottom: 80px; }

  .carousel { min-height: 50dvh; height: auto; margin-bottom: 0; position: relative; display: flex; flex-direction: column; }
  .carousel-track { position: relative; height: auto; }
  .carousel-controls { position: absolute; bottom: 8px; left: 5%; }
  .carousel-arrows { position: absolute; bottom: 8px; right: 5%; gap: 4px; }
  .carousel-slide { height: auto; }
  .carousel-slide-content { opacity: 1; transform: none; animation: none; }

  .carousel-headline { font-size: clamp(1.8rem, 6dvw, 3rem); }
  .carousel-sub { font-size: 0.9rem; }
  .btn-hero { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
}
body.mobile-ui .app-frame[data-acrylic]::before {
  display: none !important;
}

body.mobile-ui [data-acrylic]::before {
  display: none !important;
}

@media (max-width: 768px) {
  .btn-hero:hover { transform: translateY(-2px) scale(1.02); }
}

/* ═══════════════════════════════════════════════════════════════
   CRIOS UI OVERRIDES (Chrome on iOS — extends mobile-ui)
   ═══════════════════════════════════════════════════════════════ */

body.crios-ui .inner-screen {
  border-radius: 0 !important;
  margin: 1dvh !important;
  margin-bottom: 25vh !important;
  transform: translateY(4vh) !important;
  height: auto !important;
  min-height: 50dvh !important;
  padding: 0 !important;
  background-color: transparent !important;
}

