:root {
  /* Brand Colors - Matched to Norofire App Logo (Plum & Teal gradient) */
  --noro-flame: #8D377A; /* Deep Magenta/Plum */
  --noro-ember: #25819A; /* Rich Teal */
  --brand-downloader: #FF6600; /* Keeping standard Orange for Downloader Badge only */
  --noro-dark: #0A0A0B;
  --noro-surface: #121214;
  --noro-surface-light: #1A1A1E;
  --noro-text: #FFFFFF;
  --noro-text-muted: #A1A1AA;
  
  /* Glassmorphism */
  --glass-bg: rgba(26, 26, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--noro-dark);
  color: var(--noro-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.text-gradient {
  background: linear-gradient(135deg, var(--noro-ember), var(--noro-flame));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--noro-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===== SITE HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(141, 55, 122, 0.4));
  transition: transform var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--noro-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--noro-text);
  background: var(--glass-bg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--noro-ember), var(--noro-flame));
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(141, 55, 122, 0.3);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #35b3d6, #b1489b) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(141, 55, 122, 0.5) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--noro-text);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-toggle:hover {
  background: var(--glass-bg);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--noro-ember), var(--noro-flame));
  color: white;
  box-shadow: 0 8px 24px rgba(141, 55, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(141, 55, 122, 0.5);
  background: linear-gradient(135deg, #35b3d6, #b1489b);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--noro-text);
}

.btn-secondary:hover {
  background: var(--noro-surface-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(141, 55, 122, 0.2) 0%, rgba(10, 10, 11, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero p {
  margin-bottom: var(--spacing-lg);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 129, 154, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(37, 129, 154, 0.2), rgba(141, 55, 122, 0.2));
  border: 1px solid rgba(141, 55, 122, 0.3);
  box-shadow: 0 0 15px rgba(37, 129, 154, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--noro-flame);
  font-size: 1.8rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.feature-desc {
  color: var(--noro-text-muted);
}

/* Steps */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--noro-ember), var(--noro-flame));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(141, 55, 122, 0.3);
}

.step-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  flex-grow: 1;
}

.step-content h3 {
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--noro-text-muted);
}

/* Important Update Banner */
.update-banner {
  background: linear-gradient(90deg, rgba(37, 129, 154, 0.05), rgba(141, 55, 122, 0.1));
  border-left: 4px solid var(--noro-flame);
  padding: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--spacing-xl) auto;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.update-icon {
  font-size: 2rem;
  color: var(--noro-flame);
}

.update-text h3 {
  margin-bottom: 0.25rem;
  color: var(--noro-text);
}

.update-text p {
  color: var(--noro-text-muted);
  margin: 0;
}

/* New Exact Downloader Badge Style */
.downloader-badge {
    display: flex;
    border: 3px solid var(--brand-downloader);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    width: 100%;
    max-width: 360px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.downloader-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 102, 0, 0.4);
}

.downloader-badge:active {
    transform: translateY(1px) scale(0.98);
}

.downloader-logo {
    background: var(--brand-downloader);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.downloader-content {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    flex-grow: 1;
}

.downloader-label {
    color: #909090;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.downloader-code {
    color: var(--brand-downloader);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

.copier {
  position: relative;
}

.copy-tooltip {
  position: absolute;
  top: -40px;
  right: 20px;
  background: var(--brand-downloader);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, top 0.2s;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 600;
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--brand-downloader) transparent transparent transparent;
}

.copier.show-tooltip .copy-tooltip {
  opacity: 1;
  top: -45px;
}

/* Animations (Animate on Scroll) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ===== LEGAL / POLICY PAGES ===== */
.policy-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 var(--spacing-xl);
}

.policy-hero {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 2rem;
}

.policy-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--noro-text-muted);
  font-size: 0.9rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
}

.policy-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.policy-toc h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--noro-text-muted);
  margin-bottom: 1rem;
}

.policy-toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.policy-toc a {
  color: var(--noro-ember);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.policy-toc a:hover {
  color: var(--noro-text);
}

.policy-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}

.policy-section h2 {
  font-size: 1.35rem;
  color: var(--noro-text);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-section h2 .section-num {
  background: linear-gradient(135deg, var(--noro-ember), var(--noro-flame));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-section p {
  color: var(--noro-text-muted);
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul,
.policy-section ol {
  color: var(--noro-text-muted);
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.policy-section strong {
  color: var(--noro-text);
  font-weight: 600;
}

.policy-section a {
  color: var(--noro-ember);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-highlight {
  background: linear-gradient(90deg, rgba(37,129,154,0.07), rgba(141,55,122,0.07));
  border-left: 3px solid var(--noro-ember);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: var(--noro-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--glass-border);
  color: var(--noro-text-muted);
  margin-top: var(--spacing-xl);
}

.share-section {
  text-align: center;
  background: var(--noro-surface-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.share-section p {
  color: var(--noro-text-muted);
  margin: var(--spacing-md) 0;
  max-width: 600px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    padding: 0 var(--spacing-lg);
  }
  
  .step-item {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .update-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .downloader-logo {
      padding: 0.75rem;
  }
  
  .downloader-logo svg {
      width: 45px;
      height: 45px;
  }
  
  .downloader-code {
      font-size: 2.2rem;
  }
  .downloader-label {
      font-size: 0.75rem;
  }
}
