* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #f3f2ee;
  --card: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.06);
  --text: #111;
  --muted: #666;
  --muted-strong: #777;
  --accent: #2453ff;
  --accent-soft: rgba(36, 83, 255, 0.1);
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
  --blur: 12px;
  --transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  position: relative;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: #000000;
  color: #ffffff;
}
.bg-grid,
.grid,
.noise,
.gradient,
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.bg-grid,
.grid,
.noise {
  inset: 0;
}
.bg-grid,
.grid {
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.noise {
  opacity: 0.04;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 7px 7px;
}
.gradient {
  width: 500px;
  height: 500px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.15;
}
.gradient-1 {
  background: #7dd3fc;
  top: -100px;
  left: -100px;
}
.gradient-2 {
  background: #f9a8d4;
  right: -120px;
  bottom: -120px;
}
.ambient {
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.ambient-1 {
  width: 520px;
  height: 520px;
  background: rgba(36, 83, 255, 0.15);
  top: -160px;
  right: -160px;
}
.ambient-2 {
  width: 420px;
  height: 420px;
  background: rgba(0, 0, 0, 0.05);
  bottom: -120px;
  left: -120px;
}
nav,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.back {
  color: #444444;
  font-size: 1rem;
  padding-bottom: 0.2rem;
}
.eyebrow,
.label {
  text-transform: uppercase;
  color: var(--muted-strong);
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}
.label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.primary,
.generate,
.tab.active {
  background: #111;
  color: #fff;
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }
}
