/* ==========================================================================
   Apple-Inspired Unified Design System
   Crafted for HitPoint, Diopter, and Loreweaver
   ========================================================================== */

:root {
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Global Theme - Dark Obsidian Default */
  --bg-primary: #050508;
  --bg-secondary: #0d0f17;
  --surface-card: rgba(22, 25, 35, 0.65);
  --surface-card-hover: rgba(30, 35, 48, 0.85);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;

  --nav-bg: rgba(5, 5, 8, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);

  /* Apple Accent Colors */
  --apple-blue: #2997ff;
  --apple-blue-hover: #0077ed;

  /* App Accents */
  --hitpoint-emerald: #10b981;
  --hitpoint-emerald-glow: rgba(16, 185, 129, 0.25);
  --hitpoint-amber: #f59e0b;
  --hitpoint-ruby: #ef4444;

  --diopter-gold: #d4af37;
  --diopter-gold-glow: rgba(212, 175, 55, 0.25);
  --diopter-brass: #e5c378;

  --loreweaver-amethyst: #a855f7;
  --loreweaver-amethyst-glow: rgba(168, 85, 247, 0.25);
  --loreweaver-emerald: #10d084;
  --loreweaver-cyan: #06b6d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #fbfbfd;
    --bg-secondary: #f5f5f7;
    --surface-card: rgba(255, 255, 255, 0.85);
    --surface-card-hover: rgba(255, 255, 255, 1);
    --surface-border: rgba(0, 0, 0, 0.08);
    --surface-border-strong: rgba(0, 0, 0, 0.16);

    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;

    --nav-bg: rgba(251, 251, 253, 0.8);
    --nav-border: rgba(0, 0, 0, 0.08);

    --hitpoint-emerald: #059669;
    --hitpoint-emerald-glow: rgba(5, 150, 105, 0.15);

    --diopter-gold: #b38600;
    --diopter-gold-glow: rgba(179, 134, 0, 0.15);

    --loreweaver-amethyst: #9333ea;
    --loreweaver-amethyst-glow: rgba(147, 51, 234, 0.15);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation (Apple Glassmorphism Bar)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-brand-logo {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Mobile-only CTA inside navigation drawer - hidden on desktop */
.nav-links-mobile-cta {
  display: none !important;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Navigation Hamburger Toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--text-primary);
  z-index: 1002;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* When drawer is open, animate toggle into X */
.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-mobile-toggle {
    display: flex;
  }

  .nav-wrapper .nav-pill {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 52px);
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--surface-border);
    overflow-y: auto;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.45rem;
    font-weight: 600;
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
  }

  .nav-links a.active,
  .nav-links a:hover {
    color: var(--text-primary);
  }

  .nav-links-mobile-cta {
    display: block !important;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-links-mobile-cta .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.45;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Official Apple App Store Badge */
.app-store-badge {
  display: inline-block;
  height: 40px;
  width: auto;
  transition: var(--transition-smooth);
  vertical-align: middle;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.app-store-badge-sm {
  height: 34px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--hitpoint-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--diopter-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-amethyst {
  background: rgba(168, 85, 247, 0.12);
  color: var(--loreweaver-amethyst);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
}

/* ==========================================================================
   Apps Bento Grid Showcase
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.app-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.app-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--surface-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-card-hitpoint {
  grid-column: span 6;
}

.app-card-diopter {
  grid-column: span 6;
}

.app-card-loreweaver {
  grid-column: span 12;
}

@media (max-width: 860px) {
  .app-card-hitpoint,
  .app-card-diopter,
  .app-card-loreweaver {
    grid-column: span 12;
  }
}

.card-top {
  margin-bottom: 2rem;
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.hero-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease;
}

.hero-app-icon:hover {
  transform: scale(1.04);
}

.policy-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 0.75rem;
}

.app-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.app-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.card-preview-stage {
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  height: 250px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) inset;
}

.card-preview-stage.stage-hitpoint {
  background: radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.16) 0%, rgba(8, 10, 14, 0.95) 75%);
}

.card-preview-stage.stage-diopter {
  background: radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.16) 0%, rgba(10, 10, 14, 0.95) 75%);
}

.card-preview-stage.stage-loreweaver {
  background: radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.16) 0%, rgba(10, 9, 15, 0.95) 75%);
  align-items: center;
  padding: 1.25rem;
}

.card-mini-iphone {
  width: 165px;
  background: #000;
  border-radius: 26px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 2px #181922,
    0 15px 35px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  line-height: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.app-card:hover .card-mini-iphone {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 2px #181922,
    0 22px 50px rgba(0, 0, 0, 0.85);
}

.card-mini-screen {
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
}

.card-mini-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.card-mini-mac {
  width: 100%;
  max-width: 580px;
  background: #0d0e16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .card-mini-mac {
  transform: translateY(-4px);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-border);
}

.card-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.link-privacy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-privacy:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Privacy Commitment Section
   ========================================================================== */
.privacy-banner {
  background: linear-gradient(135deg, rgba(22, 25, 35, 0.7) 0%, rgba(13, 15, 23, 0.9) 100%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 4rem 0;
  backdrop-filter: blur(20px);
}

.privacy-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .privacy-banner-grid {
    grid-template-columns: 1fr;
  }
}

.privacy-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.privacy-pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.privacy-pillar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.privacy-pillar-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   App Store / Apple Platform Badges
   ========================================================================== */
.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 3.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg-secondary);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

/* ==========================================================================
   Privacy Policy Document View
   ========================================================================== */
.policy-container {
  max-width: 800px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.policy-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  backdrop-filter: blur(20px);
}

@media (max-width: 640px) {
  .policy-card {
    padding: 1.75rem;
  }
}

.policy-header {
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.policy-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.policy-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--text-primary);
}

.policy-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.policy-body ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.policy-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.policy-body ul li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: var(--apple-blue);
  font-weight: bold;
}

.policy-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.policy-table th {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.policy-table td {
  color: var(--text-secondary);
}

.policy-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Product Showcase & Device Mockups (Apple-Grade)
   ========================================================================== */

/* Hero Device Showcase */
.hero-mockup-wrapper {
  position: relative;
  max-width: 980px;
  margin: 3.5rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(245, 158, 11, 0.12) 40%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.device-frame-iphone {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 85vw;
  background: #0a0b10;
  border-radius: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 3px #181920,
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 30px 80px -15px rgba(0, 0, 0, 0.9),
    0 0 80px -10px rgba(16, 185, 129, 0.35);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.device-frame-iphone:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 3px #181920,
    0 0 0 4px rgba(255, 255, 255, 0.15),
    0 40px 100px -15px rgba(0, 0, 0, 0.95),
    0 0 110px 0 rgba(16, 185, 129, 0.45);
}

.device-screen-container {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.device-screen-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 38px;
}

/* Floating Glass Stat Chips */
.floating-stat-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(22, 26, 38, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: floatSlow 6s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-chip-left {
  left: 5%;
  top: 28%;
  animation-delay: 0s;
}

.floating-chip-right {
  right: 5%;
  top: 55%;
  animation-delay: -3s;
}

.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chip-text-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.chip-text-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .floating-stat-chip {
    display: none;
  }
  .device-frame-iphone {
    width: 280px;
  }
}

/* ==========================================================================
   Horizontal Screenshot Gallery / Carousel
   ========================================================================== */
.gallery-section {
  padding: 5rem 0 3rem;
  position: relative;
}

.gallery-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.5rem 2.5rem;
  margin: 0 -1.5rem;
  padding-left: max(1.5rem, calc((100vw - 1180px) / 2));
  padding-right: max(1.5rem, calc((100vw - 1180px) / 2));
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent, var(--apple-blue));
}

.gallery-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-nav-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gallery-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent, var(--apple-blue));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow, rgba(0, 0, 0, 0.4));
}

.gallery-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, rgba(16, 185, 129, 0.4));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow, rgba(16, 185, 129, 0.15));
}

.gallery-card-img-wrap {
  position: relative;
  background: #090a0f;
  line-height: 0;
  overflow: hidden;
}

.gallery-card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.02);
}

.gallery-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, var(--apple-blue));
}

.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.gallery-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .gallery-card {
    flex: 0 0 320px;
  }
}

/* ==========================================================================
   Apple-Style Feature Split Showcases (Alternating Rows)
   ========================================================================== */
.feature-split-section {
  padding: 5rem 0;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
  margin-bottom: 7rem;
}

.feature-split:last-child {
  margin-bottom: 2rem;
}

.feature-split.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-split.reverse .feature-visual {
  order: 1;
}

.feature-split.reverse .feature-text {
  order: 2;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.feature-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.feature-detail-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-badge-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--accent-badge-border, rgba(255, 255, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-detail-text h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-detail-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-card-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-card-frame:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.feature-card-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-studio-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  background: #0d0e16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--accent-glow, rgba(168, 85, 247, 0.25));
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-studio-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 70px var(--accent-glow, rgba(168, 85, 247, 0.35));
}

.feature-studio-frame img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4.5rem;
  }
  .feature-split.reverse .feature-visual {
    order: 2;
  }
  .feature-split.reverse .feature-text {
    order: 1;
  }
}

/* ==========================================================================
   Apple Watch Wrist HUD Showcase Grid
   ========================================================================== */
.watch-showcase-container {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1) 0%, rgba(13, 15, 23, 0.6) 70%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  text-align: center;
}

.watch-cards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.watch-card {
  width: 220px;
  max-width: 80vw;
  background: #000;
  border-radius: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

.watch-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.2);
}

.watch-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.watch-card-label {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Technical Specs & On-Device Security Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.spec-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-box-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.spec-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-box-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Loreweaver Pocket Companion & Universal Grid
   ========================================================================== */
.companion-showcase-container {
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.12) 0%, rgba(13, 15, 23, 0.7) 70%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  text-align: center;
}

/* ==========================================================================
   Loreweaver Studio Canvas Window (macOS Desktop UI)
   ========================================================================== */
.studio-canvas-window {
  width: 100%;
  max-width: 860px;
  background: #0d0e16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 80px -10px var(--accent-glow, rgba(168, 85, 247, 0.3));
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.studio-canvas-window:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 100px -20px rgba(0, 0, 0, 0.95),
    0 0 110px 0 var(--accent-glow, rgba(168, 85, 247, 0.45));
}

.studio-titlebar {
  height: 40px;
  background: rgba(22, 24, 36, 0.85);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.studio-dots {
  display: flex;
  gap: 7px;
}

.studio-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.studio-titlebar-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.studio-titlebar-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--loreweaver-amethyst);
}

.studio-canvas-body {
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 50%, rgba(20, 22, 38, 0.6) 0%, #0a0b12 100%);
  position: relative;
  line-height: 0;
}

.studio-canvas-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 26, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 1.15rem;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent, var(--apple-blue));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow, rgba(0, 0, 0, 0.6));
}

