:root {
  --bg: #14181f;
  --bg-panel: #1b212b;
  --bg-panel-raised: #212836;
  --line: #2b3241;
  --text: #edeef0;
  --text-dim: #9aa3b2;
  --amber: #ffb454;
  --amber-dim: #7a5a2c;
  --teal: #4fd9c4;
  --red: #ff5c5c;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

a { color: var(--teal); }

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s ease;
}

.status.ready .status-dot { background: var(--teal); }
.status.recording .status-dot { background: var(--red); animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: calc(100vh - 130px);
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* ---------- Recorder panel ---------- */

.recorder-panel {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
}

@media (max-width: 900px) {
  .recorder-panel { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 24px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.headline {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 520px;
}

.sub {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 40px;
}

.deck {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 420px;
}

.vu-meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.vu-meter span {
  width: 6px;
  height: 8px;
  background: var(--amber-dim);
  border-radius: 2px;
  transition: height 0.08s ease, background 0.08s ease;
}

.vu-meter.active span { background: var(--amber); }

.record-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg-panel-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.record-btn:disabled { cursor: not-allowed; opacity: 0.5; }

.record-btn:not(:disabled):hover { border-color: var(--amber); transform: scale(1.03); }

.record-btn-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  transition: border-radius 0.2s ease;
}

.record-btn.recording .record-btn-dot { border-radius: 5px; }

.record-btn-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timer {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.live-transcript {
  margin-top: 28px;
  max-width: 460px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 1.6em;
}

/* ---------- Notes panel ---------- */

.notes-panel {
  padding: 56px 48px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .notes-panel { padding: 40px 24px; }
}

.notes-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.notes-panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.notes-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.empty-state {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.note-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.note-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.note-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.note-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.note-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.note-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}

.note-actions button {
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}

.note-actions button:hover { color: var(--amber); }

/* ---------- Footer ---------- */

.footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
}
