@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #fefefe;
  --ink-primary: #1e293b;
  --ink-secondary: #64748b;
  --ink-muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-soft: #e0f2fe;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-primary);
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    var(--bg-page);
  line-height: 1.6;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.hero-visual {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.05); opacity: 0.3; }
}

#lottie-hero {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink-primary) 0%, var(--ink-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--ink-secondary);
  max-width: 500px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-muted);
}

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

.content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.cards-section,
.detail-section,
.env-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 14px;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
}

.card-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  word-break: break-all;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #0284c7;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.detail-section {
  position: sticky;
  top: 24px;
  height: fit-content;
}

.detail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.value {
  font-size: 14px;
  color: var(--ink-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.value:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

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

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.env-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.env-item:hover {
  border-color: var(--accent);
}

.env-item .label {
  font-size: 11px;
}

.env-item .value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  background: transparent;
  border: none;
  padding: 0;
}

.env-item .value:focus {
  box-shadow: none;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--ink-muted);
  font-size: 14px;
}

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

.card {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
  }
  
  .hero-visual {
    margin: 0 auto;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .content {
    grid-template-columns: 1fr;
  }
  
  .detail-section {
    position: static;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 20px 16px 60px;
    gap: 20px;
  }
  
  .hero {
    padding: 28px 20px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-visual {
    width: 140px;
    height: 140px;
  }
  
  #lottie-hero {
    width: 90px;
    height: 90px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .cards-section,
  .detail-section,
  .env-section {
    padding: 20px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .env-grid {
    grid-template-columns: 1fr;
  }
}
