@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --ink:      #111318;
  --muted:    #6B7280;
  --line:     #E2E4E0;
  --paper:    #FFFFFF;
  --ground:   #F0F0EB;
  --indigo:   #3730A3;
  --indigo-d: #2E2782;
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  height: 58px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand img {
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.is-hidden { display: none; }

nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

nav form { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

.button,
nav a,
nav button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.03em;
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.button:hover,
nav a:hover,
nav button:hover {
  border-color: #9CA3AF;
}

.button.primary,
nav a[href="/login"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  font-weight: 600;
}

.button.primary:hover,
nav a[href="/login"]:hover {
  background: var(--indigo-d);
  border-color: var(--indigo-d);
}

/* ── MAIN ── */
main {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(40px, 7vw, 80px) 20px;
}

/* ── HERO ── */
.hero {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
}

h1 {
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ── STATUS PANEL ── */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo);
  border-radius: 2px;
  padding: 20px;
}

.status {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.dot {
  background: #16A34A;
  border-radius: 999px;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

dl {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  text-align: right;
}

/* ── FEATURES ── */
.features {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
}

article {
  border-right: 1px solid var(--line);
  padding: 24px 28px 24px 0;
}

article:last-child {
  border-right: none;
  padding-right: 0;
}

article:not(:first-child) {
  padding-left: 28px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    height: auto;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  nav, .actions { width: 100%; }

  .button,
  nav a,
  nav button,
  nav form { flex: 1 1 auto; }

  .button,
  nav a,
  nav button { justify-content: center; }

  nav button { width: 100%; }

  .hero, .features { grid-template-columns: 1fr; }

  article {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 20px 0;
  }

  article:first-child { border-top: none; padding-top: 0; }
}