
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f8fc;
  --text: #202137;
  --muted: #85879c;
  --purple: #7564f7;
  --border: #ececf4;
  --sidebar: #17172b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.sidebar {
  width: 245px;
  background: var(--sidebar);
  color: white;
  padding: 28px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 45px; }
.logo {
  width: 43px; height: 43px; border-radius: 13px;
  background: linear-gradient(135deg, #a79aff, #6d5df6);
  display: grid; place-items: center; font-size: 25px; font-weight: bold;
}
.brand b { font-size: 19px; }
.brand small { display: block; color: #aaa; font-size: 9px; letter-spacing: 2px; margin-top: 4px; }
.menu-label { color: #8585a5; font-size: 10px; margin-bottom: 15px; letter-spacing: 2px; }

nav { display: grid; gap: 8px; }

.nav-item {
  padding: 13px; border: 0; border-radius: 9px;
  text-align: left; background: transparent; color: #b7b7ce;
  font-size: 13px;
}
.nav-item:hover, .nav-item.active { background: var(--purple); color: white; }

.sidebar-bottom {
  margin-top: auto; border: 1px solid #34344d;
  border-radius: 10px; padding: 15px; font-size: 12px;
}
.sidebar-bottom p { color: #aaa; margin-top: 8px; font-size: 11px; }

.main-content { margin-left: 245px; padding: 32px 5%; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.eyebrow { font-size: 10px; color: var(--purple); letter-spacing: 2px; margin-bottom: 8px; }
.topbar h1 { font-size: 29px; }
.profile { font-size: 12px; color: var(--muted); }

.page { display: none; }
.active-page { display: block; animation: appear .25s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero {
  min-height: 290px; border-radius: 22px;
  background: linear-gradient(115deg, #eeebff, #dfe8ff);
  display: flex; align-items: center; justify-content: space-between;
  padding: 38px; overflow: hidden;
}
.hero-label { color: #5a49df; font-size: 10px; font-weight: bold; letter-spacing: 2px; }
.hero h2 { font-size: clamp(34px, 4vw, 49px); line-height: 1.15; margin: 16px 0; }
.hero h2 span { color: var(--purple); }
.hero p { max-width: 370px; color: #6f708a; font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.hero-visual {
  width: 180px; height: 180px; border: 1px solid #aaa5ef;
  border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.ai-orb {
  width: 110px; height: 110px; border-radius: 32px;
  background: linear-gradient(145deg, #a59aff, #6754e9);
  box-shadow: 0 20px 45px #7664f74a; display: grid; place-items: center;
  color: white; font-size: 55px; font-weight: bold; transform: rotate(-8deg);
}

.primary-btn {
  background: var(--purple); color: white; border: 0;
  padding: 13px 19px; border-radius: 9px; font-size: 12px; font-weight: bold;
}
.primary-btn:hover { background: #5a49df; }
.full-btn { width: 100%; margin-top: 24px; padding: 15px; }

.section-heading { margin: 32px 0 18px; }
.section-heading h2 { font-size: 20px; }
.section-heading p, .page-intro p { color: var(--muted); font-size: 12px; margin-top: 7px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.tool-card { background: white; padding: 23px; border: 1px solid var(--border); border-radius: 15px; cursor: pointer; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #28244c0c; }
.tool-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; font-size: 20px; }
.purple { background: #eeeaff; color: #7966ed; }
.orange { background: #fff0e6; color: #f18b48; }
.green { background: #e3f8ee; color: #269c6a; }
.blue { background: #e6f0ff; color: #4989eb; }
.tool-card h3 { font-size: 16px; margin-bottom: 8px; }
.tool-card p { font-size: 11px; color: var(--muted); line-height: 1.8; }
.text-btn { border: 0; background: transparent; color: var(--purple); font-size: 11px; font-weight: bold; margin-top: 15px; }

.info-banner { margin-top: 24px; padding: 20px; background: #f0efff; border: 1px solid #e5e2ff; border-radius: 13px; }
.info-banner h3 { font-size: 13px; margin-bottom: 7px; }
.info-banner p { font-size: 11px; color: #777895; line-height: 1.7; }

.page-intro { margin: 15px 0 25px; }
.page-intro h2 { font-size: clamp(25px, 3vw, 32px); }
.workspace-card { max-width: 760px; background: white; padding: 28px; border: 1px solid var(--border); border-radius: 17px; }

.workspace-card label { display: block; font-size: 12px; font-weight: bold; margin: 20px 0 9px; }
.workspace-card label:first-child { margin-top: 0; }
.workspace-card input, .workspace-card select, .workspace-card textarea {
  width: 100%; border: 1px solid #e5e5ef; background: #fcfcff;
  border-radius: 9px; padding: 13px; font-size: 12px; color: var(--text);
}
.workspace-card textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.workspace-card input:focus, .workspace-card select:focus, .workspace-card textarea:focus { outline: 2px solid #c9c1ff; border-color: var(--purple); }

.result-box { margin-top: 24px; padding: 20px; border: 1px solid #e7e3ff; background: #fbfaff; border-radius: 12px; }
.hidden { display: none !important; }
.result-box h3 { font-size: 15px; margin-bottom: 14px; }
.result-box pre { white-space: pre-wrap; overflow-wrap: anywhere; color: #565770; font: 12px/1.9 'DM Sans', sans-serif; margin-bottom: 15px; }
.secondary-btn { background: white; color: #5a49df; border: 1px solid #dcd7ff; border-radius: 7px; padding: 9px 12px; font-size: 11px; }
.price-display { font-size: 36px; font-weight: bold; color: #5a49df; margin: 12px 0; }

footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 22px 0; color: #9697a9; font-size: 10px; }
#settings-status { font-size: 12px; margin: 15px 0; }

@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; padding: 18px; }
  .brand { margin-bottom: 20px; }
  .sidebar-bottom, .menu-label { display: none; }
  nav { display: flex; overflow-x: auto; gap: 5px; }
  .nav-item { flex-shrink: 0; font-size: 11px; padding: 11px; }
  .main-content { margin-left: 0; padding: 22px 16px; }
  .topbar h1 { font-size: 24px; }
  .hero { padding: 25px; }
  .hero-visual { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .workspace-card { padding: 20px; }
}
