/* ============================================================================
   REZUS - Landing Page Styles
   Based on REZUS Design System
   ============================================================================ */

/* CSS Variables - REZUS Theme */
:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --surface-hover: #e8eeeb;
  --text: #1a2e23;
  --text-2: #3d5a4c;
  --muted: #6b8f7a;
  --border: #d4e0d9;
  --border-hover: #b8c9c0;
  --ring: rgba(34, 139, 84, 0.4);
  --primary: #228b54;
  --primary-hover: #1a7245;
  --primary-active: #145c38;
  --primary-soft: #e6f4ed;
  --primary-text: #ffffff;
  --success: #22a366;
  --success-soft: #e6f7ef;
  --warning: #d4a017;
  --warning-soft: #fef8e6;
  --danger: #dc3545;
  --danger-soft: #fdeaec;
  --info: #3b82f6;
  --info-soft: #eff6ff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Container */
.rz-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.rz-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.rz-landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.rz-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.rz-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.rz-nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.rz-nav-links a:hover {
  color: var(--primary);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.rz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rz-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.rz-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}

.rz-btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.rz-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.rz-btn-full {
  width: 100%;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.rz-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.rz-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.rz-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.rz-highlight {
  color: var(--primary);
  position: relative;
}

.rz-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.3em;
  background: var(--primary-soft);
  z-index: -1;
  border-radius: 2px;
}

.rz-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-2);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.rz-hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.rz-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.rz-hero-stat {
  text-align: center;
}

.rz-hero-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.rz-hero-stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */
.rz-features {
  padding: var(--space-3xl) 0;
}

.rz-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.rz-section-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.rz-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.rz-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.2s ease;
}

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

.rz-feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.rz-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.rz-feature-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

/* Badges */
.rz-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.rz-badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.rz-badge-success {
  background: var(--success-soft);
  color: var(--success);
}

/* ============================================================================
   PRICING SECTION
   ============================================================================ */
.rz-pricing {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.rz-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.rz-pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.2s ease;
}

.rz-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rz-pricing-featured {
  background: var(--surface);
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.rz-pricing-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.rz-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.rz-pricing-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.rz-pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.rz-price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.rz-price-period {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.rz-pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.rz-pricing-features li {
  padding: var(--space-sm) 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.rz-pricing-features li.rz-muted {
  color: var(--muted);
}

/* ============================================================================
   REGISTRATION SECTION
   ============================================================================ */
.rz-registration {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-soft) 100%);
}

.rz-registration-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.rz-registration-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.rz-registration-info > p {
  font-size: 1.125rem;
  color: var(--text-2);
  margin-bottom: var(--space-2xl);
}

.rz-registration-benefits {
  list-style: none;
}

.rz-registration-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.rz-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Card */
.rz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
}

.rz-registration-form-card {
  padding: var(--space-2xl);
}

/* Form Styles */
.rz-form-group {
  margin-bottom: var(--space-lg);
}

.rz-form-row {
  margin-bottom: var(--space-md);
}

.rz-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.rz-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.rz-input, .rz-select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.15s ease;
}

.rz-input:focus, .rz-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.rz-input::placeholder {
  color: var(--muted);
}

textarea.rz-input {
  resize: vertical;
  min-height: 100px;
}

.rz-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.rz-form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.rz-form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}

.rz-form-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: none;
}

.rz-form-message.success {
  display: block;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.rz-form-message.error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.rz-footer {
  background: var(--text);
  color: var(--surface);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.rz-footer .rz-logo {
  color: var(--surface);
}

.rz-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.rz-footer-brand p {
  color: var(--muted);
  margin-top: var(--space-md);
  font-size: 0.9375rem;
}

.rz-footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--surface);
}

.rz-footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: color 0.15s ease;
}

.rz-footer-links a:hover {
  color: var(--surface);
}

.rz-footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.rz-footer-bottom p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================================================
   MOBILE MENU BUTTON
   ============================================================================ */
.rz-mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 1001;
}

.rz-mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.rz-mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.rz-mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.rz-mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Small button variant */
.rz-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .rz-hero-title {
    font-size: 2.75rem;
  }

  .rz-features-grid,
  .rz-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rz-pricing-featured {
    transform: none;
  }

  .rz-pricing-featured:hover {
    transform: translateY(-4px);
  }

  .rz-registration-wrapper {
    grid-template-columns: 1fr;
  }

  .rz-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Container padding mobile */
  .rz-container {
    padding: 0 var(--space-md);
  }

  /* Header mobile */
  .rz-landing-header {
    padding: 0;
  }

  .rz-landing-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
    min-height: 3.5rem;
    padding: var(--space-sm) 0;
    position: relative;
  }

  .rz-mobile-menu-btn {
    display: flex;
  }

  .rz-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-sm);
  }

  .rz-nav-links.active {
    display: flex;
  }

  .rz-nav-links a {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .rz-nav-links a:last-child {
    border-bottom: none;
    margin: var(--space-md);
  }

  .rz-nav-links .rz-btn {
    margin: var(--space-md);
  }

  /* Hero mobile */
  .rz-hero {
    padding: 5rem 0 2.5rem;
  }

  .rz-hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .rz-hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .rz-hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .rz-hero-stat {
    flex: 1;
    min-width: 80px;
  }

  .rz-hero-stat-value {
    font-size: 1.75rem;
  }

  .rz-hero-stat-label {
    font-size: 0.75rem;
  }

  .rz-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .rz-hero-cta .rz-btn {
    width: 100%;
  }

  /* Sections mobile */
  .rz-features,
  .rz-pricing {
    padding: var(--space-2xl) 0;
  }

  .rz-section-title {
    font-size: 1.5rem;
  }

  .rz-section-subtitle {
    font-size: 1rem;
  }

  /* Features grid mobile */
  .rz-features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .rz-feature-card {
    padding: var(--space-lg);
  }

  .rz-feature-icon {
    font-size: 2rem;
  }

  .rz-feature-card h3 {
    font-size: 1.125rem;
  }

  .rz-feature-card p {
    font-size: 0.875rem;
  }

  /* Pricing grid mobile */
  .rz-pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .rz-pricing-card {
    padding: var(--space-lg);
  }

  .rz-pricing-header h3 {
    font-size: 1.25rem;
  }

  .rz-price-amount {
    font-size: 2rem;
  }

  /* Registration mobile */
  .rz-registration {
    padding: var(--space-2xl) 0;
  }

  .rz-registration-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .rz-registration-info h2 {
    font-size: 1.5rem;
  }

  .rz-registration-info > p {
    font-size: 1rem;
  }

  .rz-registration-benefits li {
    font-size: 0.9375rem;
  }

  .rz-registration-form-card {
    padding: var(--space-lg);
  }

  .rz-form-row-2 {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .rz-footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .rz-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .rz-footer-brand {
    grid-column: 1 / -1;
  }

  .rz-footer-links h4 {
    font-size: 0.75rem;
    margin-bottom: var(--space-sm);
  }

  .rz-footer-links a {
    font-size: 0.875rem;
  }
}

/* Extra small screens (< 480px) */
@media (max-width: 480px) {
  .rz-hero-title {
    font-size: 1.5rem;
  }

  .rz-hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .rz-hero-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
  }

  .rz-hero-stat-value {
    font-size: 1.5rem;
  }

  .rz-section-title {
    font-size: 1.25rem;
  }

  .rz-pricing-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.75rem;
  }

  .rz-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rz-footer-brand {
    text-align: center;
  }

  .rz-footer-links {
    text-align: center;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rz-hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.rz-feature-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.rz-feature-card:nth-child(1) { animation-delay: 0.1s; }
.rz-feature-card:nth-child(2) { animation-delay: 0.2s; }
.rz-feature-card:nth-child(3) { animation-delay: 0.3s; }
.rz-feature-card:nth-child(4) { animation-delay: 0.4s; }
.rz-feature-card:nth-child(5) { animation-delay: 0.5s; }
.rz-feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading button state */
.rz-btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.rz-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-text);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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