:root {
  --ink: #14201c;
  --muted: rgba(20, 32, 28, 0.62);
  --paper: #e7efe8;
  --leaf: #1f6b4a;
  --leaf-deep: #0f3d2c;
  --candy: #e85d04;
  --candy-soft: #ff9f1c;
  --glass: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.55);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, #d5e8dc 0%, #e9f0e6 42%, #f3ebe0 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: float 14s ease-in-out infinite alternate;
}
.glow-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  left: -12%;
  top: -18%;
  background: radial-gradient(circle, rgba(31, 107, 74, 0.35), transparent 68%);
}
.glow-b {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  right: -10%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.28), transparent 70%);
  animation-delay: -4s;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2%, 3%) scale(1.06); }
}

.portal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--leaf-deep);
  animation: rise 0.8s ease 0.05s both;
}

.tagline {
  margin: 18px 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.8s ease 0.12s both;
}

.entries {
  margin-top: clamp(36px, 7vh, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: rise 0.85s ease 0.2s both;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 40px rgba(20, 32, 28, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.entry::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  opacity: 0.35;
  transition: transform 0.35s ease;
}
.entry-crm::before {
  background: radial-gradient(circle, rgba(31, 107, 74, 0.55), transparent 70%);
}
.entry-agent::before {
  background: radial-gradient(circle, rgba(232, 93, 4, 0.5), transparent 70%);
}

.entry:hover,
.entry:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20, 32, 28, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}
.entry:hover::before,
.entry:focus-visible::before {
  transform: scale(1.25) translate(-8%, -8%);
}

.entry-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  letter-spacing: -0.02em;
}
.entry-crm .entry-title { color: var(--leaf); }
.entry-agent .entry-title { color: var(--candy); }

.entry-desc {
  margin-top: 2px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 16rem;
}
.entry-go {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  animation: rise 0.9s ease 0.28s both;
}
.foot a {
  color: var(--leaf-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 61, 44, 0.25);
}
.foot a:hover { border-bottom-color: var(--leaf-deep); }
.sep { opacity: 0.5; }

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

@media (max-width: 720px) {
  .entries { grid-template-columns: 1fr; }
  .entry { min-height: 160px; }
}
