:root {
  --bg:#f5f5f7;
  --fg:#111;
  --muted:#666;
  --card:#fff;
  --border:#e3e3e7;
  --accent:#111;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Landing */
.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Mondrian-like background */
.mondrian-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101010 6px, transparent 6px) 18% 0/1px 100% no-repeat,
    linear-gradient(90deg, #101010 6px, transparent 6px) 48% 0/1px 100% no-repeat,
    linear-gradient(0deg, #101010 6px, transparent 6px) 0 28%/100% 1px no-repeat,
    linear-gradient(0deg, #101010 6px, transparent 6px) 0 62%/100% 1px no-repeat,
    linear-gradient(90deg, #e9e9ea 0, #e9e9ea 100%);
}
.mondrian-bg::before,
.mondrian-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.mondrian-bg::before {
  background:
    linear-gradient(#D62424,#D62424) 5% 10%/12% 18% no-repeat,
    linear-gradient(#2245A3,#2245A3) 60% 12%/18% 14% no-repeat,
    linear-gradient(#F5C518,#F5C518) 22% 70%/20% 16% no-repeat,
    linear-gradient(#f7f7f5,#f7f7f5) 0 0/100% 100% no-repeat;
  inset: 0;
  opacity: 0.9;
}
.mondrian-bg::after {
  inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(0,0,0,0.07), transparent 55%);
}

.center-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 36px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Glossy title */
.title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #111, #333);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.3),
    0 10px 30px rgba(0,0,0,0.2);
}
.subtitle {
  margin-top: 6px;
  color: #444;
  font-size: 18px;
}
.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn:hover { opacity: 0.92; }

/* App page */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 980px) { .grid{ grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.h1 { font-size: 28px; font-weight: 800; margin: 4px 0 8px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
textarea, input[type="number"], select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
}
label { display:block; font-weight: 600; margin: 10px 0 6px; }
.small { font-size: 12px; color: var(--muted); }
button {
  border:1px solid var(--accent); background: var(--accent); color:#fff;
  padding:10px 14px; border-radius:12px; cursor:pointer;
}
button.ghost { background: transparent; color: var(--fg); border-color: var(--border); }
canvas { max-width: 100%; height: auto; border-radius: 12px; border:1px solid var(--border); }
.pill { display:inline-block; padding:2px 8px; border-radius:999px; border:1px solid var(--border); background:#fafafa; font-size:12px; margin-right:6px; }
.footer { margin-top: 12px; color: var(--muted); font-size: 13px; }

