:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --text: #172033;
  --muted: #667085;
  --line: #e5e9f0;
  --primary: #1f4fd8;
  --primary-dark: #163eb0;
  --success: #11845b;
  --warning: #b7791f;
  --danger: #c2414b;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(31, 79, 216, .10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #eef2f7 100%);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #2f6bff);
  box-shadow: 0 14px 30px rgba(31, 79, 216, .22);
}

.top-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.hero-card,
.panel,
.dashboard {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 420px;
  gap: 34px;
  align-items: stretch;
  padding: 44px;
}

.hero-copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef4ff;
  border: 1px solid #d7e3ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.benefits span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.signin-card {
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signin-card p,
.panel p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.login-area { margin: 22px 0 14px; }

.status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f6fb;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.status.success { color: var(--success); background: #eefaf5; }
.status.warn { color: var(--warning); background: #fff8eb; }
.status.error { color: var(--danger); background: #fff1f2; }
.status.info { color: #475467; background: #f3f6fb; }

.panel {
  margin-top: 22px;
  padding: 32px;
}

.license-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 22px 0 12px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d9e0ea;
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  font: inherit;
  transition: .2s ease;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 79, 216, .10);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 15px 20px;
  color: #ffffff;
  background: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(31, 79, 216, .18);
  transition: .22s ease;
}

button:hover { transform: translateY(-1px); background: var(--primary-dark); }

button.ghost {
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hidden { display: none !important; }

.dashboard {
  margin-top: 22px;
  padding: 32px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  margin-top: 26px;
}

.prompt-card,
.options-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
}

.prompt-card textarea {
  min-height: 220px;
  margin-bottom: 16px;
}

.options-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.options-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #344054;
  font-weight: 700;
}

.options-card input { width: auto; }

@media (max-width: 980px) {
  .hero-card,
  .builder-grid,
  .license-form {
    grid-template-columns: 1fr;
  }

  .hero-card { padding: 28px; }
  .hero-copy { min-height: auto; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
