@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --ink: #161616;
  --paper: #f6f1ea;
  --sunset: #f4b37f;
  --reef: #3a8ea6;
  --berry: #7f3f60;
  --lime: #b2d96a;
  --shadow: rgba(22, 22, 22, 0.12);
  --glow: rgba(122, 207, 190, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7ef 0%, var(--paper) 40%)
      no-repeat,
    radial-gradient(circle at 70% 20%, #f8d9bf 0%, transparent 45%)
      no-repeat,
    linear-gradient(120deg, #f9f3eb 0%, #f2efe6 100%) no-repeat;
  min-height: 100vh;
  padding: 36px clamp(20px, 4vw, 56px) 64px;
  position: relative;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.6;
}

main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 1;
}

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

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

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 6px;
}

.brand-mark span {
  width: 8px;
  height: 18px;
  background: var(--reef);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 6px 12px rgba(58, 142, 166, 0.35);
  transform-origin: bottom;
  animation: claw 2.4s ease-in-out infinite;
}

.brand-mark span:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--berry);
}

.brand-mark span:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--sunset);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: rgba(22, 22, 22, 0.55);
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-label {
  font-size: 13px;
  color: rgba(22, 22, 22, 0.55);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 30px var(--shadow);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(178, 217, 106, 0.25);
  animation: pulse 2s infinite;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(22, 22, 22, 0.12);
}

.hero h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

button {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 22, 22, 0.15);
}

.primary {
  background: var(--reef);
  color: white;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(22, 22, 22, 0.2);
}

.hero-panel {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f2f8f7 0%, #fef8f2 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.core {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #fff;
  padding: 22px 26px;
  border-radius: 18px;
  box-shadow: 0 16px 40px var(--shadow);
}

.core h3 {
  font-size: 36px;
  margin: 6px 0;
}

.core span {
  font-size: 13px;
  color: rgba(22, 22, 22, 0.6);
}

.orbit {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(58, 142, 166, 0.4);
  animation: spin 8s linear infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(127, 63, 96, 0.2);
}

.ring-1 {
  width: 120px;
  height: 120px;
}

.ring-2 {
  width: 240px;
  height: 240px;
  border-color: rgba(244, 179, 127, 0.3);
}

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

.stats > div {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px var(--shadow);
}

.stats h3 {
  font-size: 28px;
  margin-top: 6px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(22, 22, 22, 0.55);
}

.farm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  --accent: var(--sunset);
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 20px 44px var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(22, 22, 22, 0.18);
}

.card.active {
  outline: 2px solid rgba(58, 142, 166, 0.35);
  box-shadow: 0 30px 60px rgba(58, 142, 166, 0.25);
}

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

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}

.energy {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.energy span {
  width: 6px;
  height: 20px;
  border-radius: 6px;
  background: rgba(22, 22, 22, 0.15);
}

.energy span.active {
  background: var(--accent);
}

.card h4 {
  margin: 0;
  font-size: 20px;
  font-family: 'Fraunces', serif;
}

.card p {
  font-size: 13px;
  color: rgba(22, 22, 22, 0.7);
  margin-top: 8px;
}

.card .glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 20px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px var(--shadow);
}

.timeline ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.log-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f4f7f6 0%, #fdf6ee 100%);
  font-size: 14px;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: rgba(22, 22, 22, 0.6);
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 217, 106, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(178, 217, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(178, 217, 106, 0);
  }
}

@keyframes claw {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.3);
  }
}

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

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding: 24px 18px 48px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
