/**
 * Proposal System - Reset & Base Styles
 * Modern CSS reset and base element styling
 */

/* ============================================
   Box Model Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   Document Setup
   ============================================ */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-body);
  font-size: var(--text-base);
  background-color: var(--bg-background);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--duration-moderate) var(--ease-in-out),
              color var(--duration-moderate) var(--ease-in-out);
}

/* ============================================
   Typography Reset
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* ============================================
   Links
   ============================================ */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--text-primary);
}

/* ============================================
   Lists
   ============================================ */
ul, ol {
  list-style: none;
}

/* ============================================
   Images & Media
   ============================================ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================
   Forms
   ============================================ */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  border: none;
}

input,
textarea,
select {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--text-primary);
  background-color: var(--bg-background);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background-color: var(--text-primary);
  color: var(--bg-background);
  opacity: 0.2;
}

/* ============================================
   Focus Styles
   ============================================ */
:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-background);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-subtle);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-background);
}
/**
 * Proposal System - Typography
 * Text styles and typography utilities
 */

/* ============================================
   Headings
   ============================================ */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: var(--leading-tight);
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  margin-bottom: 1.5rem;
}

.phase-title {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
}

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

/* ============================================
   Body Text
   ============================================ */
.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: var(--leading-relaxed);
  max-width: 700px;
}

.lead-text {
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

/* ============================================
   Labels & Tags
   ============================================ */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.methodology-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-info);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ============================================
   Special Text Effects
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-info);
}

.text-balance {
  text-wrap: balance;
}

/* ============================================
   Font Weight Utilities
   ============================================ */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   Text Alignment
   ============================================ */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* ============================================
   Text Transform
   ============================================ */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* ============================================
   Letter Spacing
   ============================================ */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ============================================
   Line Height
   ============================================ */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* ============================================
   Text Color Utilities
   ============================================ */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }

.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
/**
 * Proposal System - CSS Variables
 * Core design tokens and theme configuration
 */

:root {
  /* ============================================
     Colors - Dark Theme (Default)
     ============================================ */
  
  /* Background colors */
  --bg-background: #050505;
  --bg-surface: #0F0F0F;
  --bg-card: #18181b;
  --bg-overlay: rgba(5, 5, 5, 0.8);
  
  /* Text colors */
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted: #71717a;
  --text-inverse: #18181b;
  
  /* Border colors */
  --border-color: #27272A;
  --border-subtle: #3f3f46;
  
  /* Interactive colors */
  --button-primary: #F4F4F5;
  --button-primary-hover: #FFFFFF;
  --button-secondary: transparent;
  --button-secondary-hover: transparent;
  
  /* State colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* ============================================
     Typography
     ============================================ */
  
  /* Font families */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Line heights */
  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;
  
  /* ============================================
     Spacing
     ============================================ */
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Section spacing */
  --section-spacing: 120px;
  --container-width: 1200px;
  
  /* ============================================
     Borders & Radii
     ============================================ */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 100px;
  
  /* ============================================
     Shadows
     ============================================ */
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --shadow-glow: 0 0 20px rgb(244 244 245 / 0.1);
  
  /* ============================================
     Animation
     ============================================ */
  
  /* Durations */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-moderate: 300ms;
  --duration-slow: 500ms;
  
  /* Easing functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Light Theme Override
   ============================================ */
.light-mode {
  /* Background colors */
  --bg-background: #FFFFFF;
  --bg-surface: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-overlay: rgba(255, 255, 255, 0.8);
  
  /* Text colors */
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #71717a;
  --text-inverse: #F4F4F5;
  
  /* Border colors */
  --border-color: #E4E4E7;
  --border-subtle: #D4D4D8;
  
  /* Interactive colors */
  --button-primary: #18181B;
  --button-primary-hover: #000000;
  
  /* State colors */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-info: #2563eb;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgb(0 0 0 / 0.05);
}
/**
 * Proposal System - Button Components
 * Interactive button styles and variants
 */

/* ============================================
   Base Button
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  font-size: var(--text-base);
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ============================================
   Button Variants
   ============================================ */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-background);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* ============================================
   Button Sizes
   ============================================ */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-lg);
}

/* ============================================
   Button Groups
   ============================================ */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Metric Toggle Buttons
   ============================================ */
.metric-toggle {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base);
}

.metric-toggle.active {
  background: var(--text-primary);
  color: var(--bg-background);
  border: none;
}

.metric-toggle:hover:not(.active) {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ============================================
   Icon Buttons
   ============================================ */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--duration-fast);
}

.btn-icon:hover svg {
  transform: translateX(2px);
}

/* ============================================
   Submit Button (Forms)
   ============================================ */
.btn-submit {
  width: 100%;
  padding: 0.875rem 1.75rem;
  background: var(--text-primary);
  color: var(--bg-background);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.btn-submit:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================
   Loading State
   ============================================ */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid var(--bg-background);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Disabled State
   ============================================ */
.btn:disabled,
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/**
 * Proposal System - Card Components
 * Various card patterns and styles
 */

/* ============================================
   Base Card
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* ============================================
   Card Elements
   ============================================ */
.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-top: 0.5rem;
}

/* ============================================
   Pricing Card
   ============================================ */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--text-primary);
  background: linear-gradient(145deg, var(--bg-card), #1e1e24);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: var(--text-xs);
  background: var(--text-primary);
  color: var(--bg-background);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Definition Card
   ============================================ */
.def-item {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.def-term {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: block;
}

.def-desc {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* ============================================
   Calculator Card
   ============================================ */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 4rem;
}

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

/* ============================================
   Retainer Card
   ============================================ */
.retainer-card {
  background: linear-gradient(145deg, var(--bg-card), #1e1e24);
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

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

/* ============================================
   Fixed Fee Card
   ============================================ */
.fixed-fee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

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

/* ============================================
   Feature List
   ============================================ */
.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.feature-list li::before {
  content: "→";
  color: var(--text-primary);
  margin-right: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   Investment Profile Card
   ============================================ */
.investment-profile {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.investment-stat {
  text-align: center;
}

.investment-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.investment-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   Comparison Card
   ============================================ */
.comparison-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.comparison-card h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.comparison-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
/**
 * Proposal System - Form Components
 * Input fields, form controls, and authentication gates
 */

/* ============================================
   Form Controls
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus {
  border-color: var(--text-primary);
  background: var(--bg-background);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============================================
   Input with Currency Symbol
   ============================================ */
.input-currency {
  position: relative;
}

.input-currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: var(--text-xl);
}

.input-currency .form-input {
  padding-left: 2rem;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ============================================
   Toggle Buttons
   ============================================ */
.toggle-group {
  display: flex;
  gap: 0.75rem;
}

.toggle-button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base);
}

.toggle-button.active {
  background: var(--text-primary);
  color: var(--bg-background);
  border-color: var(--text-primary);
}

.toggle-button:hover:not(.active) {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ============================================
   Auth Gate / Password Protection
   ============================================ */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-background);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--duration-moderate) var(--ease-out);
}

.auth-gate.visible {
  opacity: 1;
}

.auth-modal {
  max-width: 440px;
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  text-align: center;
}

.auth-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.auth-badge-text {
  font-size: var(--text-xs);
  background: var(--bg-surface);
  color: var(--color-info);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.auth-description {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.auth-input-group {
  margin-bottom: 1.25rem;
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.auth-input:focus {
  border-color: var(--text-primary);
  background: var(--bg-background);
}

.auth-error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.auth-error.visible {
  display: block;
  opacity: 1;
}

.auth-submit {
  width: 100%;
  padding: 0.875rem 1.75rem;
  background: var(--text-primary);
  color: var(--bg-background);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.auth-submit:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* ============================================
   Form Validation States
   ============================================ */
.form-input.error {
  border-color: var(--color-error);
}

.form-input.success {
  border-color: var(--color-success);
}

.form-error-message {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: 0.5rem;
}

.form-success-message {
  color: var(--color-success);
  font-size: var(--text-sm);
  margin-top: 0.5rem;
}

/* ============================================
   Checkbox and Radio
   ============================================ */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--text-primary);
  cursor: pointer;
}

.form-checkbox label,
.form-radio label {
  cursor: pointer;
  color: var(--text-secondary);
}
/**
 * Proposal System - Layout Components
 * Container, sections, and layout patterns
 */

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

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

.section-compact {
  padding: calc(var(--section-spacing) / 2) 0;
}

.section-header {
  margin-bottom: 5rem;
  max-width: 700px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
}

.hero-content {
  max-width: 900px;
}

/* ============================================
   Navigation
   ============================================ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--border-color);
  padding: 5rem 0;
  margin-top: 7.5rem;
  background: var(--bg-surface);
}

/* ============================================
   Grid Layouts
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

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

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.investment-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.investment-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Flex Layouts
   ============================================ */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ============================================
   Spacing Utilities
   ============================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .phase-item {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .phase-container::before {
    display: none;
  }
  
  .calculator-card {
    padding: 1.5rem !important;
  }
  
  .calculator-grid, 
  .retainer-grid, 
  .fixed-fee-grid,
  .investment-profile-grid,
  .comparison-grid,
  .investment-breakdown-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .total-investment-title {
    font-size: 10vw !important;
    line-height: 1.2 !important;
  }
  
  .retainer-card,
  .fixed-fee-card {
    padding: 1.5rem !important;
  }
}
/**
 * Proposal System - Phase/Timeline Components
 * Timeline and phase visualization styles
 */

/* ============================================
   Phase Container
   ============================================ */
.phase-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}

.phase-container::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-color) 50%, transparent);
}

/* ============================================
   Phase Item
   ============================================ */
.phase-item {
  display: flex;
  gap: 3rem;
  position: relative;
}

.phase-marker {
  width: 3rem;
  height: 3rem;
  background: var(--bg-background);
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 2;
  flex-shrink: 0;
}

.phase-marker.active {
  background: var(--text-primary);
  color: var(--bg-background);
}

.phase-marker.completed {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

/* ============================================
   Phase Content
   ============================================ */
.phase-content {
  padding-top: 0.5rem;
  width: 100%;
}

.phase-title {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
}

.phase-duration {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.phase-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* ============================================
   Phase Activities Grid
   ============================================ */
.phase-activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.phase-activity-section h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.phase-activity-list {
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.phase-activity-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.phase-activity-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-primary);
  font-weight: bold;
}

/* ============================================
   Phase Gate
   ============================================ */
.phase-gate {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  display: inline-block;
}

.phase-gate-text {
  color: var(--color-success);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ============================================
   Timeline Variant (Horizontal)
   ============================================ */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border-color);
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-step-marker {
  width: 2rem;
  height: 2rem;
  background: var(--bg-background);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}

.timeline-step.active .timeline-step-marker {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.timeline-step.completed .timeline-step-marker {
  background: var(--color-success);
  border-color: var(--color-success);
}

.timeline-step-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-step-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .phase-item {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .phase-container::before {
    display: none;
  }
  
  .timeline-horizontal {
    flex-direction: column;
    gap: 2rem;
  }
  
  .timeline-horizontal::before {
    display: none;
  }
}
/**
 * Proposal System - Animation Utilities
 * Keyframes and animation classes
 */

/* ============================================
   Keyframes
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

@keyframes slideDown {
  from { 
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from { 
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from { 
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   Animation Classes
   ============================================ */
.animate-fade-in {
  animation: fadeIn var(--duration-moderate) var(--ease-out);
}

.animate-fade-out {
  animation: fadeOut var(--duration-moderate) var(--ease-out);
}

.animate-slide-up {
  animation: slideUp var(--duration-moderate) var(--ease-out);
}

.animate-slide-down {
  animation: slideDown var(--duration-moderate) var(--ease-out);
}

.animate-slide-left {
  animation: slideLeft var(--duration-moderate) var(--ease-out);
}

.animate-slide-right {
  animation: slideRight var(--duration-moderate) var(--ease-out);
}

.animate-scale-in {
  animation: scaleIn var(--duration-base) var(--ease-out);
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

.animate-shake {
  animation: shake var(--duration-moderate);
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   Transition Utilities
   ============================================ */
.transition-all {
  transition: all var(--duration-base) var(--ease-out);
}

.transition-colors {
  transition: background-color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

.transition-opacity {
  transition: opacity var(--duration-base) var(--ease-out);
}

.transition-transform {
  transition: transform var(--duration-base) var(--ease-out);
}

.transition-none {
  transition: none;
}

/* ============================================
   Duration Modifiers
   ============================================ */
.duration-fast {
  animation-duration: var(--duration-fast);
  transition-duration: var(--duration-fast);
}

.duration-base {
  animation-duration: var(--duration-base);
  transition-duration: var(--duration-base);
}

.duration-moderate {
  animation-duration: var(--duration-moderate);
  transition-duration: var(--duration-moderate);
}

.duration-slow {
  animation-duration: var(--duration-slow);
  transition-duration: var(--duration-slow);
}

/* ============================================
   Delay Utilities
   ============================================ */
.delay-100 {
  animation-delay: 100ms;
  transition-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
  transition-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
  transition-delay: 300ms;
}

.delay-500 {
  animation-delay: 500ms;
  transition-delay: 500ms;
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="100"] {
  transition-delay: 100ms;
}

[data-animate-delay="200"] {
  transition-delay: 200ms;
}

[data-animate-delay="300"] {
  transition-delay: 300ms;
}

[data-animate-delay="400"] {
  transition-delay: 400ms;
}

[data-animate-delay="500"] {
  transition-delay: 500ms;
}
/**
 * Proposal System - Helper Utilities
 * General utility classes for common patterns
 */

/* ============================================
   Display Utilities
   ============================================ */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ============================================
   Visibility
   ============================================ */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* ============================================
   Position
   ============================================ */
.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* ============================================
   Z-Index
   ============================================ */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-9999 { z-index: 9999; }

/* ============================================
   Overflow
   ============================================ */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* ============================================
   Width & Height
   ============================================ */
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }

.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-fit { height: fit-content; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

.min-h-screen { min-height: 100vh; }

/* ============================================
   Borders
   ============================================ */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-none { border: none; }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================
   Backgrounds
   ============================================ */
.bg-transparent { background-color: transparent; }
.bg-background { background-color: var(--bg-background); }
.bg-surface { background-color: var(--bg-surface); }
.bg-card { background-color: var(--bg-card); }

.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { background-color: var(--color-error); }
.bg-info { background-color: var(--color-info); }

/* ============================================
   Shadows
   ============================================ */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* ============================================
   Cursor
   ============================================ */
.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-wait { cursor: wait; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-not-allowed { cursor: not-allowed; }

/* ============================================
   User Select
   ============================================ */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }

/* ============================================
   Backdrop Effects
   ============================================ */
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============================================
   Aspect Ratios
   ============================================ */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }

/* ============================================
   Screen Reader Only
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Truncate Text
   ============================================ */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
