/* ==========================================================================
   班级星册 (ClassStar) - 现代化 Apple 级官方网站样式
   ========================================================================== */

:root {
  --brand-primary: #FF6B00;
  --brand-primary-hover: #E55F00;
  --brand-light: #FFF6EE;
  --brand-gradient: linear-gradient(135deg, #FF6B00 0%, #FF9233 100%);
  --brand-gradient-glow: linear-gradient(135deg, rgba(255, 107, 0, 0.4) 0%, rgba(255, 146, 51, 0.2) 100%);
  
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-card: rgba(255, 255, 255, 0.9);
  --color-card-border: rgba(226, 232, 240, 0.8);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-white: #FFFFFF;
  
  --accent-blue: #2563EB;
  --accent-green: #059669;
  --accent-purple: #7C3AED;
  --accent-rose: #E11D48;
  --accent-amber: #D97706;
  --accent-teal: #0891B2;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 25px -4px rgba(255, 107, 0, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-max: 1180px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(255, 107, 0, 0.45);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--text-primary);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.02rem;
}

/* ==========================================================================
   Hero Section (Refined & Compact)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
}

.hero-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Hero Showcase Stage (Balanced Dimensions & Floating Cards) */
.hero-stage {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

/* Background Ambient Glow */
.hero-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 75%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* Center Phone Mockup (Constrained & Elegant) */
.hero-device-center {
  position: relative;
  width: 320px;
  height: 520px;
  background: #1B1D20;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 10px 20px -5px rgba(255, 107, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-device-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #F8FAFC;
}

.hero-device-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Screen Bottom Gradient Fade (Keeps height compact) */
.hero-device-screen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

/* Floating Glass Micro-Cards Around the Hero Phone */
.floating-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-glass-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.float-left-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.float-left-2 {
  bottom: 18%;
  left: 2%;
  animation-delay: 2s;
}

.float-right-1 {
  top: 20%;
  right: 5%;
  animation-delay: 1s;
}

.float-right-2 {
  bottom: 15%;
  right: 3%;
  animation-delay: 3s;
}

.card-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-content-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-content-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Trust / Highlights Bar
   ========================================================================== */
.trust-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
  padding: 36px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-card-border);
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Feature Stage (Interactive Tabbed Hub)
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

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

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
}

/* Interactive Tabs */
.feature-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-nav-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-nav-btn:hover {
  color: var(--text-primary);
  background: #F1F5F9;
}

.feature-nav-btn.active {
  background: var(--brand-primary);
  color: var(--text-white);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

/* Tab Stage Layout */
.feature-stage-container {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
}

.feature-panel {
  display: none;
  align-items: center;
  gap: 60px;
  animation: fadeIn 0.35s ease;
}

.feature-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-panel-text {
  flex: 1.1;
}

.feature-panel-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.feature-panel-text h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-panel-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.bullet-check {
  color: var(--accent-green);
  font-weight: 800;
}

/* Feature Panel Phone Frame Preview */
.feature-panel-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.feature-phone-mockup {
  width: 280px;
  height: 460px;
  background: #1E2024;
  border-radius: 40px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.feature-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #FFF;
}

.feature-phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Feature Cards Matrix (2x3 Grid)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.3);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.icon-orange { background: rgba(255, 107, 0, 0.12); color: var(--brand-primary); }
.icon-blue   { background: rgba(37, 99, 235, 0.12); color: var(--accent-blue); }
.icon-green  { background: rgba(5, 150, 105, 0.12); color: var(--accent-green); }
.icon-purple { background: rgba(124, 58, 237, 0.12); color: var(--accent-purple); }
.icon-rose   { background: rgba(225, 29, 72, 0.12); color: var(--accent-rose); }
.icon-teal   { background: rgba(8, 145, 178, 0.12); color: var(--accent-teal); }
.icon-amber  { background: rgba(217, 119, 6, 0.12); color: var(--accent-amber); }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ==========================================================================
   Showcase Gallery (Compact Slider)
   ========================================================================== */
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.gallery-tabs {
  display: flex;
  gap: 10px;
}

.gallery-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  transition: all 0.2s ease;
}

.gallery-tab-btn.active {
  background: var(--brand-primary);
  color: var(--text-white);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
}

.gallery-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 30px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

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

.gallery-scroll-container::-webkit-scrollbar-track {
  background: #E2E8F0;
  border-radius: 3px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.gallery-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-card-border);
  transition: all 0.3s ease;
  background: #FFF;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.gallery-card-ipad {
  flex: 0 0 280px;
}

/* ==========================================================================
   Privacy & Security Comparison Box
   ========================================================================== */
.security-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFF;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  margin-top: 40px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.sec-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.sec-card-classstar {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
}

.sec-card-others {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
}

.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--brand-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 18px;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 580px;
  margin: 0 auto 32px auto;
}

/* ==========================================================================
   Legal & Document Pages
   ========================================================================== */
.page-header {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-content {
  padding: 50px 0 90px 0;
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
}

.legal-card {
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.legal-content p, .legal-content ul {
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.highlight-box {
  background: rgba(255, 107, 0, 0.06);
  border-left: 4px solid var(--brand-primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* ==========================================================================
   Support Form
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
}

.support-channel-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-card-border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 36px 0;
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel, .feature-panel.active { flex-direction: column; gap: 36px; }
  .support-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-card-border);
  }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.1rem; }
  .hero-desc { font-size: 1.05rem; }
  .hero-device-center { width: 270px; height: 440px; }
  .floating-glass-card { display: none; } /* Hide floating chips on mobile to prevent clutter */
  .trust-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-stage-container { padding: 24px 18px; }
  .legal-card { padding: 20px; }
  .footer-top { grid-template-columns: 1fr; }
}
