@import url('./variables.css');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 173, 0.15), transparent 32%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg-body) 0%, var(--bg-body-alt) 100%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(9, 41, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 41, 68, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 72%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.05;
  color: var(--text-main);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

::selection {
  background: rgba(56, 189, 173, 0.24);
}

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring-color);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.font-display { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.08em; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.hidden { display: none !important; }

.section-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 57, 79, 0.08);
  color: var(--primary-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.3rem 0.56rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13, 52, 70, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.icon-wrap {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 34, 51, 0.08);
  color: inherit;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 1rem;
  height: 1rem;
}

.page-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 0.66rem 0.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(56, 189, 173, 0.14), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(56, 189, 173, 0.18);
}

.empty-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
}

.command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 1rem 1rem;
  background: rgba(5, 19, 31, 0.46);
  backdrop-filter: blur(12px);
}

.command-backdrop.open {
  display: flex;
}

.command-palette {
  width: min(640px, 100%);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 36, 58, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.command-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.command-input {
  flex: 1;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-main);
}

.command-results {
  max-height: min(52vh, 460px);
  overflow-y: auto;
  padding: 0.55rem;
}

.command-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem 0.9rem;
  border-radius: 16px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.command-item:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.command-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.24rem 0.35rem;
  border-radius: 8px;
  background: rgba(7, 34, 51, 0.06);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
}
