/* 
 * Ōree Website - Premium Redesign Styling System
 * Rebuilt from scratch for an ultra-premium, Apple-caliber editorial showcase.
 */

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

:root {
  color-scheme: dark;
  
  /* Font Families */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  
  /* Layout Constants */
  --content-width: 1200px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  /* Rainbow Brand Colors */
  --rainbow-1: #ff5ebc;
  --rainbow-2: #ff9a62;
  --rainbow-3: #ffe274;
  --rainbow-4: #75ffcf;
  --rainbow-5: #49e7ff;
  --rainbow-6: #aa7bff;
  
  /* Default Theme - Sunset / Coucher (Fallback) */
  --accent: #ff9a5e;
  --accent-rgb: 255, 154, 94;
  --accent-glow: rgba(255, 154, 94, 0.22);
  --accent-glow-strong: rgba(255, 154, 94, 0.45);
  
  --bg: #0d0907;
  --bg-deep: #030201;
  --grad-top: #160b08;
  --grad-mid: #090504;
  --grad-bot: #030201;
  
  --text: #fffaf5;
  --text-rgb: 255, 250, 245;
  --muted: rgba(255, 250, 245, 0.65);
  --dim: rgba(255, 250, 245, 0.4);
  
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.11);
  
  --orb-1: #ff9a5e;
  --orb-2: #ff5ebc;
  --orb-3: #ff9a62;
  
  --glass-opacity: 0.18;
  --glass-blend: screen;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.35);
  
  --shadow-color: rgba(0, 0, 0, 0.4);
}

/* --- SINGLE PREMIUM DARK THEME DEFINITION --- */

/* --- GENERAL RESET & BASE --- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-mid) 40%, var(--grad-bot) 100%);
  background-attachment: scroll;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- DYNAMIC BACKGROUND ORBS --- */

.ambient-orbs-container {
  display: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  mix-blend-mode: screen;
  transition: background 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-salt .ambient-orb {
  mix-blend-mode: multiply;
  opacity: 0.55;
  filter: blur(100px);
}

.orb-one {
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  animation: orbDriftOne 25s infinite alternate ease-in-out;
}

.orb-two {
  bottom: -15%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  animation: orbDriftTwo 35s infinite alternate ease-in-out;
}

.orb-three {
  top: 40%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 70%);
  animation: orbDriftThree 30s infinite alternate ease-in-out;
}

@keyframes orbDriftOne {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, 12%) scale(1.15); }
}

@keyframes orbDriftTwo {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, -8%) scale(1.1); }
}

@keyframes orbDriftThree {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, -10%) scale(1.2); }
}

/* --- PREMIUM INTERACTIVE GLASS --- */

.liquid-glass {
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px -10px var(--glass-shadow), 
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.theme-salt .liquid-glass {
  box-shadow: 0 8px 30px -10px var(--glass-shadow),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
}

/* Hover Reflection Layer Effect */
.glass-interactive {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background 0.4s ease;
}

.glass-interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255, 255, 255, 0.20),
    rgba(255, 255, 255, 0.08) 18%,
    transparent 42%
  );
  transition: opacity 0.35s ease;
}

.glass-interactive:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 20px 50px -15px var(--glass-shadow), 
              0 0 20px -2px var(--accent-glow);
}

.glass-interactive:hover::after {
  opacity: 1;
}

/* --- CANONICAL RAINBOW BRAND PILLS & BADGES --- */

/* Eyebrow Pill Badge */
.rainbow-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  position: relative;
  background: rgba(15, 12, 10, 0.65);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-salt .rainbow-eyebrow-pill {
  background: rgba(255, 255, 255, 0.8);
}

.rainbow-eyebrow-pill::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 99px;
  padding: 1.5px;
  background: linear-gradient(90deg, 
    var(--rainbow-1), var(--rainbow-2), var(--rainbow-3), 
    var(--rainbow-4), var(--rainbow-5), var(--rainbow-6), var(--rainbow-1)
  );
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spectrumSweep 6s linear infinite;
  pointer-events: none;
}

/* Pulsing Accent Dot */
.rainbow-eyebrow-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px var(--accent-glow-strong);
  animation: accentPulse 2s infinite alternate ease-in-out;
}

/* Brand Rainbow Badge around icons */
.brand-rainbow-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  background: transparent;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.brand-rainbow-badge::before {
  display: none;
}

.brand-badge-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

@keyframes spectrumSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes badgeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes accentPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* --- HOLOGRAPHIC BRAND WORDMARK --- */

.brand-wordmark {
  display: inline-block;
  overflow: visible;
  padding-top: 0.08em;
  margin-top: -0.08em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(135deg, #6FC5FF 0%, #9F89FF 35%, #FF8BC1 70%, #FFB678 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: holoFlow 10s ease infinite alternate;
  background-size: 200% 200%;
}

.brand-wordmark > span {
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.brand-o-mark {
  position: relative;
  display: inline-block;
}

.brand-o-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.07em;
  width: 0.5em;
  height: 0.07em;
  border-radius: 999px;
  transform: translateX(-50%);
  background: currentColor;
}

.brand-wordmark .brand-o-mark::before {
  background: linear-gradient(90deg, #6FC5FF 0%, #9F89FF 45%, #FF8BC1 100%);
}

.site-header .brand-o-mark::before {
  top: -0.05em;
  height: 0.075em;
}

.hero-lockup h1 .brand-o-mark::before {
  top: -0.045em;
  width: 0.52em;
  height: 0.065em;
}

@keyframes holoFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* --- STRUCTURE & LAYOUT COMPONENTS --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: rgba(var(--bg-deep), 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
}

.site-header .brand-wordmark {
  font-size: 24px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* --- THE IMPRESSIVE CINEMATIC HERO --- */

.hero {
  position: relative;
  width: 100%;
  min-height: min(94svh, 980px);
  padding: 104px 40px clamp(92px, 9svh, 132px) 40px;
  display: grid;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: blur(10px) saturate(125%);
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.8s ease;
}

.theme-salt .hero-backdrop {
  opacity: 0.04;
}

.hero-shade {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(3, 2, 1, 0.05), rgba(3, 2, 1, 0.88)),
    radial-gradient(circle at 70% 44%, transparent 8%, rgba(3, 2, 1, 0.24) 42%, var(--bg-deep) 94%);
  pointer-events: none;
  z-index: -1;
}

.hero-layout {
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  width: 100%;
  max-width: 610px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-lockup {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  row-gap: 14px;
  margin-bottom: 26px;
}

.hero-icon {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
}

.hero-icon img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  z-index: 1;
}

.hero-lockup > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.hero-lockup h1 {
  font-size: clamp(70px, 8vw, 112px);
  line-height: 1.05;
}

.hero-kicker {
  margin-bottom: 14px;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.23;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 650px;
}

/* Magic Pill Widget */
.magic-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -5px var(--shadow-color);
  max-width: 600px;
  margin-bottom: 36px;
  text-align: left;
}

.magic-pill span:last-child {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.pill-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pill-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.primary-action {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 14px 28px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 8px 24px -6px rgba(var(--accent-rgb), 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(var(--accent-rgb), 0.6);
}

.secondary-action {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.3s ease;
}

.secondary-action:hover {
  transform: translateY(-2px);
  background: var(--panel-strong);
}

/* Premium Apple-Style Theme Selector */
.theme-selector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.theme-selector-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.theme-picker-segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.theme-salt .theme-picker-segmented {
  background: rgba(47, 35, 30, 0.05);
  border-color: rgba(47, 35, 30, 0.08);
}

.theme-chip {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.theme-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color);
  margin-right: 6px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.theme-chip:hover {
  color: var(--text);
}

.theme-chip.active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
}

.theme-salt .theme-chip.active {
  background: #fff;
  box-shadow: 0 4px 10px rgba(47, 35, 30, 0.08);
}

.availability {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  margin-top: 18px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(var(--text-rgb), 0.78);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* --- THE HERO PHONE STAGE --- */

.hero-stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 62svh, 660px);
  min-height: 500px;
  margin-top: 0;
  isolation: isolate;
  z-index: 2;
}

.hero-device-scene {
  position: relative;
  width: min(100%, 690px);
  height: 100%;
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 7, 6, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 110px -46px rgba(0, 0, 0, 0.8);
}

.hero-device-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 2, 1, 0.78), rgba(3, 2, 1, 0.08) 44%, rgba(3, 2, 1, 0.66)),
    linear-gradient(180deg, rgba(3, 2, 1, 0.12), rgba(3, 2, 1, 0.84));
}

.hero-device-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(54%, 330px);
  height: 80px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72), transparent 68%);
  filter: blur(18px);
  opacity: 0.76;
  z-index: 1;
  pointer-events: none;
}

.scene-backdrop {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  object-fit: cover;
  opacity: 0.58;
  filter: blur(24px) saturate(1.32) brightness(0.92);
  transform: scale(1.08);
  pointer-events: none;
}

.scene-backdrop-a {
  z-index: -3;
  transform: translateX(-14%) scale(1.12);
}

.scene-backdrop-b {
  z-index: -4;
  opacity: 0.38;
  mix-blend-mode: screen;
  transform: translateX(16%) scale(1.18);
}

.scene-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% 38%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 18% 16%, rgba(73, 231, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 154, 94, 0.20), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.28));
}

.scene-hand {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: blur(0.2px);
  opacity: 0.48;
}

.scene-hand-palm {
  width: min(42%, 270px);
  height: min(34%, 210px);
  left: 51%;
  bottom: 4%;
  border-radius: 46% 42% 34% 44% / 58% 48% 38% 40%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 224, 198, 0.80), transparent 24%),
    linear-gradient(135deg, rgba(163, 84, 48, 0.88), rgba(64, 27, 18, 0.90));
  transform: translateX(-12%) rotate(-8deg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.44);
}

.scene-hand-thumb {
  width: min(13%, 82px);
  height: min(42%, 260px);
  left: 35%;
  bottom: 10%;
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(231, 162, 116, 0.84), rgba(74, 31, 22, 0.92));
  transform: rotate(13deg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
}

.scene-hand-fingers {
  width: min(10%, 64px);
  height: min(44%, 280px);
  left: 63%;
  bottom: 8%;
  border-radius: 999px;
  background: linear-gradient(168deg, rgba(237, 172, 126, 0.76), rgba(70, 28, 18, 0.90));
  transform: rotate(-8deg);
  box-shadow:
    22px -4px 0 -2px rgba(166, 91, 58, 0.56),
    42px 3px 0 -8px rgba(125, 62, 42, 0.46),
    0 22px 48px rgba(0, 0, 0, 0.42);
}

/* Premium iPhone mockup */
.phone-frame {
  --phone-width: min(27vw, 232px);
  --phone-radius: calc(var(--phone-width) * 0.18);
  --phone-bezel: max(5px, calc(var(--phone-width) * 0.028));
  width: var(--phone-width);
  aspect-ratio: 760 / 1650;
  border-radius: var(--phone-radius) / calc(var(--phone-radius) * 1.08);
  background: transparent;
  border: 0;
  box-shadow:
    0 28px 72px -18px rgba(0, 0, 0, 0.72);
  overflow: visible;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
  display: block;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--phone-radius) / calc(var(--phone-radius) * 1.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: calc(var(--phone-bezel) * -1);
  border-radius: calc(var(--phone-radius) + var(--phone-bezel)) / calc((var(--phone-radius) + var(--phone-bezel)) * 1.08);
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.05) 18%, rgba(0, 0, 0, 0.98) 48%, rgba(255, 255, 255, 0.18) 100%),
    #050506;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 max(2px, calc(var(--phone-bezel) * 0.45)) rgba(0, 0, 0, 0.88);
  z-index: -1;
}

.phone-frame::before {
  content: none;
}

.hero-phone-main {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  z-index: 5;
  --phone-width: min(29vw, 300px);
  transform: translateY(4px);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.56));
}

.hero-phone-left {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  z-index: 3;
  --phone-width: min(17vw, 184px);
  transform: translateX(-182px) translateY(24px) rotate(-9deg);
  opacity: 0.58;
  filter: blur(0.2px) saturate(0.92);
}

.hero-phone-right {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  z-index: 3;
  --phone-width: min(17vw, 184px);
  transform: translateX(182px) translateY(26px) rotate(9deg);
  opacity: 0.58;
  filter: blur(0.2px) saturate(0.92);
}

/* --- THE EDITORIAL BENTO GRID --- */

.section-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 100px 40px;
}

.section-header {
  max-width: 650px;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 16px;
}

.benefits-band {
  padding-top: 80px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.benefit-card {
  min-height: 240px;
  padding: 34px;
}

.benefit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.benefit-card h3 {
  margin: 28px 0 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.benefit-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 36px;
  width: 100%;
  align-items: stretch;
}

.bento-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 540px;
  overflow: hidden;
}

.bento-card:not(.bento-large):not(.bento-manifesto) {
  min-height: 700px;
}

.bento-large {
  grid-column: span 2;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 18px;
}

.bento-card p {
  max-width: 620px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.62;
}

.bento-card > div:first-child {
  position: relative;
  z-index: 2;
}

.bento-manifesto {
  grid-column: span 2;
  min-height: auto;
  padding: 46px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 154, 94, 0.18), transparent 38%),
    radial-gradient(circle at 86% 78%, rgba(73, 231, 255, 0.13), transparent 40%),
    var(--panel);
}

.manifesto-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.manifesto-list span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(var(--text-rgb), 0.82);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Bento Card Visual Elements */
.bento-visual {
  width: 100%;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 36px;
  padding: 46px 0 52px;
  overflow: visible;
}

/* Bento Home Layout overrides */
.bento-card-home {
  flex-direction: row;
  align-items: center;
  gap: 48px;
  min-height: 540px;
}

.bento-card-home .bento-text {
  flex: 1.05;
  max-width: 520px;
}

.bento-card-home .bento-showcase {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 360px;
  align-items: center;
  overflow: visible;
}

.bento-card-home .phone-frame {
  --phone-width: 190px;
  transform: translateY(10px);
}

.phone-frame-compact {
  --phone-width: 156px;
}

.phone-frame-pair {
  --phone-width: 148px;
}

.bento-card-home .phone-frame-pair-left {
  transform: translateX(-18px);
}

.bento-card-home .phone-frame-pair-right {
  transform: translateX(18px);
  z-index: 2;
}

/* Floating note in Bento */
.floating-note {
  position: absolute;
  top: 30px;
  left: -20px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10;
  max-width: 180px;
  font-size: 13px;
}

.floating-note strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.floating-note span {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

/* --- THE HORIZONTAL SCREENS RAIL --- */

.screens-band {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screen-rail-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 20px 40px 60px 40px;
  scroll-snap-type: x mandatory;
  -scrollbar-width: none;
}

.screen-rail-wrap::-webkit-scrollbar {
  display: none;
}

.screen-rail {
  display: inline-flex;
  gap: 32px;
  padding-left: calc((100vw - var(--content-width)) / 2);
  padding-right: calc((100vw - var(--content-width)) / 2);
}

.screen-card {
  width: 280px;
  scroll-snap-align: center;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.screen-card .phone-frame {
  --phone-width: 280px;
  width: 100%;
  margin-bottom: 18px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.screen-card:hover .phone-frame {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 30px 80px -10px var(--glass-shadow), 0 0 30px -5px var(--accent-glow);
}

.screen-card figcaption {
  padding: 4px;
}

.screen-card figcaption span {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.screen-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* --- THE ADVANCED MANAGEMENT SECTION --- */

.advanced-section {
  position: relative;
}

.connection-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 34px;
  width: 100%;
  margin: 0 0 42px;
  padding: 36px;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 24%, rgba(77, 216, 255, 0.18), transparent 34%),
    radial-gradient(circle at 16% 78%, rgba(255, 134, 91, 0.18), transparent 36%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px -48px rgba(0, 0, 0, 0.9);
}

.connection-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 18px 0 18px;
  max-width: 560px;
}

.connection-copy p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.62;
  max-width: 620px;
}

.connection-phones {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.connection-phone {
  --phone-width: min(22vw, 214px);
  grid-area: 1 / 1;
}

.connection-phone-front {
  z-index: 2;
  transform: translateX(-82px) rotate(-5deg);
}

.connection-phone-back {
  z-index: 1;
  opacity: 0.78;
  transform: translateX(88px) translateY(26px) rotate(7deg);
  filter: saturate(0.92);
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 28px;
  width: 100%;
}

.management-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.management-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.management-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.management-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.friendly-note {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  text-align: center;
  max-width: 800px;
  margin: 60px auto 0 auto;
  line-height: 1.5;
}

/* --- BRAND BOUNDARIES (HOW IT WORKS) --- */

.boundaries-band {
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.02), transparent);
}

.boundaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 32px;
  width: 100%;
  margin-top: 50px;
}

.boundary-item {
  padding: 40px;
  position: relative;
}

.boundary-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}

.boundary-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.boundary-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- TRUST & COMPLIANCE PILL --- */

.trust-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 40px;
}

.trust-pill {
  max-width: 650px;
  background: var(--panel);
  border-color: var(--line);
  margin-bottom: 24px;
}

.trust-pill span:last-child {
  font-size: 14px;
  color: var(--dim);
}

.text-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.8;
}

/* --- PREMIUM FOOTER --- */

.site-footer {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
}

.site-footer span {
  font-size: 16px;
  font-weight: 800;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.site-footer a {
  text-decoration: none;
  color: var(--dim);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* --- INTERACTIVE iOS LIQUID GLASS FLOATING DOCK --- */

.floating-dock-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none; /* Let clicks pass through outside the dock */
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-dock-wrapper.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
  pointer-events: auto; /* Enable clicks inside the dock */
  transition: border-color 0.4s ease;
}

.theme-salt .floating-dock-container {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(47, 35, 30, 0.12);
  box-shadow: 0 15px 35px rgba(47, 35, 30, 0.08), 
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Dock home button */
.dock-home-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-salt .dock-home-btn {
  background: rgba(47, 35, 30, 0.05);
  border-color: rgba(47, 35, 30, 0.05);
}

.dock-home-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Home Icon */
.dock-icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%23fffaf5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Custom SVG for watched selector in JavaScript based on active theme accent */

/* Core CTA */
.dock-cta-main {
  height: 44px;
  min-width: 140px;
  padding: 0 24px;
  border-radius: 99px;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 15px -3px rgba(var(--accent-rgb), 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-cta-main:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px -3px rgba(var(--accent-rgb), 0.6);
}

/* Contact Round button */
.dock-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-salt .dock-circle-btn {
  background: rgba(47, 35, 30, 0.05);
  border-color: rgba(47, 35, 30, 0.05);
}

.dock-circle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.theme-salt .dock-circle-btn:hover {
  background: rgba(47, 35, 30, 0.08);
}

/* Message Bubble Icon */
.bubble-icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%23fffaf5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-3.658A7.953 7.953 0 0 1 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.theme-salt .bubble-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.2' stroke='%232f231e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-3.658A7.953 7.953 0 0 1 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z' /%3E%3C/svg%3E");
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    max-width: 760px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero-lockup > div:last-child {
    align-items: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .hero-stage {
    height: 500px;
    min-height: 460px;
  }

  .hero-device-scene {
    width: min(100%, 640px);
  }

  .hero-phone-main {
    --phone-width: 244px;
  }

  .hero-phone-left,
  .hero-phone-right {
    --phone-width: 168px;
  }

  .hero-phone-left {
    transform: translateX(-150px) translateY(28px) rotate(-8deg);
  }

  .hero-phone-right {
    transform: translateX(150px) translateY(28px) rotate(8deg);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
  }

  .bento-manifesto {
    grid-column: span 2;
  }

  .manifesto-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card-home {
    flex-direction: column;
    align-items: stretch;
  }

  .bento-card-home .bento-text {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
    height: 74px;
  }
  
  .site-header nav {
    display: none; /* Hide top nav links on mobile in favor of floating dock */
  }
  
  .hero {
    padding: 104px 20px 34px 20px;
  }

  .hero-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

  .hero-icon img {
    width: 84px;
    height: 84px;
  }
  
  .hero-lockup h1 {
    font-size: 68px;
  }
  
  .hero-line {
    width: min(100%, 350px);
    font-size: 18px;
    line-height: 1.32;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    width: min(350px, calc(100vw - 40px));
    align-self: center;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .hero-pill {
    width: min(100%, 350px);
    border-radius: 24px;
  }

  .hero-trust-row {
    width: min(100%, 350px);
  }

  .hero-trust-row span {
    flex: 1 1 150px;
    justify-content: center;
    text-align: center;
  }
  
  .hero-stage {
    height: 420px;
    min-height: 360px;
    overflow: visible;
  }

  .hero-device-scene {
    width: min(100%, 390px);
    border-radius: 28px;
  }
  
  .phone-frame {
    --phone-width: 172px;
  }

  .hero-phone-main {
    --phone-width: 190px;
  }
  
  .hero-phone-left {
    --phone-width: 122px;
    transform: translateX(-88px) translateY(28px) rotate(-7deg);
  }
  
  .hero-phone-right {
    --phone-width: 122px;
    transform: translateX(88px) translateY(28px) rotate(7deg);
  }

  .scene-hand-palm {
    width: 220px;
    height: 150px;
    left: 50%;
    bottom: 1%;
  }

  .scene-hand-thumb {
    width: 52px;
    height: 190px;
    left: 28%;
    bottom: 9%;
  }

  .scene-hand-fingers {
    width: 42px;
    height: 190px;
    left: 66%;
    bottom: 8%;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: auto;
  }
  
  .bento-large {
    grid-column: span 1;
  }

  .bento-manifesto {
    grid-column: span 1;
    min-height: auto;
  }

  .manifesto-list {
    grid-template-columns: 1fr;
  }
  
  .bento-card-home {
    flex-direction: column;
    min-height: auto;
    padding: 28px;
  }

  .bento-card {
    min-height: auto;
    padding: 30px;
  }

  .bento-card:not(.bento-large):not(.bento-manifesto) {
    min-height: auto;
  }

  .bento-card h3 {
    font-size: 24px;
  }

  .bento-card p {
    font-size: 16px;
    line-height: 1.58;
  }

  .bento-visual {
    min-height: 290px;
    margin-top: 28px;
    padding: 20px 0 30px;
  }

  .phone-frame-compact {
    --phone-width: 132px;
  }

  .connection-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .connection-phones {
    min-height: 330px;
  }

  .connection-phone {
    --phone-width: 128px;
  }

  .connection-phone-front {
    transform: translateX(-56px) rotate(-5deg);
  }

  .connection-phone-back {
    transform: translateX(54px) translateY(20px) rotate(7deg);
  }
  
  .bento-card-home .bento-showcase {
    width: 100%;
    height: 240px;
    align-items: center;
  }
  
  .bento-card-home .phone-frame {
    --phone-width: 120px;
    transform: translateY(0);
  }
  
  .management-grid {
    grid-template-columns: 1fr;
  }
  
  .boundaries-grid {
    grid-template-columns: 1fr;
  }

  .floating-note {
    left: 8px;
    top: 12px;
  }

  .floating-dock-container {
    max-width: calc(100vw - 24px);
  }

  .dock-home-btn span:last-child {
    display: none;
  }

  .dock-home-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  
  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: auto;
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* --- PREMIUM LIGHTBOX DEVICE VIEWPORT --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 6, 5, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-container {
  transform: scale(1) translateY(0);
}

/* Clay-style premium iPhone container */
.lightbox-phone {
  position: relative;
  width: min(82vw, 375px);
  height: calc(min(82vw, 375px) * (1650 / 760));
  max-height: 78vh;
  border-radius: 48px;
  box-shadow: 0 45px 120px -20px rgba(0, 0, 0, 0.95), 
              0 0 0 12px #201a17, 
              0 0 0 13.5px rgba(255, 255, 255, 0.06);
  background: #030201;
  overflow: hidden;
  box-sizing: content-box;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic Island Notch */
.lightbox-phone::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 10;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  max-width: 500px;
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
}

.lightbox-caption span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2010;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2010;
  user-select: none;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.lightbox-arrow-left {
  left: 48px;
}

.lightbox-arrow-right {
  right: 48px;
}

/* Hide arrows on small displays to keep mobile layout clean */
@media (max-width: 768px) {
  .lightbox-arrow {
    display: none;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}