:root {
  --bg: #f2eee7;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(58, 50, 44, 0.12);
  --text: #211b18;
  --muted: #63574f;
  --accent: #a2471c;
  --accent-strong: #8a3710;
  --shadow: 0 30px 80px rgba(62, 47, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 142, 80, 0.32), transparent 32%),
    radial-gradient(circle at right center, rgba(165, 116, 69, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, var(--bg) 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}

.layout {
  display: grid;
  gap: 28px;
  padding-top: 28px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 8px 4px 2px;
}

.eyebrow {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--muted);
}

.lead {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.statement {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.card {
  min-height: 100%;
  padding: 24px;
}

.card-accent {
  background:
    linear-gradient(180deg, rgba(162, 71, 28, 0.12), rgba(255, 255, 255, 0.52)),
    var(--surface);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.card p,
.card li,
.statement p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.links a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.statement {
  padding: 24px;
}

.statement-label {
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.login-shell {
  max-width: 760px;
}

.login-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.login-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  font-size: 0.95rem;
  font-weight: 700;
}

.login-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(178, 45, 32, 0.22);
  border-radius: 14px;
  background: rgba(178, 45, 32, 0.08);
  color: #922018;
  font-weight: 700;
}

.embed-card {
  padding: 24px;
}

.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.embed-header h2 {
  margin: 0;
}

.embed-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.embed-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.embed-frame {
  display: block;
  width: 100%;
  min-height: 76vh;
  border: 0;
}

@media (max-width: 940px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 100%;
  }

  .embed-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto;
    padding: 18px;
    border-radius: 22px;
  }

  .hero-actions,
  .links,
  .topbar-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .embed-frame {
    min-height: 68vh;
  }
}
