@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --nav-height: 72px;
  --sidebar-width: 240px;
  --bg-color: #f8f9fa;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Funnel Sans", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Funnel Display", sans-serif;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 50;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.5px;
}

aside {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--nav-height));
  background: rgba(255, 255, 255, 0.5);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.vibes-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vibe-tag {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.vibe-tag:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

.vibe-tag.active {
  color: var(--text-main);
  background: #f3f4f6;
  font-weight: 600;
}

main {
  margin-left: var(--sidebar-width);
  margin-top: var(--nav-height);
  padding: 2rem;
  min-height: calc(100vh - var(--nav-height));
}

.tones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tone-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tone-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tone-colors {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.stripe {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 1rem;
  cursor: pointer;
  transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}

.tone-colors:hover .stripe {
  opacity: 0.8;
}

.tone-colors .stripe:hover {
  flex: 2.5;
  opacity: 1;
}

.hex-display {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stripe:hover .hex-display {
  opacity: 1;
}

.tone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.tone-vibe {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.tone-actions {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-copy {
  background: var(--text-main);
  color: #fff;
}

.btn-copy:hover {
  background: #374151;
}

.btn-demo {
  background: #f3f4f6;
  color: var(--text-main);
  text-decoration: none;
}

.btn-demo:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  aside {
    display: none;
  }
  main {
    margin-left: 0;
  }
}
