/* ============================================
   CAARVN — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --bg-primary: #f5f6f7;
  --bg-soft: #fafafa;
  --bg-deep: #0b0b0b;
  --card-bg: #ffffff;
  --text-primary: #0b0b0b;
  --text-secondary: #6b6b6b;
  --accent-dark: #0b0b0b;
  --success: #16a34a;
  --border-soft: #e5e7eb;
  --surface: #eaeaea;
  --font-stack: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.08);
  --nav-height: 64px;
}

/* --- Store Toast --- */
.store-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background-color: #0b0b0b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.store-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-stack);
  background-color: #f6f6f6;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/hero-pattern.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.1s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(11, 11, 11, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.35s var(--ease-smooth), height 0.35s var(--ease-smooth), border-color 0.35s ease;
  mix-blend-mode: difference;
}

.cursor-ring.hovering {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-primary);
  z-index: 10002;
  transition: none;
}

/* ============================================
   ENTRY OVERLAY
   ============================================ */

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-smooth);
}

.entry-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.entry-overlay.hidden {
  display: none;
}

.entry-line {
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 32px;
  transition: width 0.9s var(--ease-smooth);
}

.entry-line.animate {
  width: min(320px, 60vw);
}

.entry-logo {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-smooth) 0.4s, transform 0.7s var(--ease-smooth) 0.4s, letter-spacing 0.9s var(--ease-smooth) 0.6s;
}

.entry-logo.animate {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 18px;
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */

.main-content {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
}

.main-content.visible {
  opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: background-color 0.4s var(--ease-smooth), backdrop-filter 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(245, 246, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border-soft);
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: width 0.4s var(--ease-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.nav-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(245, 246, 247, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
  z-index: 999;
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile .nav-link {
  font-size: 1.25rem;
}

/* ============================================
   SHARED: SECTION
   ============================================ */

.section {
  padding: clamp(80px, 10vw, 160px) clamp(24px, 5vw, 80px);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 1.02rem;
  color: var(--text-secondary);
  opacity: 0.7;
  max-width: 540px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   HERO — Two-column, Apple-grade
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: calc(var(--nav-height) + 80px) clamp(32px, 6vw, 100px) 100px;
  overflow: hidden;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
}

/* --- Hero Left (Text) --- */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-heading {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 28px;
  background: linear-gradient(180deg, #0B0B0B 0%, #1a1a1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
  letter-spacing: 0.01em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), background-color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.12s;
}

.btn-primary {
  background-color: var(--accent-dark);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1.5px solid var(--border-soft);
}

.btn-secondary:hover {
  border-color: #c0c0c0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px dashed var(--border-soft);
}

.btn-outline:hover {
  border-color: #c0c0c0;
  border-style: solid;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Social proof */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-stars {
  display: flex;
  gap: 2px;
}

.hero-star {
  width: 14px;
  height: 14px;
  color: #facc15;
}

.hero-rating {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-proof-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  opacity: 0.5;
}

.hero-proof-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* --- Hero Right (Phone) --- */

.hero-phone-col {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Cinematic studio spotlight glow behind phone */
.hero-phone-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    circle at 55% 45%,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(245, 245, 245, 0.5) 20%,
    rgba(240, 240, 240, 0.25) 40%,
    rgba(255, 255, 255, 0) 65%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.4s var(--ease-smooth);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-phone-col.arrived .hero-phone-glow {
  opacity: 0.6;
  animation: glowBreathe 7s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.6; -webkit-transform: translate3d(-50%, -50%, 0) scale(1); transform: translate3d(-50%, -50%, 0) scale(1); }
  50% { opacity: 0.45; -webkit-transform: translate3d(-50%, -50%, 0) scale(1.04); transform: translate3d(-50%, -50%, 0) scale(1.04); }
}

.hero-phone-wrapper {
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  animation: heroFloat 7s var(--ease-smooth) infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes heroFloat {
  0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  50% { -webkit-transform: translate3d(0, -6px, 0); transform: translate3d(0, -6px, 0); }
}

.hero-phone-shadow {
  position: absolute;
  bottom: -32px;
  left: 50%;
  -webkit-transform: translate3d(-50%, 0, 0);
  transform: translate3d(-50%, 0, 0);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroShadow 7s var(--ease-smooth) infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes heroShadow {
  0%, 100% { -webkit-transform: translate3d(-50%, 0, 0) scale(1); transform: translate3d(-50%, 0, 0) scale(1); opacity: 1; }
  50% { -webkit-transform: translate3d(-50%, 0, 0) scale(0.85); transform: translate3d(-50%, 0, 0) scale(0.85); opacity: 0.7; }
}

.hero-phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0b0b0b 100%);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.10),
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03);
  transform: rotateY(-8deg) rotateX(2deg);
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-phone-bezel {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background-color: var(--bg-deep);
  border-radius: 20px;
  z-index: 10;
}

.hero-phone-notch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background-color: #f2f2f7;
  position: relative;
  overflow: hidden;
}

.hero-phone-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-phone-statusbar {
  position: absolute;
  top: 12px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.hero-phone-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-phone-icons {
  display: flex;
  gap: 5px;
}

.hero-phone-icons span {
  display: block;
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero-phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.18);
  z-index: 10;
}

/* Phone reflection shimmer */
.hero-phone::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.02) 46%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 54%,
    transparent 58%
  );
  pointer-events: none;
  border-radius: 48px;
}

/* --- Scroll Indicator --- */

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease-smooth);
  animation: scrollPulse 2.8s var(--ease-smooth) infinite;
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(5px); opacity: 0.2; }
}

/* ============================================
   MARQUEE TICKER
   ============================================ */

.marquee {
  background-color: var(--bg-deep);
  color: #ffffff;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.marquee-item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  opacity: 0.55;
}

.marquee-sep {
  opacity: 0.25;
  font-size: 0.7rem;
}

@keyframes marqueeScroll {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border-soft);
}

.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background-color: var(--border-soft);
  flex-shrink: 0;
}

/* ============================================
   STICKY PHONE SHOWCASE
   ============================================ */

.showcase {
  position: relative;
  background-color: transparent;
}

.showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 clamp(24px, 5vw, 80px);
}

.showcase-phone-col {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-sticky {
  position: sticky;
  top: 120px;
  width: 280px;
  height: 560px;
  margin-top: 120px;
  margin-bottom: 120px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  border: 3px solid var(--accent-dark);
  background-color: #000000;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-notch {
  display: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: scale(1.02) translateZ(0);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  padding: 24px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.phone-screen-placeholder:has(.showcase-screen-img) {
  padding: 0;
}

.phone-screen-placeholder.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.showcase-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.phone-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.phone-placeholder-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.phone-placeholder-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.phone-ui-bar {
  height: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.phone-ui-bar-short { width: 60%; }
.phone-ui-bar-med { width: 80%; }
.phone-ui-bar-long { width: 100%; }

.phone-ui-card {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-ui-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.phone-ui-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-ui-line {
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.1);
}

.phone-ui-line-sm { width: 40%; }
.phone-ui-line-md { width: 65%; }

.phone-ui-btn {
  height: 32px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-top: 4px;
}

.phone-ui-map {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  position: relative;
  overflow: hidden;
}

.phone-ui-map::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  transform: rotate(-15deg);
}

.phone-ui-map::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 10%;
  width: 70%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  transform: rotate(8deg);
}

.phone-ui-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

.phone-ui-dot-1 { top: 35%; left: 35%; }
.phone-ui-dot-2 { top: 50%; left: 60%; }

.phone-screen-color-1 { background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.phone-screen-color-2 { background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); }
.phone-screen-color-3 { background: linear-gradient(160deg, #0d1b2a 0%, #1b2838 50%, #1a3a4a 100%); }
.phone-screen-color-4 { background: linear-gradient(160deg, #111111 0%, #1c1c1c 50%, #2a2a2a 100%); }

.showcase-features-col {
  display: flex;
  flex-direction: column;
  padding: 160px 0;
}

.showcase-feature {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.showcase-feature-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.showcase-feature-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.showcase-feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 380px;
}

.showcase-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: rgba(22, 163, 74, 0.08);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.showcase-feature-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

/* ============================================
   TYPOGRAPHY BREAK
   ============================================ */

.type-break {
  padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 80px);
  text-align: center;
}

.type-break-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FEATURE GRID
   ============================================ */

.features {
  background-color: transparent;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header .section-subtext {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
  transition: left 0.8s var(--ease-smooth);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  border-color: rgba(11, 11, 11, 0.08);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  opacity: 0.75;
  line-height: 1.55;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */

.cta {
  background-color: var(--bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}

.cta .section-label {
  color: rgba(255, 255, 255, 0.45);
}

.cta .section-heading {
  max-width: 560px;
  margin: 0 auto 16px;
  color: #ffffff;
}

.cta .section-subtext {
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.5);
}

.cta .btn-primary {
  background-color: #ffffff;
  color: var(--bg-deep);
}

.cta .btn-primary:hover {
  box-shadow: 0 6px 32px rgba(255, 255, 255, 0.15);
}

.cta .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.cta .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
}

.cta .btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
}

.cta .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  border-style: solid;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px clamp(24px, 5vw, 80px) 48px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s var(--ease-smooth);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.footer-social-link:hover {
  background-color: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.footer-social-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
    padding-bottom: 120px;
  }

  .hero-content {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-phone-col {
    order: 2;
    perspective: none;
    -webkit-perspective: none;
  }

  .hero-phone {
    width: 260px;
    height: 540px;
    transform: rotateY(0deg) rotateX(0deg);
  }

  .hero-phone-glow {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 900px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .showcase-phone-col {
    position: sticky;
    top: var(--nav-height);
    z-index: 2;
    justify-content: center;
    padding: 24px 0 16px;
  }

  .phone-sticky {
    position: relative;
    top: auto;
    width: 200px;
    height: 400px;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Scale border-radius proportionally to match desktop curvature (40/280 ≈ 14.3%) */
  .phone-frame {
    border-radius: 29px;
  }

  .phone-screen {
    border-radius: 26px;
  }

  .showcase-features-col {
    padding: 20px 0 60px;
  }

  .showcase-feature {
    min-height: auto;
    padding: 32px 0;
    text-align: center;
  }

  .showcase-feature-desc {
    max-width: none;
    margin: 0 auto;
  }

  .showcase-feature-tag {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: auto;
    padding-bottom: 80px;
    gap: 40px;
  }

  .hero-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-phone {
    width: 260px;
    height: 540px;
    border-radius: 40px;
  }

  .hero-phone-bezel {
    border-radius: 33px;
  }

  .hero-phone-screen {
    border-radius: 33px;
  }

  .hero-phone-notch {
    width: 110px;
    height: 30px;
  }

  .hero-phone-glow {
    width: 320px;
    height: 320px;
  }

  /* Showcase mobile */
  .showcase.section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .phone-sticky {
    width: 180px;
    height: 360px;
  }

  /* Scale border-radius proportionally (180/280 ≈ 64.3% of desktop 40/37px) */
  .phone-frame {
    border-radius: 26px;
  }

  .phone-screen {
    border-radius: 23px;
  }

  .showcase-feature-title {
    font-size: 1.25rem;
  }

  .showcase-feature-desc {
    font-size: 0.92rem;
  }

  /* Stats */
  .stats-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-bar-inner {
    flex-wrap: wrap;
    gap: 28px 0;
    justify-content: center;
  }

  .stat-item {
    flex: 0 0 50%;
  }

  .stat-number {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .stat-divider {
    display: none;
  }

  /* Type break */
  .type-break {
    padding: clamp(60px, 10vw, 120px) 16px;
  }

  .type-break-heading {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  /* Features */
  .features.section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .section-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* CTA */
  .cta.section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta .btn-group {
    align-items: center;
  }

  /* Footer */
  .footer {
    padding: 48px 16px 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-bottom {
    margin-top: 28px;
  }

  .scroll-indicator {
    bottom: 16px;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  /* Marquee */
  .marquee-bar {
    padding: 14px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 60px;
    gap: 32px;
  }

  .hero-heading {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .hero-subtext {
    font-size: 0.88rem;
  }

  .hero-phone {
    width: 240px;
    height: 496px;
    border-radius: 38px;
  }

  .hero-phone-bezel {
    border-radius: 31px;
  }

  .hero-phone-screen {
    border-radius: 31px;
  }

  .hero-phone-notch {
    width: 90px;
    height: 26px;
  }

  .hero-phone-glow {
    width: 280px;
    height: 280px;
  }

  /* Showcase */
  .phone-sticky {
    width: 160px;
    height: 320px;
  }

  /* Scale border-radius proportionally (160/280 ≈ 57.1% of desktop 40/37px) */
  .phone-frame {
    border-radius: 23px;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .showcase-feature {
    padding: 24px 0;
  }

  .showcase-feature-number {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .showcase-feature-title {
    font-size: 1.1rem;
  }

  .showcase-feature-desc {
    font-size: 0.85rem;
  }

  /* Stats */
  .stat-item {
    flex: 0 0 50%;
  }

  .stat-number {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* Features */
  .features-grid {
    max-width: none;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .feature-card-title {
    font-size: 1rem;
  }

  .feature-card-desc {
    font-size: 0.85rem;
  }

  /* CTA */
  .cta .section-heading {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-logo {
    font-size: 0.9rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .entry-overlay {
    display: none;
  }

  .main-content {
    opacity: 1;
  }
}
