/**
 * SC-UMCS - SupportCALL Ultimate Mobile Clean Script
 * Stylesheet - Version 1.0
 * Following SupportCALL Design System
 * © SupportCALL ICT Solutions
 */

/* ========================================================================
   CSS VARIABLES - DO NOT CHANGE
   ======================================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;
  --bg-card: #151d2e;
  --bg-card-hover: #1c2640;
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accent Colors - Cyan Theme */
  --accent-primary: #06b6d4;
  --accent-secondary: #0ea5e9;
  --accent-glow: rgba(6, 182, 212, 0.4);
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  
  /* Borders */
  --border-color: #2d3a52;
  --border-light: #374463;
  
  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Spacing & Layout */
  --container-max: 1200px;
  --section-padding: 6rem;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ========================================================================
   RESET & BASE
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================================================
   BACKGROUND EFFECTS
   ======================================================================== */

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.bg-glow-1 {
  top: -300px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.bg-glow-2 {
  bottom: -300px;
  left: -200px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 10px 20px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* ========================================================================
   CONTAINER
   ======================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ========================================================================
   HEADER
   ======================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-version {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(6, 182, 212, 0.5);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ========================================================================
   SAFETY BANNER
   ======================================================================== */

.safety-banner {
  background: var(--bg-secondary);
  border-top: 2px solid var(--warning);
  border-bottom: 2px solid var(--warning);
  padding: 2rem 0;
  margin-bottom: 4rem;
}

.safety-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.safety-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.safety-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.safety-text p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.badge-safe {
  color: var(--success);
}

.badge-moderate {
  color: var(--warning);
}

.badge-danger {
  color: var(--danger);
}

/* ========================================================================
   PLATFORM SELECTOR
   ======================================================================== */

.platform-selector {
  padding: 4rem 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.platform-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--accent-primary);
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.platform-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.platform-card.active .platform-badge {
  background: var(--accent-gradient);
  color: white;
}

/* ========================================================================
   TOOLS SECTION
   ======================================================================== */

.tools-section {
  padding: 4rem 0;
}

.platform-content {
  display: none;
}

.platform-content:not(.hidden) {
  display: block;
}

.category-section {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.category-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--border-radius);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
}

.category-warning svg {
  width: 20px;
  height: 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.tool-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-card.risk-moderate {
  border-color: rgba(245, 158, 11, 0.3);
}

.tool-card.risk-dangerous {
  border-color: rgba(239, 68, 68, 0.3);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-checkbox {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
}

.tool-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.tool-checkbox input:checked ~ .checkmark {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
}

.tool-checkbox input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tool-info {
  flex: 1;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.tool-badge {
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-safe {
  background: var(--success-bg);
  color: var(--success);
}

.badge-moderate {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-dangerous {
  background: var(--danger-bg);
  color: var(--danger);
}

.tool-type {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.tool-recommended {
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 600;
}

.tool-details-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.tool-details-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tool-impact {
  padding: 12px;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tool-impact strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ========================================================================
   GENERATE SECTION
   ======================================================================== */

.generate-section {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.generate-summary {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

#selected-count {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================================================
   HOW IT WORKS SECTION
   ======================================================================== */

.how-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================================================
   SAFETY SECTION
   ======================================================================== */

.safety-section {
  padding: 6rem 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.safety-card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
}

.safety-card-icon.safety-safe {
  background: var(--success-bg);
  color: var(--success);
}

.safety-card-icon.safety-moderate {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.safety-card-icon.safety-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.safety-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.safety-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.safety-tips {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
}

.safety-tips h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.safety-tips ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.safety-tips li {
  color: var(--text-secondary);
  padding-left: 2rem;
  position: relative;
  line-height: 1.7;
}

.safety-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
}

/* ========================================================================
   FAQ SECTION
   ======================================================================== */

.faq-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================================================
   ABOUT SECTION
   ======================================================================== */

.about-section {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text a {
  color: var(--accent-primary);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

.about-links h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.link-cards {
  display: grid;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.link-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.link-flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.link-url {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.link-card svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.85rem;
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ========================================================================
   MODAL
   ======================================================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.modal-body strong {
  color: var(--text-primary);
}

.modal-steps {
  list-style: none;
  counter-reset: step-counter;
  margin-top: 1.5rem;
}

.modal-steps li {
  counter-increment: step-counter;
  margin: 1rem 0;
  padding-left: 3rem;
  position: relative;
  line-height: 1.8;
}

.modal-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--accent-gradient);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.modal-steps li strong {
  color: var(--accent-primary);
}

.modal-steps li em {
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

.modal-steps code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.9rem;
}

/* ========================================================================
   SCROLL BUTTONS
   ======================================================================== */

.scroll-btn {
  position: fixed;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
}

.scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.scroll-to-top {
  bottom: 2rem;
}

.scroll-to-bottom {
  bottom: 5rem;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 968px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
  }
  
  .category-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .scroll-btn {
    right: 1rem;
  }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
  .header,
  .hero,
  .platform-selector,
  .generate-section,
  .footer,
  .scroll-btn,
  .modal {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
