:root {
  color-scheme: dark;
  --bg: #101216;
  --panel: #181b22;
  --panel-2: #222733;
  --line: #303746;
  --text: #f7f2ec;
  --muted: #aeb4c2;
  --accent: #8fd7da;
  --accent-2: #f2a66f;
  --good: #9bd9ad;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(143, 215, 218, 0.13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(242, 166, 111, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
label {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(14, 16, 21, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101216;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.56;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 36px 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 14px;
}

.nav a.active,
.nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.side-card,
.panel,
.upload-panel,
.analysis-panel,
.phone-card,
.exports {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(24, 27, 34, 0.9);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 16px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 8px rgba(155, 217, 173, 0.12);
}

main {
  padding: 22px;
  display: grid;
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 22px;
  min-height: 68vh;
  align-items: stretch;
}

.hero-copy,
.panel,
.exports {
  padding: clamp(24px, 4vw, 48px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy > p {
  max-width: 760px;
  font-size: 18px;
}

.hero-actions,
.mode-row,
.screen-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

button:hover,
label:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.primary {
  background: var(--accent);
  color: #101216;
  font-weight: 900;
}

.secondary {
  background: transparent;
}

.upload-panel {
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 370px;
  border: 1px dashed #596272;
  border-radius: 24px;
  padding: 28px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: rgba(143, 215, 218, 0.13);
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

input[type="file"] {
  display: none;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.pipeline,
.note-grid,
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.step,
.note-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.step span {
  color: var(--accent-2);
  font-weight: 900;
}

.step.active {
  border-color: var(--accent);
  background: rgba(143, 215, 218, 0.08);
}

.workspace {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
}

.phone-card,
.analysis-panel {
  padding: 20px;
}

.phone-card {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.phone-top {
  display: flex;
  gap: 6px;
}

.phone-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #596272;
}

.phone-screen {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  padding: 18px;
  background: linear-gradient(180deg, #faf7f1, #e9f7f7);
  color: #14161a;
  box-shadow: inset 0 0 0 8px #0b0d11, 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mock-app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 100%;
}

.mock-app p {
  color: #4f5662;
}

.mock-app .mini {
  color: #137b85;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.mock-app h3 {
  font-size: 36px;
}

.mock-app button {
  background: #111318;
  color: white;
}

.hotspot {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 9%;
  height: 54px;
  border: 2px solid rgba(19, 123, 133, 0.65);
  background: rgba(19, 123, 133, 0.08);
}

.screen-controls {
  align-items: center;
}

.mode {
  color: var(--muted);
}

.mode.active {
  background: var(--accent);
  color: #101216;
  font-weight: 900;
}

.takeaway {
  color: var(--text);
  font-size: 20px;
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
}

details ul,
details p {
  margin: 0;
  padding: 0 18px 16px 34px;
}

details li {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.45;
}

.exports {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 24px;
  align-items: center;
}

.export-grid button {
  border-radius: 18px;
  text-align: left;
}

.presentation .accordion details:not(:first-child) {
  display: none;
}

.presentation .analysis-panel {
  align-content: center;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .hero,
  .workspace,
  .exports {
    grid-template-columns: 1fr;
  }
}
