:root {
  color-scheme: light;
  --bg: #f6efe7;
  --ink: #16110f;
  --muted: #6f675f;
  --accent: #ff4d2d;
  --accent-2: #00b3a4;
  --accent-3: #ffd166;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 12, 10, 0.18);
  --radius: 24px;
  --radius-sm: 16px;
  --grid-gap: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -20% 0 0 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 77, 45, 0.22), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(0, 179, 164, 0.2), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255, 209, 102, 0.3), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(86, 73, 255, 0.12), transparent 40%);
  filter: blur(10px);
  z-index: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(24px, 5vw, 88px);
  background: rgba(246, 239, 231, 0.85);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(255, 77, 45, 0.15);
}

.brand-title {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cta.primary {
  background: var(--accent);
  color: #fffaf5;
}

.cta.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 32px clamp(24px, 6vw, 96px) 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.9rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.highlight {
  background: linear-gradient(120deg, rgba(255, 77, 45, 0.2), rgba(0, 179, 164, 0.2));
  padding: 0 8px;
  border-radius: 8px;
}

.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

.hero-stats strong {
  font-size: 1.3rem;
  display: block;
  font-family: "Syne", sans-serif;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  gap: 18px;
  position: relative;
}

.orb {
  position: absolute;
  right: 12%;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0d8, rgba(255, 77, 45, 0.2));
  filter: blur(2px);
  opacity: 0.8;
  z-index: 0;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 16px;
}

.pill {
  background: rgba(0, 179, 164, 0.12);
  color: var(--accent-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.panel-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.ad-slot {
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(140deg, #ffe7d4, #f7f0e6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.ad-slot span {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.search {
  padding: 20px clamp(24px, 6vw, 96px) 0;
}

.search-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  box-shadow: var(--shadow);
}

.search-bar label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-bar input,
.search-bar select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.5);
}

.tag.active {
  background: var(--accent-2);
  color: #fff;
  border-color: transparent;
}

.library {
  padding: 30px clamp(24px, 6vw, 96px) 60px;
}

.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.library-head h2 {
  font-size: 1.8rem;
  font-family: "Syne", sans-serif;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
}

.emoji-card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.emoji-card.show {
  transform: translateY(0);
  opacity: 1;
}

.emoji-preview {
  height: 140px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #fef2e4, #f3f6ff);
}

.emoji-card h4 {
  font-size: 1.1rem;
  font-family: "Syne", sans-serif;
}

.emoji-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.emoji-actions {
  display: flex;
  gap: 10px;
}

.emoji-actions button {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.split {
  padding: 0 clamp(24px, 6vw, 96px) 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.split-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.split-card.highlight {
  background: linear-gradient(120deg, #e9f6f3, #ffffff);
}

.split-card ul {
  list-style: none;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.split-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.site-footer {
  padding: 40px clamp(24px, 6vw, 96px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
}

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

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

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