/* ════════════════════════════════════════════════════
   CANONIX — R&D Page Styles
════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────── */
.rnd-hero {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.rnd-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.rnd-hero-label {
  color: var(--fire);
  font-size: 10px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 20px;
}

.rnd-hero-title {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--t1);
  margin-bottom: 24px;
}

.rnd-hero-sub {
  color: var(--t2);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  max-width: 520px;
}

.rnd-hero-watermark {
  position: absolute;
  bottom: -20%;
  right: -2%;
  font-family: var(--font-head);
  font-size: clamp(140px, 28vw, 400px);
  font-weight: 800;
  color: var(--t1);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  line-height: 0.75;
  z-index: 1;
}

/* ── Content Area ────────────────────────────────── */
.rnd-content {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg);
}

.rnd-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Filters ─────────────────────────────────────── */
.rnd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.rnd-filter {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--t2);
  cursor: pointer;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rnd-filter:hover {
  border-color: var(--fire-dim);
  color: var(--fire);
}

.rnd-filter.active {
  background: var(--fire);
  color: #fff;
  border-color: var(--fire);
}

/* ── Section Titles ──────────────────────────────── */
.rnd-section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ── Grid ────────────────────────────────────────── */
.rnd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: clamp(56px, 6vw, 80px);
}

/* ── Cards ───────────────────────────────────────── */
.rnd-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.4s;
}

.rnd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 21, 37, 0.06);
}

.rnd-card.hidden {
  display: none;
}

.rnd-card-featured {
  grid-column: 1 / -1;
  background: var(--surface);
  border-color: var(--fire-dim);
}

.rnd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rnd-status {
  font-size: 10px;
  padding: 4px 14px;
  border-radius: 16px;
  letter-spacing: 0.08em;
}

.rnd-status-completed {
  background: #d1fae5;
  color: #065f46;
}

.rnd-status-progress {
  background: #fff3cd;
  color: #856404;
}

.rnd-status-active {
  background: #dbeafe;
  color: #1e40af;
}

.rnd-status-planning {
  background: #e0e7ff;
  color: #3730a3;
}

.rnd-date {
  font-size: 10px;
  color: var(--t3);
}

.rnd-card-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--fire-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rnd-icon-alt {
  background: rgba(220, 80, 80, 0.1);
}

.rnd-icon-accent {
  background: rgba(80, 160, 220, 0.1);
}

.rnd-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.rnd-card-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.rnd-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rnd-tag {
  font-size: 10px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.06em;
}

/* ── Progress Bar ────────────────────────────────── */
.rnd-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rnd-progress-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.rnd-progress-fill {
  height: 100%;
  background: var(--fire);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rnd-progress-label {
  font-size: 10px;
  color: var(--t3);
  white-space: nowrap;
}

/* ── Card Footer ─────────────────────────────────── */
.rnd-card-footer {
  margin-top: auto;
  padding-top: 8px;
}

.rnd-card-link {
  font-size: 11px;
  color: var(--t2);
  transition: color 0.2s;
}

.rnd-card-link:hover {
  color: var(--fire);
}

/* ── Stats Bar ───────────────────────────────────── */
.rnd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: clamp(24px, 4vw, 48px);
}

.rnd-stat {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rnd-stat-num {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--fire);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rnd-stat-label {
  font-size: 10px;
  color: var(--t3);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .rnd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rnd-card-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rnd-grid {
    grid-template-columns: 1fr;
  }

  .rnd-card-featured {
    grid-column: 1;
  }

  .rnd-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rnd-filters {
    gap: 6px;
  }

  .rnd-filter {
    padding: 6px 14px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .rnd-stats {
    grid-template-columns: 1fr;
  }

  .rnd-card {
    padding: 24px;
  }

  .rnd-hero-title {
    font-size: 44px;
  }
}
