/* =============================================
   LAVIJU LANDING PAGE — CSS
   Design System: Blue pastel monochrome
   Font: Inter
   ============================================= */

/* --- Design Tokens --- */
:root {
  /* Primary palette */
  --primary: #3565B0;
  --primary-light: #5F87BF;
  --primary-ultralight: #E8F0FA;
  --primary-dark: #244B87;
  --primary-darker: #1D3C6D;

  /* Secondary */
  --secondary: #466B9F;
  --secondary-light: #9AB4D6;

  /* Accent */
  --teal: #5BA3B5;
  --teal-light: #A8D4E0;

  /* Backgrounds */
  --bg: #F4F7FC;
  --bg-dark: #0D1B2A;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;

  /* Text */
  --text: #1E2A3A;
  --text-secondary: #52657E;
  --text-tertiary: #66758A;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border: #D8E2EF;
  --border-light: #EDF1F8;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(30,42,58,0.06);
  --shadow-md: 0 4px 12px rgba(30,42,58,0.08);
  --shadow-lg: 0 8px 32px rgba(30,42,58,0.1);
  --shadow-xl: 0 16px 48px rgba(30,42,58,0.12);
  --shadow-glow: 0 4px 20px rgba(74,127,212,0.25);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Container */
  --container: 1200px;
  --container-sm: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 4px;
}

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

/* --- Utility: Section layout --- */
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-ultralight);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-base);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74,127,212,0.35);
}

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

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ultralight);
}

.btn--white {
  background: var(--text-inverse);
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav--scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(190%) contrast(108%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(108%);
  border-bottom: 1px solid rgba(74,127,212,0.12);
  padding: 12px 0;
  box-shadow:
    0 18px 46px rgba(74,127,212,0.14),
    0 6px 22px rgba(30,42,58,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link--active {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-menu__link:hover {
  color: var(--primary);
}

/* =============================================
   HERO
   ============================================= */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(74,127,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-ultralight);
  border: 1px solid rgba(74,127,212,0.15);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s ease forwards;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1s ease forwards;
}

.store-badge {
  min-width: 156px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-badge--disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.store-badge:not(.store-badge--disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(30,42,58,0.22);
}

.store-badge:not(.store-badge--disabled):active {
  transform: translateY(0);
}

.store-badge:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}

.store-badge__icon {
  flex-shrink: 0;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.store-badge small {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  margin-bottom: 3px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Premium device treatment */
.phone-mockup {
  position: relative;
  width: 304px;
  height: 608px;
  transform: translateY(-10px) scale(0.92);
  transform-origin: center;
}

.phone-mockup__frame {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 6px;
  overflow: visible;
  border: 1px solid #101b2a;
  border-radius: 54px;
  background:
    linear-gradient(100deg, #182434 0%, #6d7b8c 8%, #182433 15%, #0f1927 48%, #536172 86%, #142131 94%),
    #172434;
  box-shadow:
    0 42px 100px rgba(23, 39, 62, 0.24),
    0 12px 34px rgba(23, 39, 62, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.36),
    inset 0 0 0 3px rgba(6,12,20,0.88);
  transform: perspective(1200px) rotateY(-3deg) rotateX(0.5deg);
  transform-origin: center center;
}

.phone-mockup__frame::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-left: 1px solid rgba(255,255,255,0.3);
  border-right: 1px solid rgba(255,255,255,0.12);
  border-radius: 51px;
  pointer-events: none;
  z-index: 20;
}

.phone-mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 14px 74px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 47px;
  background:
    radial-gradient(circle at 110% 2%, rgba(151,190,237,0.36), transparent 29%),
    linear-gradient(180deg, #f8faff 0%, #f1f5fb 66%, #eef3fa 100%);
}

.phone-mockup__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255,255,255,0.2), transparent 35%);
  pointer-events: none;
  z-index: 15;
}

.phone-mockup__button {
  position: absolute;
  width: 4px;
  border: 1px solid #101a27;
  background: linear-gradient(90deg, #536172, #152231 70%);
  box-shadow: inset 1px 0 rgba(255,255,255,0.24);
  z-index: 1;
}

.phone-mockup__button--action {
  top: 100px;
  left: -3px;
  height: 28px;
  border-radius: 3px 0 0 3px;
}

.phone-mockup__button--volume-up,
.phone-mockup__button--volume-down {
  left: -4px;
  height: 52px;
  border-radius: 4px 0 0 4px;
}

.phone-mockup__button--volume-up { top: 145px; }
.phone-mockup__button--volume-down { top: 210px; }

.phone-mockup__button--power {
  top: 170px;
  right: -4px;
  height: 82px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #152231, #5f6d7e);
}

.phone-mockup__island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 94px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: #05080d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 1px 3px rgba(0,0,0,0.28);
  z-index: 18;
}

.phone-mockup__island span {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 9px;
  top: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #243d58, #070b12 68%);
}

.mockup-status-bar {
  position: relative;
  height: 49px;
  padding: 14px 7px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #111c2a;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  z-index: 17;
}

.mockup-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-status-icons svg {
  width: 12px;
  height: 9px;
}

.mockup-battery {
  position: relative;
  width: 17px;
  height: 8px;
  padding: 1px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.mockup-battery::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 4px;
  right: -3px;
  top: 1px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  opacity: 0.55;
}

.mockup-battery i {
  display: block;
  width: 11px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}

.mockup-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px 2px 10px;
}

.mockup-greeting {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.35px;
}

.mockup-date {
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mockup-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, #d5e6fa, #8fbae8);
  box-shadow: 0 4px 12px rgba(55,91,139,0.18);
  color: var(--primary-darker);
  font-size: 12px;
  font-weight: 800;
}

.mockup-avatar span {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #4eb589;
}

.mockup-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 13px 14px 12px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 19px;
  background: linear-gradient(138deg, #2f5fa9 0%, #4a7fd4 54%, #82b1e3 100%);
  box-shadow: 0 12px 28px rgba(53,101,176,0.23), inset 0 1px rgba(255,255,255,0.2);
  color: white;
}

.mockup-hero-card::before,
.mockup-hero-card::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  z-index: -1;
}

.mockup-hero-card::before {
  width: 118px;
  height: 118px;
  right: -36px;
  top: -58px;
}

.mockup-hero-card::after {
  width: 70px;
  height: 70px;
  right: 15px;
  top: -35px;
}

.mockup-hero-topline,
.mockup-child,
.mockup-progress-row {
  display: flex;
  align-items: center;
}

.mockup-hero-topline,
.mockup-progress-row {
  justify-content: space-between;
}

.mockup-child { gap: 8px; }

.mockup-child-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  font-size: 11px;
  font-weight: 800;
}

.mockup-hero-label {
  margin-bottom: 3px;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.55px;
  opacity: 0.72;
}

.mockup-hero-title {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.mockup-hero-sub {
  margin: 8px 0 9px;
  font-size: 8px;
  line-height: 1.4;
  opacity: 0.82;
}

.mockup-live {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  background: rgba(15,42,77,0.18);
  font-size: 7px;
  font-weight: 700;
}

.mockup-live span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaf2cb;
  box-shadow: 0 0 0 3px rgba(170,242,203,0.14);
}

.mockup-progress-row {
  margin-bottom: 5px;
  font-size: 7px;
  opacity: 0.9;
}

.mockup-progress-row strong { font-size: 8px; }

.mockup-progress {
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(12,37,72,0.2);
}

.mockup-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, #c8e6ff);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.mockup-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
}

.mockup-section-title {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.15px;
}

.mockup-section-count {
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: #e5eefb;
  color: var(--primary-dark);
  font-size: 7px;
  font-weight: 800;
}

.mockup-activity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(212,224,239,0.72);
  border-radius: 15px;
  background: white;
  box-shadow: 0 6px 16px rgba(48,70,101,0.055);
}

.mockup-activity-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.mockup-activity-icon svg {
  width: 16px;
  height: 16px;
}

.mockup-activity-icon--blue {
  color: #3f73c2;
  background: #e8f0fb;
}

.mockup-activity-icon--teal {
  color: #438f9f;
  background: #e5f3f5;
}

.mockup-activity-copy {
  min-width: 0;
  flex: 1;
}

.mockup-activity-title {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
}

.mockup-activity-sub {
  color: var(--text-secondary);
  font-size: 7px;
}

.mockup-activity-arrow {
  color: #9aabc0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.mockup-insight {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(74,127,212,0.12);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(232,240,250,0.92), rgba(255,255,255,0.82));
}

.mockup-insight-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: white;
  box-shadow: 0 4px 10px rgba(47,81,128,0.08);
  color: var(--primary);
}

.mockup-insight-icon svg {
  width: 15px;
  height: 15px;
}

.mockup-insight div:last-child {
  display: flex;
  flex-direction: column;
}

.mockup-insight span {
  color: var(--text-secondary);
  font-size: 7px;
}

.mockup-insight strong {
  color: var(--text);
  font-size: 8px;
  line-height: 1.35;
}

.mockup-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 13px 13px;
  border-top: 1px solid rgba(211,222,237,0.78);
  background: rgba(255,255,255,0.9);
  z-index: 16;
}

.mockup-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9aabc0;
  font-size: 6px;
  font-weight: 700;
}

.mockup-tab svg {
  width: 16px;
  height: 16px;
}

.mockup-tab--active { color: var(--primary-dark); }

.mockup-home-indicator {
  position: absolute;
  width: 82px;
  height: 3px;
  left: 50%;
  bottom: 5px;
  border-radius: var(--radius-full);
  background: #172333;
  transform: translateX(-50%);
}

.phone-float {
  position: absolute;
  width: 184px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(213,225,240,0.86);
  border-radius: 17px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 38px rgba(39,62,94,0.14), inset 0 1px rgba(255,255,255,0.9);
  z-index: 4;
  animation: float 6s ease-in-out infinite;
}

.phone-float--1 {
  top: 86px;
  right: -151px;
  animation-delay: 0s;
}

.phone-float--2 {
  bottom: 78px;
  left: -154px;
  animation-delay: -2s;
}

.phone-float--3 {
  top: 244px;
  left: auto;
  right: -169px;
  animation-delay: -4s;
}

.phone-float__icon,
.phone-float__avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.phone-float__icon svg {
  width: 16px;
  height: 16px;
}

.phone-float__icon--blue {
  color: #3f73c2;
  background: #e8f0fb;
}

.phone-float__icon--teal {
  color: #438f9f;
  background: #e4f3f4;
}

.phone-float__avatar {
  color: white;
  background: linear-gradient(145deg, #6f9ed8, #4a7fd4);
  font-size: 8px;
  font-weight: 800;
}

.phone-float > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.phone-float span {
  color: var(--text-secondary);
  font-size: 7px;
  line-height: 1.4;
}

.phone-float strong {
  color: var(--text);
  font-size: 8px;
  line-height: 1.35;
  white-space: nowrap;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   GUIDING PRINCIPLES
   ============================================= */
.framework-source {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.framework-source {
  display: inline-block;
  margin-top: var(--space-md);
}

/* =============================================
   CTA
   ============================================= */
.cta {
  padding: var(--space-4xl) var(--space-lg);
}

.cta__inner {
  max-width: var(--container-sm);
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  border-radius: var(--radius-3xl);
  padding: var(--space-3xl) var(--space-2xl);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.cta__orb--1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  right: -80px;
  filter: blur(60px);
}

.cta__orb--2 {
  width: 200px;
  height: 200px;
  background: var(--teal-light);
  bottom: -60px;
  left: -40px;
  filter: blur(40px);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-base);
}

.cta__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav__menu-btn:hover {
  background: var(--primary-ultralight);
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-3xl);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__link:hover {
  color: white;
}

.footer__bottom {
  text-align: center;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .store-links {
    justify-content: center;
  }

  .nav__links {
    gap: var(--space-lg);
  }

}

/* Seven nav links stop fitting beside the logo below ~980px: switch to the menu button */
@media (max-width: 980px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {

  .phone-mockup {
    transform: scale(0.78);
    transform-origin: center;
  }

  .phone-float {
    width: 168px;
  }

  .phone-float--1 {
    right: -88px;
  }

  .phone-float--2 {
    left: -90px;
  }

  .phone-float--3 {
    display: none;
  }

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

  .footer__top {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer__links {
    gap: var(--space-2xl);
  }

}

@media (max-width: 480px) {
  .store-links {
    width: 100%;
  }

  .store-badge {
    min-width: 0;
    flex: 1;
    justify-content: center;
  }

  .phone-mockup {
    transform: scale(0.68);
  }

  .cta__inner {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

@media (max-width: 360px) {
  .phone-mockup {
    transform: scale(0.61);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero__badge,
  .store-links,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
