@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Light"),
    local("Faktum-Light"),
    url("./assets/fonts/Faktum-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Regular"),
    local("Faktum-Regular"),
    url("./assets/fonts/Faktum-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Medium"),
    local("Faktum-Medium"),
    url("./assets/fonts/Faktum-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum SemiBold"),
    local("Faktum-SemiBold"),
    url("./assets/fonts/Faktum-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand: #d5a730;
  --brand-dark: #b48816;
  --brand-soft: #ead18a;
  --brand-rgb: 213, 167, 48;
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --white: #ffffff;
  --canvas: #f5f3ee;
  --panel: #ffffff;
  --panel-soft: #f8f6f0;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Faktum", "Public Sans", "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(var(--brand-rgb), 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #faf9f5 0%, #efebe1 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  font: inherit;
}

.page-shell {
  width: min(920px, calc(100% - 28px));
  margin: 22px auto 44px;
}

.app-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.98)),
    var(--panel);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--brand-rgb), 0.22), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(var(--brand-rgb), 0.1), transparent 24%),
    linear-gradient(135deg, #050505 0%, #111111 52%, #1a1a1a 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(var(--brand-rgb), 0.12), transparent 34%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent 24%);
}

.hero-content,
.documents-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.brand-lockup {
  width: clamp(150px, 12vw, 188px);
}

.brand-logo {
  width: 78%;
  height: auto;
}

.eyebrow {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.1vw, 1.14rem);
  font-weight: 400;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.82);
}

.documents-panel {
  display: grid;
  gap: 20px;
  padding: 6px 10px 10px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.documents-panel .section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.44rem, 1.8vw, 1.78rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

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

.doc-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background:
    radial-gradient(circle at top right, rgba(var(--brand-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.96));
}

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

.doc-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc-description {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--ink-soft);
  word-break: break-word;
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.primary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.24);
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100%, calc(100% - 12px));
    margin: 6px auto 18px;
  }

  .hero-panel,
  .app-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .brand-logo {
    width: 100%;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .doc-actions,
  .primary-button {
    width: 100%;
  }
}
