/* DeepSeek IDE — landing site. Catppuccin Mocha palette. */

:root {
  --bg: #1e1e2e;
  --bg-alt: #181825;
  --bg-deep: #11111b;
  --surface: #313244;
  --overlay: #45475a;
  --muted: #6c7086;
  --text: #cdd6f4;
  --subtle: #a6adc8;
  --blue: #89b4fa;
  --lavender: #b4befe;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --red: #f38ba8;
  --peach: #fab387;
  --mauve: #cba6f7;
  --pink: #f5c2e7;
  --teal: #94e2d5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--lavender); }

code, kbd, pre {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  background: var(--bg-deep);
  color: var(--pink);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  padding: 12px 14px;
  margin: 8px 0 0 0;
  border-radius: 8px;
  color: var(--text);
  overflow-x: auto;
}

kbd {
  border: 1px solid var(--overlay);
  color: var(--text);
  padding: 1px 8px;
  font-size: 12px;
}

h1, h2, h3 { color: #f5e0dc; margin: 0; }
h2 { font-size: 28px; margin-bottom: 28px; }

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

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0;
  background: rgba(24, 24, 37, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-deep);
  z-index: 50;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-weight: 700; font-size: 17px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.brand .logo { color: var(--mauve); font-size: 22px; }
.topbar nav { display: flex; gap: 26px; align-items: center; }
.topbar nav a { color: var(--subtle); font-size: 14px; }
.topbar nav a:hover { color: var(--text); }
.ghbtn {
  border: 1px solid var(--overlay);
  border-radius: 8px;
  padding: 6px 14px;
}

/* ---------- hero ---------- */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(203, 166, 247, 0.10), transparent 60%),
    radial-gradient(ellipse 600px 300px at 0% 30%, rgba(137, 180, 250, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-block;
  background: var(--surface); color: var(--subtle);
  border: 1px solid var(--overlay);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; margin-bottom: 16px;
}
h1 {
  font-size: 52px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
h1 .grad {
  background: linear-gradient(120deg, var(--blue), var(--mauve), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 17px; color: var(--subtle); margin: 0 0 28px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  cursor: pointer; border: 1px solid transparent;
}
.btn.primary { background: var(--blue); color: var(--bg); }
.btn.primary:hover { background: var(--lavender); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--overlay); }
.btn.ghost:hover { background: var(--surface); }

.fine { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- mock window ---------- */
.window {
  background: var(--bg-alt);
  border: 1px solid var(--bg-deep);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.window-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--bg-deep);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--red); } .dot.y { background: var(--yellow); } .dot.g { background: var(--green); }
.window-title { color: var(--muted); margin-left: auto; font-size: 12px; }
.window-body { display: grid; grid-template-columns: 180px 1fr; min-height: 360px; }

.sb {
  background: var(--bg-alt); border-right: 1px solid var(--bg-deep);
  padding: 14px 10px; font-size: 12px;
}
.sb-title { color: #f5e0dc; font-weight: 600; padding: 4px 6px 12px; }
.sb-new {
  background: var(--surface); border-radius: 8px;
  padding: 6px 10px; margin-bottom: 10px;
  color: var(--text); font-weight: 600;
}
.sb-row {
  padding: 6px 10px; border-radius: 6px;
  color: var(--subtle); margin: 2px 0;
}
.sb-row:hover { background: var(--surface); }
.sb-active { background: var(--overlay); color: #f5e0dc; }
.sb-account {
  margin-top: 30px; padding: 8px 10px;
  border-top: 1px solid var(--bg-deep);
  color: var(--subtle);
}

.ch {
  background: var(--bg);
  padding: 16px 18px; font-size: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg .head {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 4px;
}
.msg.user {
  background: #2a2a3c; border-radius: 10px; padding: 8px 12px; color: #f5e0dc;
}
.msg.user .head { color: var(--peach); }
.msg.assistant { color: var(--text); padding: 4px; }
.msg.assistant .head { color: var(--blue); }
.think {
  background: #1a1a28; border-left: 3px solid var(--mauve);
  padding: 6px 10px; border-radius: 6px;
  color: var(--subtle); font-style: italic;
  margin-bottom: 6px; font-size: 11px;
}
.ch pre { background: var(--bg-deep); padding: 8px; font-size: 11px; }

.input-mock {
  margin-top: auto;
  background: #2a2a3c; border: 1px solid var(--surface);
  border-radius: 12px; padding: 8px 12px;
  display: flex; gap: 10px; align-items: center;
  color: var(--muted); font-size: 11px;
}
.input-mock .m {
  margin-left: auto;
  border: 1px solid var(--overlay); border-radius: 10px;
  padding: 2px 8px; color: var(--subtle);
}
.input-mock .send {
  background: var(--blue); color: var(--bg);
  padding: 3px 10px; border-radius: 10px; font-weight: 600;
}

/* ---------- features ---------- */
.features { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--bg-deep); border-bottom: 1px solid var(--bg-deep); }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--surface);
  padding: 22px; border-radius: 14px;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--overlay); }
.card .ico { font-size: 26px; margin-bottom: 8px; }
.card h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.card p { margin: 0; color: var(--subtle); font-size: 14px; }

/* ---------- models ---------- */
.models { padding: 80px 0; }
.table {
  margin-top: 18px;
  background: var(--bg-alt); border: 1px solid var(--surface);
  border-radius: 12px; overflow: hidden;
}
.trh, .tr {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 0.8fr 2fr;
  padding: 12px 18px;
}
.trh {
  background: var(--bg-deep); color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.tr {
  color: var(--text);
  border-top: 1px solid var(--surface);
  font-size: 14px;
}
.tr:hover { background: var(--surface); }

/* ---------- shortcuts ---------- */
.shortcuts { padding: 60px 0; background: var(--bg-alt); border-top: 1px solid var(--bg-deep); border-bottom: 1px solid var(--bg-deep); }
.kbgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px;
  color: var(--subtle); font-size: 14px;
}
@media (max-width: 700px) { .kbgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- faq ---------- */
.faq { padding: 80px 0; }
details {
  background: var(--bg-alt); border: 1px solid var(--surface);
  border-radius: 10px; margin-bottom: 10px;
  padding: 12px 18px;
}
details summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; outline: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸  "; color: var(--muted); }
details[open] summary::before { content: "▾  "; color: var(--blue); }
details p { margin: 10px 0 0; color: var(--subtle); }

/* ---------- footer ---------- */
footer {
  padding: 30px 0;
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 12px;
}
footer .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- screenshots ---------- */
.screenshots { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--bg-deep); border-bottom: 1px solid var(--bg-deep); }
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 30px;
}
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
.shots figure {
  margin: 0; background: var(--bg-deep);
  border: 1px solid var(--surface); border-radius: 12px;
  overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.shots figure:hover { transform: translateY(-4px); border-color: var(--blue); }
.shots img {
  width: 100%; display: block; aspect-ratio: 16/10;
  object-fit: cover; background: var(--bg);
}
.shots figcaption {
  padding: 10px 14px; color: var(--subtle); font-size: 13px;
  border-top: 1px solid var(--surface);
}

/* ---------- compare ---------- */
.compare { padding: 80px 0; }
.cmp-table {
  margin-top: 30px;
  background: var(--bg-alt); border: 1px solid var(--surface);
  border-radius: 12px; overflow: hidden;
}
.cmp-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 1px solid var(--surface); padding: 12px 18px;
  align-items: center; gap: 14px; font-size: 14px;
}
.cmp-row:first-child { border-top: none; }
.cmp-row > div:first-child { color: var(--text); font-weight: 500; }
.cmp-row > div { color: var(--subtle); }
.cmp-head { background: var(--bg-deep); font-weight: 600; }
.cmp-head > div { color: var(--text); }
.cmp-row .good { color: var(--green); font-weight: 600; }
@media (max-width: 800px) {
  .cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .cmp-head { display: none; }
  .cmp-row > div:first-child::after { content: ":"; color: var(--muted); }
  .cmp-row > div:not(:first-child) { padding-left: 14px; }
  .cmp-row > div:nth-child(2)::before { content: "DeepSeek IDE — "; color: var(--muted); }
  .cmp-row > div:nth-child(3)::before { content: "Cursor — "; color: var(--muted); }
  .cmp-row > div:nth-child(4)::before { content: "Claude Code — "; color: var(--muted); }
}

/* ---------- nav lang chip ---------- */
nav a.lang {
  border: 1px solid var(--surface); border-radius: 12px;
  padding: 2px 10px; font-size: 11px; color: var(--subtle);
}
nav a.lang:hover { color: var(--text); border-color: var(--blue); }

/* ---------- changelog ---------- */
.changelog { padding: 40px 0 80px; }
.release {
  background: var(--bg-alt); border: 1px solid var(--surface);
  border-radius: 12px; padding: 22px 26px; margin-bottom: 18px;
}
.release header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px; font-size: 13px;
}
.release .ver {
  font-family: monospace; color: var(--blue); font-weight: 700;
  background: var(--bg-deep); padding: 3px 10px; border-radius: 6px;
}
.release .date { color: var(--muted); }
.release .badge.new {
  background: var(--green); color: var(--bg); padding: 2px 10px;
  border-radius: 10px; font-size: 11px; font-weight: 600;
}
.release h3 { color: var(--text); margin: 8px 0 12px; }
.release ul { color: var(--subtle); line-height: 1.7; padding-left: 22px; }
.release li { margin-bottom: 4px; }
.release li b { color: var(--text); }
.release code { background: var(--bg-deep); color: var(--peach);
  padding: 1px 6px; border-radius: 4px; font-size: 12px; }
