/* ==========================================================================
   RADIC-X PACS — CLEAN LIGHT THEME
   Palette: Clean White, Light Grays, Vibrant Blue Accents
   ========================================================================== */

:root {
  /* Color Tokens - Light Theme */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-secondary: #0ea5e9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;

  --alert-red: #ef4444;
  --success-green: #10b981;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --transition: 0.2s ease-in-out;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body.light-theme {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; line-height: 1.2; }
p { color: var(--text-muted); font-size: 1.05rem; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Utilities */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-light { background-color: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.text-center { text-align: center; }
.align-center { align-items: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.max-w-md { max-width: 600px; margin: 0 auto; }
.hidden { display: none !important; }

/* Section Headers */
.section-header { max-width: 700px; margin: 0 auto 3rem auto; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-desc { font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-weight: 600; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: all var(--transition); text-align: center;
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.1rem; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

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

.btn-secondary { background-color: white; color: var(--accent-primary); border-color: var(--accent-primary); }
.btn-secondary:hover { background-color: var(--bg-surface); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 6.5rem; }
.brand-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--accent-primary); }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.brand-name-small { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }

.nav-links { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text-muted); }
.nav-link:hover { color: var(--accent-primary); }
.header-actions { display: flex; gap: 1rem; align-items: center; }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 5px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-main); }
.mobile-drawer { display: none; background: white; padding: 1.5rem; border-bottom: 1px solid var(--border-color); }
.mobile-drawer.open { display: block; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav-link { font-weight: 600; color: var(--text-main); display: block; padding: 0.5rem 0; }

/* Hero Section */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.hero-tag span { display: inline-block; padding: 0.4rem 1rem; background: var(--bg-surface); color: var(--accent-primary); font-weight: 700; font-size: 0.85rem; border-radius: var(--radius-pill); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1.25rem; }
.hero-lead { margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }

/* Como Funciona - Simple Steps */
.simple-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.step-card { flex: 1; min-width: 200px; text-align: center; padding: 1.5rem; }
.step-number { width: 32px; height: 32px; background: var(--accent-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 1rem auto; }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.95rem; }
.step-arrow { color: var(--border-color); font-size: 2rem; margin-top: 3rem; }

/* Vantagens Comparison */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.comparison-card { padding: 2.5rem; border-radius: var(--radius-lg); background: white; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.legacy-card { background: #fff1f2; border-color: #fecdd3; }
.modern-card { background: #f0f9ff; border-color: #bae6fd; box-shadow: var(--shadow-md); }
.card-header-status { margin-bottom: 1.5rem; }
.status-pill { display: inline-block; padding: 0.4rem 1rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.9rem; }
.status-alert { background: white; color: var(--alert-red); border: 1px solid #fda4af; }
.status-success { background: white; color: var(--accent-primary); border: 1px solid #7dd3fc; }
.comparison-list { display: flex; flex-direction: column; gap: 1rem; }
.comparison-list li { font-size: 1.05rem; color: var(--text-main); position: relative; padding-left: 1.5rem; }
.legacy-list li::before { content: "✕"; position: absolute; left: 0; color: var(--alert-red); font-weight: bold; }
.modern-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success-green); font-weight: bold; }

/* Grids & Cards */
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.check-list { display: flex; flex-direction: column; gap: 0.8rem; }
.check-list li { font-size: 1.05rem; font-weight: 500; color: var(--text-main); }
.clean-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); }
.rounded-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }

/* Mockup Items */
.mockup-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem; }
.mockup-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 0.75rem; background: var(--bg-surface); }
.mockup-icon { font-size: 1.8rem; }
.mockup-details { flex: 1; display: flex; flex-direction: column; }
.mockup-details strong { color: var(--text-main); font-size: 1rem; }
.mockup-details span { color: var(--text-muted); font-size: 0.85rem; }

/* Forms */
.clean-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.clean-form input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-main); font-size: 1rem; color: var(--text-main); background: white; transition: border-color var(--transition); }
.clean-form input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border-color); text-align: center; }
.footer-copy { display: block; margin-top: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* Modal & Toasts */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { background: white; padding: 2rem; border-radius: var(--radius-lg); width: 100%; max-width: 450px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.modal-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-header p { margin-bottom: 1.5rem; font-size: 0.95rem; }
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--text-main); color: white; padding: 1rem 1.5rem; border-radius: var(--radius-md); font-weight: 500; font-size: 0.9rem; box-shadow: var(--shadow-md); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-2-cols, .comparison-grid { grid-template-columns: 1fr; }
  .reverse-mobile { display: flex; flex-direction: column-reverse; }
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
  .step-arrow { display: none; }
}
