@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --primary: #FF5722;
  --secondary: #d25934;
  --tertiary: #006ad9;
  --neutral: #303;

  --bg: #fdfaf8;
  --surface: #ffffff;
  --surface-soft: #fff4ef;
  --line: #e6dad5;
  --text: #2a1d2a;
  --text-soft: #6e5e6e;

  --ok-bg: #e8f9ef;
  --ok-line: #2f8f5a;
  --err-bg: #ffeded;
  --err-line: #b3261e;
  --warn-bg: #fff3e5;
  --warn-line: #a45700;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --space: 1rem;

  --shadow-1: 0 2px 8px rgba(48, 0, 48, 0.08);
  --shadow-2: 0 16px 28px rgba(48, 0, 48, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 87, 34, 0.09), transparent 35%),
    radial-gradient(circle at 96% 10%, rgba(0, 106, 217, 0.08), transparent 34%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: var(--space) auto 1.4rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 1rem;
}

.panel + .panel { margin-top: .85rem; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.brand {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: .35rem 0 0;
  color: var(--text-soft);
  max-width: 66ch;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .89rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.nav a:hover { border-color: var(--secondary); }

.nav a[aria-current="page"] {
  background: #ffe8df;
  border-color: #ffb49d;
  color: #7a2e16;
  font-weight: 600;
}

.grid,
.hero-grid,
.tech-grid {
  margin-top: .9rem;
  display: grid;
  gap: .9rem;
}

.grid { grid-template-columns: 1.15fr 1fr; }
.hero-grid { grid-template-columns: 1.28fr 0.92fr; }
.tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-1);
}

.form-card {
  background: linear-gradient(165deg, #fff, var(--surface-soft));
  box-shadow: var(--shadow-2);
}

h2, h3 {
  margin: 0 0 .6rem;
  font-family: Manrope, Inter, sans-serif;
}

p { margin: .25rem 0 .72rem; line-height: 1.5; }

.notice,
.msg {
  margin-top: .75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: .72rem .86rem;
}

.notice.ok, .msg.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.notice.err, .msg.err { background: var(--err-bg); border-color: var(--err-line); }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); }

label {
  display: block;
  margin: .62rem 0 .25rem;
  font-weight: 600;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid #d5c8c3;
  border-radius: var(--radius-md);
  background: #fff;
  padding: .72rem .8rem;
}

input:focus,
textarea:focus {
  border-color: var(--tertiary);
  outline: 3px solid rgba(0, 106, 217, 0.18);
}

textarea { min-height: 140px; resize: vertical; }

button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: .68rem 1rem;
  background: linear-gradient(130deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.34);
}

button:hover { filter: brightness(1.02); }

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.form-foot {
  margin-top: .78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .48rem;
}

.badge {
  display: inline-block;
  border: 1px solid #e4c7bc;
  background: #fff6f2;
  color: #7a2e16;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .8rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.stat {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-soft);
}

.flow-steps { display: grid; gap: .5rem; }

.step {
  border: 1px solid #dfd2cd;
  border-radius: var(--radius-md);
  background: #fff;
  padding: .56rem .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.list {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
}

.list li {
  border: 1px dashed #d9cbc6;
  border-radius: var(--radius-md);
  margin-top: .45rem;
  padding: .45rem .58rem;
  word-break: break-word;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  text-align: left;
  padding: .7rem;
  border-bottom: 1px solid #efe4df;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #fff4ef;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

tbody tr:hover { background: #fff9f6; }

.callout {
  margin-top: .8rem;
  border: 1px solid #c7dcf8;
  border-radius: var(--radius-md);
  background: #f2f8ff;
  padding: .76rem;
}

.tiny-note { margin: 0; color: var(--text-soft); font-size: .9rem; }

.mono {
  font-family: 'Space Grotesk', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

a { color: var(--tertiary); }

@media (max-width: 940px) {
  .shell { width: min(1120px, calc(100% - 1rem)); }
  .topbar { flex-direction: column; }
  .grid,
  .hero-grid,
  .tech-grid,
  .form-two-col {
    grid-template-columns: 1fr;
  }
}
