/* ==========================================
   RECOVERY TEAM - Main Styles
   Color Palette:
   - Primary: #0a1628 (Dark Navy)
   - Secondary: #1a2744 (Navy)
   - Accent: #C9A84C (Gold)
   - Accent Light: #d4af37
   - Text: #ffffff, #b0b8c8
   ========================================== */

:root {
  --primary: #0a1628;
  --primary-light: #0f1d35;
  --secondary: #1a2744;
  --secondary-light: #243456;
  --accent: #C9A84C;
  --accent-light: #d4af37;
  --accent-dark: #a88a3a;
  --text: #ffffff;
  --text-muted: #8a95a8;
  --text-secondary: #b0b8c8;
  --border: rgba(201, 168, 76, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(26, 39, 68, 0.5);
  --success: #22c55e;
  --danger: #ef4444;
  --kakao: #FEE500;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

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

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-kakao {
  background: var(--kakao);
  color: #3C1E1E;
}

.btn-kakao:hover {
  background: #F5D900;
  transform: translateY(-2px);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px;
}

.mobile-menu.active { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 0;
}

.mobile-menu .nav-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('/hero.jpg') center center / cover no-repeat;
  opacity: 0.12;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(26, 39, 68, 0.5) 0%, transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual - Chart Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-chart-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.6) 60%, transparent 100%);
  padding: 40px 24px 20px;
}

.chart-stats {
  padding-top: 0;
}

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

.chart-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chart-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================
   About Section
   ========================================== */
.about {
  background: var(--primary-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

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

.about-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
   Process Section
   ========================================== */
.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(201, 168, 76, 0.1));
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.step-content {
  padding-top: 12px;
}

.step-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================
   Cases Section
   ========================================== */
.cases {
  background: var(--primary-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.case-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-badge {
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-badge.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.case-badge.in-progress {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
}

.case-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.case-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.case-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

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

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

.case-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.case-value.loss { color: var(--danger); }
.case-value.profit { color: var(--success); }

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 1s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================
   Benefits Section
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.benefit-number {
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.benefit-content h3 {
  margin-bottom: 8px;
}

.benefit-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  padding: 60px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   Application Form
   ========================================== */
.apply-section {
  background: var(--primary-light);
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.application-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.required { color: var(--accent); }

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

.form-success {
  text-align: center;
  padding: 60px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

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

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-muted);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: #060d1a;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
}

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

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.8rem !important;
  opacity: 0.6;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 100px 0 60px; min-height: auto; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-desc br { display: none; }

  .hero-visual { order: -1; }

  .hero-image-card { max-width: 100%; }

  .hero-stats {
    gap: 20px;
  }

  .stat-number { font-size: 1.4rem; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll-indicator { display: none; }

  .section { padding: 60px 0; }

  .about-grid { grid-template-columns: 1fr; }

  .cases-grid { grid-template-columns: 1fr; }

  .benefits-grid { grid-template-columns: 1fr; }

  .process-line { left: 28px; }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  .process-step { gap: 20px; }

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

  .application-form { padding: 24px; }

  .cta-box { padding: 40px 24px; }

  .cta-content p br { display: none; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
  background: var(--primary-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.3);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.3s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-answer strong {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
