/* ============================================================
   RGF Cinematic Full-Width Layout — rgf-style.css
   Edge-to-Edge Headers, Wide Grids, Premium SaaS Vibe
   ============================================================ */

:root {
  --rgf-navy:      #0B132B;
  --rgf-navy-light:#1E293B;
  --rgf-gold:      #D79B48;
  --rgf-bg:        #F8FAFC; 
  --rgf-surface:   #FFFFFF;
  --rgf-text:      #334155;
  --rgf-text-light:#64748B;
  --rgf-border:    #E2E8F0;
  
  --rgf-green:     #10B981;
  --rgf-red:       #EF4444;
  --rgf-amber:     #F59E0B;

  --rgf-font:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rgf-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --rgf-shadow:    0 10px 25px -5px rgba(11, 19, 43, 0.1), 0 8px 10px -6px rgba(11, 19, 43, 0.05);
}

#rgf-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--rgf-bg);
  font-family: var(--rgf-font);
  color: var(--rgf-text);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
#rgf-app * { box-sizing: border-box; }
#rgf-app h1, #rgf-app h2, #rgf-app h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; color: var(--rgf-navy); }

/* --- ANIMATIONS --- */
@keyframes rgfFadeUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes rgfFadeLeft { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes rgfFadeRight { 0% { opacity: 0; transform: translateX(30px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes rgfFadeOut { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(0.98); } }

.rgf-screen { display: none; width: 100%; flex: 1; }
.rgf-screen.active { display: flex; align-items: center; padding: 80px 0; }
.rgf-screen.rgf-exiting { display: flex; animation: rgfFadeOut 0.3s var(--rgf-ease) forwards; align-items: center; padding: 80px 0; }

.rgf-screen .rgf-animate-up, .rgf-screen .rgf-animate-up-delay, .rgf-screen .rgf-animate-up-delay-2, .rgf-screen .rgf-animate-up-delay-3, .rgf-screen .rgf-animate-left, .rgf-screen .rgf-animate-right { opacity: 0; }
.rgf-screen.active .rgf-animate-up { animation: rgfFadeUp 0.6s var(--rgf-ease) forwards; }
.rgf-screen.active .rgf-animate-up-delay { animation: rgfFadeUp 0.6s var(--rgf-ease) 0.1s forwards; }
.rgf-screen.active .rgf-animate-up-delay-2 { animation: rgfFadeUp 0.6s var(--rgf-ease) 0.2s forwards; }
.rgf-screen.active .rgf-animate-up-delay-3 { animation: rgfFadeUp 0.6s var(--rgf-ease) 0.3s forwards; }
.rgf-screen.active .rgf-animate-left { animation: rgfFadeLeft 0.7s var(--rgf-ease) forwards; }
.rgf-screen.active .rgf-animate-right { animation: rgfFadeRight 0.7s var(--rgf-ease) 0.2s forwards; }

/* --- FULL WIDTH HEADER --- */
.rgf-header {
  width: 100%; background: var(--rgf-navy); color: #FFF; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rgf-header-container {
  max-width: 1400px; margin: 0 auto; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center;
}
.rgf-logo { max-height: 36px; background: #FFF; padding: 6px 12px; border-radius: 4px; }
.rgf-header-status { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--rgf-gold); }
.rgf-progress-track { width: 100%; height: 4px; background: rgba(255,255,255,0.05); }
.rgf-progress-fill { height: 100%; background: var(--rgf-gold); width: 0%; transition: width 0.8s var(--rgf-ease); box-shadow: 0 0 10px rgba(215, 155, 72, 0.5); }

/* --- MAIN EXPANSIVE AREA --- */
.rgf-main { width: 100%; display: flex; flex-direction: column; flex: 1; }
.rgf-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- TYPOGRAPHY & INTRO --- */
.rgf-text-gold { color: var(--rgf-gold); }
.rgf-eyebrow { font-size: 14px; font-weight: 700; color: var(--rgf-gold); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 16px; }
.rgx-display-title { font-size: 72px; line-height: 1.1; margin-bottom: 24px; }
.rgx-display-question { font-size: 48px; line-height: 1.2; margin-bottom: 24px; max-width: 1000px; }
.rgf-lead { font-size: 22px; line-height: 1.6; color: var(--rgf-text-light); margin-bottom: 40px; max-width: 800px; }

.rgf-intro-grid { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: center; }
.rgf-intro-card { background: var(--rgf-surface); padding: 40px; border-radius: 24px; box-shadow: var(--rgf-shadow); border: 1px solid var(--rgf-border); }
.rgf-icon-circle { width: 48px; height: 48px; background: rgba(215, 155, 72, 0.1); color: var(--rgf-gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: bold; margin-bottom: 24px; }
.rgf-intro-card h3 { font-size: 24px; margin-bottom: 16px; }
.rgf-intro-card p { font-size: 16px; line-height: 1.6; color: var(--rgf-text-light); margin: 0; }

/* --- BUTTONS --- */
.rgf-action-row { display: flex; align-items: center; gap: 24px; margin-top: 48px; }
.rgf-btn { border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s var(--rgf-ease); font-family: var(--rgf-font); }
.rgf-btn-gold { background: var(--rgf-gold); color: #FFF; box-shadow: 0 4px 15px rgba(215, 155, 72, 0.3); }
.rgf-btn-gold:hover { background: #B37A2D; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(215, 155, 72, 0.4); }
.rgf-btn-huge { padding: 20px 48px; font-size: 18px; }
.rgf-btn-large { padding: 16px 36px; font-size: 16px; }
.rgf-btn-dark { background: var(--rgf-navy); color: #FFF; }
.rgf-btn-dark:hover:not(:disabled) { background: var(--rgf-navy-light); transform: translateY(-2px); box-shadow: var(--rgf-shadow); }
.rgf-btn-dark:disabled { opacity: 0.4; cursor: not-allowed; }
.rgf-btn-ghost { background: transparent; color: var(--rgf-text-light); padding: 16px 24px; }
.rgf-btn-ghost:hover { background: rgba(0,0,0,0.05); color: var(--rgf-navy); }
.rgf-arrow { margin-left: 8px; transition: transform 0.3s; }
.rgf-btn:hover .rgf-arrow { transform: translateX(4px); }
.rgf-meta { font-size: 15px; color: var(--rgf-text-light); font-weight: 500; }

/* --- PILLAR: WIDE GRID OPTIONS --- */
.rgf-pillar-header { margin-bottom: 48px; }
.rgf-think-box { display: inline-block; background: var(--rgf-surface); border: 1px solid var(--rgf-border); padding: 16px 24px; border-radius: 12px; font-size: 16px; color: var(--rgf-text-light); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.rgf-think-box strong { color: var(--rgf-navy); }

.rgf-options-wide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 64px; }
.rgf-opt-tile {
  background: var(--rgf-surface); border: 2px solid var(--rgf-border); border-radius: 24px;
  padding: 48px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  cursor: pointer; transition: all 0.3s var(--rgf-ease); box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.rgf-opt-tile:hover { border-color: var(--rgf-gold); transform: translateY(-8px); box-shadow: var(--rgf-shadow); }
.rgf-tile-icon { font-size: 40px; font-weight: bold; color: #CBD5E1; transition: color 0.3s; }
.rgf-opt-tile:hover .rgf-tile-icon { color: var(--rgf-gold); }
.rgf-tile-text { font-size: 24px; font-weight: 700; color: var(--rgf-navy); }

.rgf-opt-tile.selected { border-color: var(--rgf-gold); background: rgba(215, 155, 72, 0.05); box-shadow: 0 8px 24px rgba(215, 155, 72, 0.15); transform: translateY(-4px); }
.rgf-opt-tile.selected .rgf-tile-icon { color: var(--rgf-gold); }

/* --- NAV BAR --- */
.rgf-nav-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--rgf-border); }
.rgf-dots { display: flex; gap: 12px; }
.rgf-dots .rgf-dot { width: 48px; height: 6px; border-radius: 3px; background: var(--rgf-border); transition: all 0.4s; }
.rgf-dots .rgf-dot.done { background: var(--rgf-navy); }
.rgf-dots .rgf-dot.current { background: var(--rgf-gold); }
.rgf-centered { justify-content: center; gap: 40px; }

/* --- PRACTICAL REALITY: 2-COL GRID --- */
.rgf-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.rgf-form-panel { background: var(--rgf-surface); padding: 32px; border-radius: 16px; border: 1px solid var(--rgf-border); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.rgf-panel-highlight { background: var(--rgf-navy); border-color: var(--rgf-navy); color: #FFF; box-shadow: var(--rgf-shadow); margin-bottom: 48px;}
.rgf-label { font-size: 18px; font-weight: 700; color: var(--rgf-navy); margin-bottom: 20px; display: block; }
.rgf-panel-highlight .rgf-label { color: #FFF; }

.rgf-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.rgf-radio-group label {
  background: var(--rgf-bg); border: 1px solid var(--rgf-border); border-radius: 8px;
  padding: 16px 24px; font-size: 16px; font-weight: 600; color: var(--rgf-text); cursor: pointer; transition: all 0.2s;
}
.rgf-radio-group label:hover { border-color: var(--rgf-gold); }
.rgf-radio-group input[type="radio"] { display: none; }
.rgf-radio-group label.selected { background: var(--rgf-navy); color: #FFF; border-color: var(--rgf-navy); box-shadow: 0 4px 12px rgba(11, 19, 43, 0.2); }
.rgf-panel-highlight .rgf-radio-group label { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #FFF; }
.rgf-panel-highlight .rgf-radio-group label.selected { background: var(--rgf-gold); border-color: var(--rgf-gold); box-shadow: 0 4px 12px rgba(215, 155, 72, 0.3); }

/* --- RESULTS: HUGE SPLIT --- */
.rgf-results-split { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; margin-bottom: 64px; }
.rgf-results-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rgf-huge-chart { position: relative; width: 240px; height: 240px; margin-bottom: 32px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); }
.rgf-svg-chart { width: 100%; height: 100%; transform: rotate(-90deg); }
.rgf-svg-bg { fill: none; stroke: var(--rgf-border); stroke-width: 2; }
.rgf-svg-fill { fill: none; stroke: var(--rgf-gold); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1.5s var(--rgf-ease); }
.rgf-chart-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rgf-gap-digit { font-size: 72px; font-weight: 800; color: var(--rgf-navy); line-height: 1; }
.rgf-gap-text { font-size: 14px; font-weight: 700; color: var(--rgf-text-light); letter-spacing: 3px; margin-top: 8px; }
.rgf-urgency-title { font-size: 36px; margin-bottom: 12px; }
.rgf-urgency-desc { font-size: 18px; color: var(--rgf-text-light); }

.rgf-results-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rgf-result-box { background: var(--rgf-surface); border: 1px solid var(--rgf-border); padding: 24px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.rgf-rb-title { font-size: 15px; font-weight: 700; color: var(--rgf-text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.rgf-rb-ans { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.rgf-rb-icon { width: 32px; height: 32px; border-radius: 50%; color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.rgf-cta-wide { background: var(--rgf-navy); padding: 48px 64px; border-radius: 24px; display: flex; justify-content: space-between; align-items: center; color: #FFF; margin-bottom: 64px; box-shadow: var(--rgf-shadow); }
.rgf-cta-content h3 { color: var(--rgf-gold); font-size: 32px; margin-bottom: 12px; }
.rgf-cta-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin: 0; }
.rgf-cta-contact { font-size: 20px; text-align: right; }
.rgf-cta-contact strong { font-size: 32px; color: var(--rgf-gold); display: block; margin-top: 8px; }

/* --- FULL WIDTH FOOTER --- */
.rgf-footer { width: 100%; background: var(--rgf-navy); color: rgba(255,255,255,0.6); padding: 32px 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.rgf-footer-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .rgf-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .rgx-display-title { font-size: 56px; }
  .rgf-options-wide-grid { grid-template-columns: 1fr; gap: 16px; }
  .rgf-form-2col { grid-template-columns: 1fr; gap: 24px; }
  .rgf-results-split { grid-template-columns: 1fr; gap: 48px; }
  .rgf-results-right { grid-template-columns: 1fr; }
  .rgf-cta-wide { flex-direction: column; text-align: center; gap: 32px; }
  .rgf-cta-contact { text-align: center; }
  .rgf-footer-container { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) {
  .rgf-container { padding: 0 20px; }
  .rgx-display-title { font-size: 40px; }
  .rgx-display-question { font-size: 32px; }
  .rgf-action-row { flex-direction: column; align-items: stretch; }
  .rgf-btn-huge { width: 100%; justify-content: center; }
  .rgf-nav-bar { flex-direction: column-reverse; gap: 24px; }
  .rgf-btn-large { width: 100%; justify-content: center; }
}
@media print { 
  .rgf-header, .rgf-footer, .rgf-nav-bar, .rgf-action-row { display: none !important; } 
  #rgf-app { background: white; }
  .rgf-intro-card, .rgf-form-panel, .rgf-result-box { border: 1px solid #ccc; box-shadow: none; }
}