/* ==========================================================================
   RAYAKAN.MY.ID — Digital Invitation Platform
   Styling inspired by Cordially.io (Ultra-luxury, Dark cinematic aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #120d10;
  --bg-panel: #171214;
  --bg-header-trans: rgba(18, 13, 16, 0.65);
  --ivory-light: #fcf7ed;
  --ivory-warm: #f3e7db;
  --gold-accent: #f3d8a7;
  --gold-glow: rgba(243, 216, 167, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.32);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & no-scroll viewport */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: #ffffff;
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 1024px) {
  html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
  }
}

@media (max-width: 1023px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Background Ambience & Overlays
   -------------------------------------------------------------------------- */
.hero-backdrop-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.62) contrast(1.08) saturate(1.15);
  transform: scale(1.03);
  transition: transform 12s ease-out;
  animation: slowSubtleZoom 30s infinite alternate ease-in-out;
}

@keyframes slowSubtleZoom {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

/* Multi-layer luxury dark gradients */
.hero-tone-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 25%, rgba(217, 172, 156, 0.16), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(243, 216, 167, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.45) 0%, rgba(8, 6, 8, 0.6) 35%, rgba(8, 6, 8, 0.85) 75%, rgba(8, 6, 8, 0.96) 100%);
}

.hero-contrast-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 16, 0.22);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* Dot Matrix Grid Overlay (cordially style) */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center center;
  mask-image: radial-gradient(circle at 60% 60%, black 15%, rgba(0, 0, 0, 0.6) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 60%, black 15%, rgba(0, 0, 0, 0.6) 45%, transparent 75%);
  opacity: 0.85;
}

/* Curved journey SVG lines */
.journey-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Header Navigation Bar
   -------------------------------------------------------------------------- */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 0.75rem 1.25rem;
}

@media (min-width: 640px) {
  .landing-header {
    padding: 1rem 2rem;
  }
}

.header-blur-wash {
  position: absolute;
  inset: 0;
  height: 7rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 13, 16, 0.85) 0%, rgba(18, 13, 16, 0.4) 60%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
}

.nav-container {
  position: relative;
  max-width: 96rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.25s ease;
}

.brand-wrapper:hover {
  opacity: 0.92;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(243, 216, 167, 0.4));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-wrapper:hover .brand-logo-img {
  transform: rotate(-4deg) scale(1.05);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-weight: 400;
}

.brand-tag-small {
  margin-top: 0.25rem;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* Nav Pill Links */
.nav-links-center {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
}

.nav-link-item {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link-item:hover {
  color: #ffffff;
}

/* Right Nav Buttons */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .nav-actions-right {
    gap: 0.75rem;
  }
}

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-glass-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-ivory-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: var(--ivory-warm);
  color: #1f1719;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn-ivory-primary:hover {
  background: #ffffff;
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 0 12px 30px rgba(243, 231, 219, 0.28);
}

.btn-ivory-primary:active {
  transform: translateY(0) scale(0.99);
}

/* --------------------------------------------------------------------------
   Hero Stage (Fit within 100vh)
   -------------------------------------------------------------------------- */
.hero-viewport-stage {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .hero-viewport-stage {
    padding-top: 6rem;
    padding-bottom: 2rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-viewport-stage {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

.hero-main-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 96rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-main-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   Left Column: Copy & Typography
   -------------------------------------------------------------------------- */
.hero-copy-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 30;
}

/* Rating Pill Badge */
.rating-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  margin-bottom: 1.15rem;
  transition: all 0.2s ease;
}

.rating-pill-badge:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.12);
}

.star-group {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.star-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.badge-divider {
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.badge-social-proof {
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

/* Category Label */
.hero-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

/* Main Display Headline */
.hero-display-headline {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 1.15rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-display-headline .italic-accent {
  font-style: italic;
  font-weight: 400;
  color: #fbf6ec;
}

/* Paragraph Subtitle */
.hero-subtitle-desc {
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 35rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* CTA Buttons Group */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-cta-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-cta-buttons-row {
    gap: 1rem;
  }
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: 9999px;
  background: var(--ivory-warm);
  color: #1f1719;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px rgba(243, 231, 219, 0.32);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1.5px);
}

.cta-microcopy-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.cta-microcopy-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  transition: all 0.2s ease;
}

.cta-microcopy-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* Feature Bullets in Footer */
.hero-footer-features {
  display: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (min-width: 1024px) {
  .hero-footer-features {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: var(--ivory-warm);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Right Column: 3D Interactive Device Showcase Stage
   -------------------------------------------------------------------------- */
.hero-showcase-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.device-stage-3d {
  position: relative;
  width: 100%;
  max-width: 32rem;
  height: clamp(16rem, 38vh, 26rem);
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .device-stage-3d {
    height: clamp(20rem, 46vh, 28rem);
    max-width: 36rem;
  }
}

/* Desktop Browser Mockup Card */
.mockup-desktop-card {
  position: absolute;
  width: clamp(17rem, 32vw, 24rem);
  border-radius: 1.25rem;
  background: #171214;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-browser-header {
  height: 2.25rem;
  background: #251d21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.875rem;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
}
.window-dot.red { background-color: #ff7c72; }
.window-dot.yellow { background-color: #f5c451; }
.window-dot.green { background-color: #65c466; }

.desktop-url-bar {
  margin-left: 0.5rem;
  flex: 1;
  height: 1.35rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

.desktop-url-bar svg {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.desktop-screen-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #171214;
  overflow: hidden;
}

.desktop-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.mockup-desktop-card:hover .desktop-screen-img {
  transform: scale(1.04);
}

/* Wax Seal Interactive Hint on Desktop Screen */
.desktop-seal-interactive-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 13, 16, 0.75);
  border: 1px solid rgba(243, 216, 167, 0.4);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 10px rgba(243, 216, 167, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(243, 216, 167, 0.5); }
}

/* Mobile Smartphone Mockup Card */
.mockup-phone-card {
  position: absolute;
  width: clamp(10.5rem, 19vw, 14.5rem);
  border-radius: 1.85rem;
  background: #0c0a0b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-inner-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 402 / 878;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #171214;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.85) 100%);
}

.phone-top-bar {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.phone-monogram {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.phone-rsvp-badge {
  background: #73513a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phone-bottom-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.5rem;
  right: 0.5rem;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.phone-couple-names {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.phone-scroll-prompt {
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.phone-scroll-prompt svg {
  width: 9px;
  height: 9px;
  animation: bounceDown 1.8s infinite ease-in-out;
}

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

/* --------------------------------------------------------------------------
   3D Stage Perspective States (Cordially Matching)
   State 1: Phone Active (in front, focused) + Desktop Background (tilted)
   State 2: Desktop Active (in front, focused) + Phone Background (tilted)
   -------------------------------------------------------------------------- */

/* Default: Phone in Front (as in cordially screenshot) */
.device-stage-3d.phone-focus .mockup-desktop-card {
  z-index: 10;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0px) scale(0.84) rotateY(10deg);
  opacity: 0.75;
  filter: brightness(0.65);
}

.device-stage-3d.phone-focus .mockup-desktop-card:hover {
  opacity: 0.92;
  filter: brightness(0.85);
  transform: translateY(-50%) translateX(-4px) scale(0.86) rotateY(7deg);
}

.device-stage-3d.phone-focus .mockup-phone-card {
  z-index: 20;
  right: 2%;
  top: 50%;
  transform: translateY(-50%) scale(1.05) rotateY(-4deg);
  opacity: 1;
  filter: brightness(1);
}

/* State 2: Desktop in Front */
.device-stage-3d.desktop-focus .mockup-desktop-card {
  z-index: 20;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) scale(1.05) rotateY(-2deg);
  opacity: 1;
  filter: brightness(1);
}

.device-stage-3d.desktop-focus .mockup-phone-card {
  z-index: 10;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(15px) scale(0.82) rotateY(-10deg);
  opacity: 0.75;
  filter: brightness(0.65);
}

.device-stage-3d.desktop-focus .mockup-phone-card:hover {
  opacity: 0.92;
  filter: brightness(0.85);
  transform: translateY(-50%) translateX(10px) scale(0.85) rotateY(-6deg);
}

/* Device Swap Button (⇆) */
.btn-device-swap {
  position: absolute;
  bottom: -0.75rem;
  right: 18%;
  z-index: 35;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background: rgba(18, 13, 16, 0.75);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-device-swap:hover {
  border-color: var(--border-strong);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1) rotate(180deg);
}

/* --------------------------------------------------------------------------
   Floating Controls (Language & Audio)
   -------------------------------------------------------------------------- */
.floating-bottom-controls {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-round-control {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-round-control:hover {
  border-color: var(--border-strong);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Entrance & Reveal Animations (Staggered like Cordially)
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
  animation: cordiallyReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay-0 { animation-delay: 0.05s; }
.reveal-delay-1 { animation-delay: 0.14s; }
.reveal-delay-2 { animation-delay: 0.22s; }
.reveal-delay-3 { animation-delay: 0.30s; }
.reveal-delay-4 { animation-delay: 0.38s; }
.reveal-delay-5 { animation-delay: 0.46s; }
.reveal-delay-device {
  animation: cordiallyDeviceReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
}

@keyframes cordiallyReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cordiallyDeviceReveal {
  0% {
    opacity: 0;
    transform: translateX(35px) scale(0.96);
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

/* --------------------------------------------------------------------------
   Modals & Popovers (Keeps page non-scrollable)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 7, 9, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: #171214;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.8);
  transform: translateY(25px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Mobile Adaptations (Spacious, Scrollable, Clean Stacked Buttons)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* Navbar: Hide cut-off action button on mobile */
  .landing-header {
    padding: 0.85rem 1.25rem;
  }

  .nav-actions-right {
    display: none !important;
  }

  .brand-wrapper {
    gap: 0.75rem;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-wordmark {
    font-size: 1.65rem;
  }

  .brand-tag-small {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  /* Hero stage allows comfortable natural scrolling */
  .hero-viewport-stage {
    position: relative;
    height: auto !important;
    min-height: 100dvh;
    padding-top: 5.25rem;
    padding-bottom: 3.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
  }

  .hero-main-grid {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  /* Clean rating badge on mobile without breaking lines */
  .rating-pill-badge {
    font-size: 0.72rem;
    padding: 0 0.75rem;
    min-height: 2.1rem;
    gap: 0.4rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    max-width: 100%;
  }

  .star-group {
    gap: 2px;
  }

  .star-icon {
    width: 11px;
    height: 11px;
  }

  .badge-social-proof {
    white-space: nowrap;
  }

  /* Headline & Description */
  .hero-display-headline {
    font-size: clamp(2.35rem, 9.5vw, 3.25rem);
    line-height: 1.05;
    margin-bottom: 1rem;
  }

  .hero-subtitle-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  /* CTAs: Stacked vertically (Atas dan Bawah) */
  .hero-cta-group {
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .hero-cta-buttons-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-btn-primary {
    width: 100% !important;
    min-height: 3.25rem;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .hero-btn-secondary {
    width: 100% !important;
    min-height: 3.25rem;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    border-radius: 9999px;
    white-space: nowrap;
  }

  .cta-microcopy-row {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.8125rem;
  }

  /* 3D Showcase Stage on Mobile */
  .hero-showcase-column {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .device-stage-3d {
    height: clamp(18rem, 44vh, 23rem);
    max-width: 100%;
    margin: 0 auto;
  }

  .device-stage-3d.desktop-focus .mockup-desktop-card {
    width: clamp(16.5rem, 76vw, 21.5rem);
    left: 2%;
    top: 52%;
    transform: translateY(-50%) scale(1) rotateY(0deg);
    opacity: 1;
    filter: brightness(1);
  }

  .device-stage-3d.desktop-focus .mockup-phone-card {
    width: clamp(9.5rem, 42vw, 12rem);
    right: 2%;
    top: 48%;
    transform: translateY(-50%) translateX(10px) scale(0.85) rotateY(-8deg);
    opacity: 0.72;
    filter: brightness(0.65);
  }

  .device-stage-3d.phone-focus .mockup-desktop-card {
    width: clamp(16.5rem, 76vw, 21.5rem);
    left: 2%;
    top: 52%;
    transform: translateY(-50%) scale(0.85) rotateY(6deg);
    opacity: 0.72;
    filter: brightness(0.65);
  }

  .device-stage-3d.phone-focus .mockup-phone-card {
    width: clamp(9.5rem, 42vw, 12rem);
    right: 2%;
    top: 48%;
    transform: translateY(-50%) scale(1.02) rotateY(-2deg);
    opacity: 1;
    filter: brightness(1);
  }

  /* Footer bullets on mobile */
  .hero-footer-features {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .rating-pill-badge {
    font-size: 0.68rem;
    padding: 0 0.65rem;
    gap: 0.3rem;
  }

  .hero-display-headline {
    font-size: 2.25rem;
  }

  .hero-subtitle-desc {
    font-size: 0.875rem;
  }
}
