/*
 * Rotation Screen Orientation Rotator - Unified CSS Stylesheet
 * Style Archetype: Material You (Android Light Theme)
 * Core Colors: Indigo (#5c6bc0) & Coral Accent (#ff8a80)
 */

:root {
  --primary: #5c6bc0;
  --primary-hover: #4a57a0;
  --primary-container: #e0e4f9;
  --on-primary-container: #18204c;
  --accent: #ff8a80;
  --accent-hover: #ff7060;
  --accent-container: #ffe7e5;
  --on-accent-container: #60140c;
  --bg-light: #f0f4f9;
  /* Comfort warm light tint background like Android 14/15 */
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;
  --border-color: rgba(92, 107, 192, 0.15);
  --border-hover: rgba(255, 138, 128, 0.35);
  --text-primary: #1a1c22;
  --text-secondary: #43474e;
  --text-muted: #73777f;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(92, 107, 192, 0.04);
  --shadow-md: 0 12px 32px rgba(92, 107, 192, 0.08);
  --shadow-lg: 0 20px 60px rgba(92, 107, 192, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
  width: 100%;
}

/* Ambient Radial Glow Backgrounds (Material Organic Glows) */
body::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(92, 107, 192, 0.12) 0%, rgba(240, 244, 249, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 138, 128, 0.08) 0%, rgba(240, 244, 249, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Header & Navigation (Material Glass) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(240, 244, 249, 0.8);
  border-bottom: 1px solid rgba(92, 107, 192, 0.08);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(92, 107, 192, 0.2);
  object-fit: cover;
  transition: var(--transition);
}

.logo-link:hover .logo-img {
  transform: rotate(8deg) scale(1.05);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--accent-container);
  color: var(--on-accent-container);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  border: 1px solid rgba(255, 138, 128, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(92, 107, 192, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(92, 107, 192, 0.05);
}

.nav-link.active {
  color: var(--on-primary-container);
  background: var(--primary-container);
}

.nav-btn {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(92, 107, 192, 0.2);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(92, 107, 192, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

/* Main Container Layout */
main {
  flex: 1;
  overflow-x: hidden;
  width: 100%;
}

.section {
  padding: 80px 24px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section-card-glass {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  padding: 50px 40px;
}

.section-card-gradient {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

.section-compact {
  margin-top: 36px;
  padding: 40px 24px;
}

.section-about-preview {
  margin-top: 60px;
  padding: 80px 24px;
  border: none;
  background: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.section-download {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 50%, rgba(92, 107, 192, 0.06) 0%, rgba(240, 244, 249, 0) 60%);
  border-top: 1px solid rgba(92, 107, 192, 0.06);
}

.version-dashboard-layout .comp-matrix-card {
  background: linear-gradient(135deg, rgba(28, 37, 65, 0.03) 0%, rgba(28, 37, 65, 0.07) 100%);
  border: 1px solid rgba(92, 107, 192, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.version-dashboard-layout .toc-card {
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid rgba(92, 107, 192, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-flow-container {
  position: relative;
  border-left: 2px solid rgba(92, 107, 192, 0.12);
  padding-left: 40px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tech-flow-line {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--accent) 100%);
}

.tech-flow-bullet {
  position: absolute;
  left: -53px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.tech-flow-bullet-primary {
  border: 4px solid var(--primary);
  box-shadow: 0 0 12px rgba(92, 107, 192, 0.3);
}

.tech-flow-bullet-primary div {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.tech-flow-bullet-accent {
  border: 4px solid var(--accent);
  box-shadow: 0 0 12px rgba(255, 138, 128, 0.3);
}

.tech-flow-bullet-accent div {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-content {
  text-align: left;
}

.hero-tag {
  background: var(--primary-container);
  color: var(--on-primary-container);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1b1b1f;
}

.hero-title span.brand-h1 {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #7e8ce0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn {
  background: var(--primary);
  color: white;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(92, 107, 192, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(92, 107, 192, 0.35);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

/* Verification/Official Badges Grid */
.official-badge-list {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.badge-item svg {
  color: #22c55e;
  width: 16px;
  height: 16px;
}

/* Material You Grid Cards & Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 107, 192, 0.2);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.bento-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.bento-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* Interactive Showcase Section Styles */
.interactive-showcase-container {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-tab {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(92, 107, 192, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.showcase-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--primary);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(4px);
  border-color: rgba(92, 107, 192, 0.12);
  box-shadow: var(--shadow-sm);
}

.showcase-tab.active {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.showcase-tab.active::before {
  width: 5px;
}

.showcase-tab-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: monospace;
  line-height: 1.1;
  transition: var(--transition);
}

.showcase-tab.active .showcase-tab-number {
  color: var(--primary);
}

.showcase-tab-content {
  flex: 1;
}

.showcase-tab-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition);
}

.showcase-tab.active .showcase-tab-title {
  color: var(--primary);
}

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

/* Premium CSS Phone Mockup */
.showcase-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.premium-phone-mockup {
  width: 290px;
  aspect-ratio: 9 / 19.5;
  background: #12131a;
  border: 14px solid #1a1c24;
  border-radius: 46px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.25),
    0 15px 35px rgba(92, 107, 192, 0.15),
    inset 0 0 4px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transform: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.premium-phone-mockup:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.28),
    0 20px 45px rgba(92, 107, 192, 0.18),
    inset 0 0 4px rgba(255, 255, 255, 0.2);
}

.phone-dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}

.phone-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.03) 40%,
      rgba(255, 255, 255, 0) 41%,
      rgba(255, 255, 255, 0) 100%);
  z-index: 8;
  pointer-events: none;
}

.phone-inner-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
}

.showcase-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.showcase-screen-img.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 2;
}

/* Screenshot Hero Section Block (Right Side) */
.hero-screenshots-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup-frame {
  width: 250px;
  background: #fff;
  border: 10px solid #1c1c1e;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  aspect-ratio: 9/19.5;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  z-index: 2;
}

.phone-mockup-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-mockup-shadow-left {
  position: absolute;
  width: 210px;
  border: 6px solid #2c2c2e;
  border-radius: 36px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9/19.5;
  overflow: hidden;
  left: 20px;
  transform: rotate(-10deg) translateY(20px);
  opacity: 0.65;
  z-index: 1;
}

.phone-mockup-shadow-right {
  position: absolute;
  width: 210px;
  border: 6px solid #2c2c2e;
  border-radius: 36px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9/19.5;
  overflow: hidden;
  right: 20px;
  transform: rotate(10deg) translateY(20px);
  opacity: 0.65;
  z-index: 1;
}

/* Subpage Typography & Content Blocks */
.subpage-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px;
}

.subpage-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-primary);
}

.subpage-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* Premium Asymmetric Grid Layout for Subpages */
.subpage-layout-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 45px;
}

.layout-left-card {
  grid-column: span 4;
  position: sticky;
  top: 96px;
}

.layout-right-content {
  grid-column: span 8;
}

/* About Page: Left side Sticky Manifesto Card */
.brand-manifesto-card {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.brand-manifesto-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(92, 107, 192, 0.18);
}

.brand-manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.manifesto-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 6px 12px rgba(92, 107, 192, 0.12));
  display: block;
}

.manifesto-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.manifesto-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.manifesto-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.manifesto-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-container);
  color: var(--on-primary-container);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.manifesto-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: left;
}

.manifesto-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(92, 107, 192, 0.15);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.manifesto-download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(92, 107, 192, 0.25);
}

.manifesto-download-btn svg {
  width: 18px;
  height: 18px;
}

/* Guide Page: Left side Sticky TOC Panel */
.toc-card {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.toc-card:hover {
  box-shadow: var(--shadow-md);
}

.toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 107, 192, 0.06);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 700;
  transition: var(--transition);
}

.toc-item a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.toc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-light);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  transition: var(--transition);
}

.toc-item a:hover .toc-icon {
  background: var(--primary);
  color: white;
}

/* Guide Page: Right side Bento grid for brand instructions */
.brand-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.brand-bento-card {
  background: var(--bg-light);
  border: 1px solid rgba(92, 107, 192, 0.04);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.brand-bento-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: rgba(92, 107, 192, 0.12);
  transform: translateY(-2px);
}

.brand-bento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.brand-bento-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-bento-card p {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  color: var(--text-secondary) !important;
}

/* History Page: Left side Sticky compatibility Matrix card */
.comp-matrix-card {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.matrix-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(92, 107, 192, 0.04);
}

.matrix-item:last-child {
  border-bottom: none;
}

.matrix-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.matrix-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-container);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.content-block h3 {
  font-size: 1.45rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-block h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

.content-block p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-block ul {
  list-style: none;
  margin-left: 6px;
  margin-bottom: 20px;
}

.content-block li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid #22c55e;
  border-bottom: 2.5px solid #22c55e;
  transform: rotate(-45deg);
}

/* History Logs List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.history-item {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(92, 107, 192, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.history-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-version span {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.history-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.history-changes {
  list-style: none;
}

.history-changes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.history-changes li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-size: 1.4rem;
  top: -2px;
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 4px;
  background: var(--primary-container);
  border-radius: var(--radius-full);
}

.timeline-node {
  position: relative;
  margin-bottom: 40px;
  padding-left: 64px;
}

.timeline-dot {
  position: absolute;
  left: 19px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition);
}

.timeline-node:hover .timeline-dot {
  border-color: var(--accent);
  transform: scale(1.1);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid rgba(92, 107, 192, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-node:hover .timeline-content {
  border-color: rgba(92, 107, 192, 0.18);
  box-shadow: var(--shadow-md);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Download Center Card (Bottom Conversion) */
.download-card {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: var(--radius-lg);
  padding: 50px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.download-card-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--on-primary-container);
}

.download-card-desc {
  font-size: 1.05rem;
  color: var(--on-primary-container);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Section Header Generic */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Comparison Matrix */
.compare-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(92, 107, 192, 0.08);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(92, 107, 192, 0.08);
}

.compare-table th {
  background: var(--bg-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.compare-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--bg-light);
  color: var(--text-primary);
}

.highlight-td {
  color: var(--primary) !important;
  font-weight: 700;
}

/* Footer Section */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid rgba(92, 107, 192, 0.08);
  padding: 60px 24px 30px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  grid-column: span 5;
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links-group {
  grid-column: span 2;
}

.footer-links-group h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(92, 107, 192, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-beian {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

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

.version-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 24px;
  align-items: stretch;
}

.download-section-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-desc {
    max-width: 600px;
  }

  .hero-screenshots-stack {
    height: 480px;
  }

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

  .span-4 {
    grid-column: span 6;
  }

  .span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(92, 107, 192, 0.08);
    padding: 24px;
    gap: 12px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-node {
    padding-left: 36px;
  }

  .timeline-dot {
    left: 5px;
  }

  .subpage-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }

  .layout-left-card {
    position: static;
  }

  .brand-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero-cta {
    justify-content: center;
  }

  .official-badge-list {
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }

  .interactive-showcase-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .version-dashboard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .download-section-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Responsive Padding and Sizing Overrides */
  .section {
    padding: 40px 16px;
  }

  .section-card-glass {
    padding: 30px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
  }

  .section-card-gradient {
    padding: 30px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
  }

  .section-compact {
    padding: 20px 16px;
    margin-top: 20px;
  }

  .section-about-preview {
    margin-top: 30px;
    padding: 40px 16px;
  }

  .section-download {
    padding: 50px 16px;
  }

  .phone-mockup-shadow-left,
  .phone-mockup-shadow-right {
    display: none !important;
  }

  .hero-screenshots-stack {
    height: 570px;
    overflow: visible;
  }

  .comp-matrix-card,
  .toc-card {
    padding: 20px 16px;
  }

  .brand-manifesto-card {
    display: none !important;
  }

  .history-item {
    padding: 20px 16px;
  }

  .download-card {
    padding: 30px 16px;
    border-radius: var(--radius-md);
  }

  .step-flow-item {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 20px 16px !important;
    margin-left: 0 !important;
  }

  .step-badge-circle {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
  }

  .tech-flow-container {
    padding-left: 24px;
    margin-left: 5px;
    gap: 40px;
  }

  .tech-flow-bullet {
    left: -37px;
    width: 20px;
    height: 20px;
    top: 4px;
  }

  .tech-flow-bullet-primary div,
  .tech-flow-bullet-accent div {
    width: 4px;
    height: 4px;
  }

  .content-block {
    padding: 24px 16px;
  }

  .history-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .history-version {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .history-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .history-date a.nav-btn {
    margin-left: 0 !important;
  }
}