﻿:root {
  --bg-1: #f6f0e5;
  --bg-2: #fef8f0;
  --ink: #1a1a1a;
  --muted: #6b5d4d;
  --accent: #e58b5b;
  --accent-2: #1f6f78;
  --card: #ffffff;
  --line: rgba(26, 26, 26, 0.1);
  --shadow: 0 24px 60px rgba(31, 26, 19, 0.18);
  --radius: 18px;
  --font-title: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-body: "Trebuchet MS", "Lucida Grande", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-2), var(--bg-1));
  min-height: 100vh;
  overflow-x: hidden;
}

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

.glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(229, 139, 91, 0.35), rgba(229, 139, 91, 0));
  filter: blur(2px);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-title {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 12px;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.ghost {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 26, 26, 0.1);
}

.solid {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(229, 139, 91, 0.3);
}

.small {
  padding: 6px 14px;
  font-size: 12px;
}

.layout {
  padding: 12px 48px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-title);
  font-size: 42px;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-copy p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.search-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-1);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-2);
}

.quick-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-2);
  font-size: 13px;
}

.hero-frame {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  animation: floatIn 0.8s ease both;
}

.frame-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.outer-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 14px;
  background: white;
}

.outer-shell {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  padding: 16px;
  min-height: 100vh;
}

.outer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.outer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(229, 139, 91, 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
}

.outer-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.08);
  color: var(--accent-2);
  font-size: 12px;
}

.tab.active {
  background: var(--accent-2);
  color: white;
}

.outer-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
}

.outer-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfaf7;
  display: grid;
  gap: 10px;
  font-size: 12px;
}

.panel-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.panel-item {
  padding: 6px 8px;
  border-radius: 8px;
  background: white;
}

.inner-wrap {
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: white;
}

.inner-frame {
  width: 100%;
  height: 320px;
  border: none;
}

.inner-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(229, 139, 91, 0.12), rgba(31, 111, 120, 0.12));
}

.inner-hero h2 {
  margin: 6px 0 4px;
  font-family: var(--font-title);
}

.inner-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.inner-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--accent-2);
}

.inner-score {
  text-align: right;
}

.score-number {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-title);
}

.score-label {
  font-size: 12px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--card);
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 18px rgba(26, 26, 26, 0.08);
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.card h3 {
  margin: 0;
  font-size: 15px;
}

.card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

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

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

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
  }

  .layout {
    padding: 12px 24px 32px;
  }

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

  .outer-frame {
    height: 360px;
  }
}

@media (max-width: 620px) {
  .outer-body {
    grid-template-columns: 1fr;
  }

  .outer-panel {
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .inner-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
