@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;
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --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;
  --radius-sm: 12px;
  --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);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 167, 48, 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%);
}

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

button,
input,
textarea,
a {
  font: inherit;
}

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

.app-panel {
  position: relative;
  overflow: hidden;
  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(213, 167, 48, 0.16);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: auto;
  padding: 30px 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(213, 167, 48, 0.22), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(213, 167, 48, 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(213, 167, 48, 0.12), transparent 34%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent 24%);
}

.hero-content,
.app-header,
.card {
  position: relative;
  z-index: 1;
}

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

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

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

.section-label,
.field-label,
.app-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-card,
.downloads-card {
  border: 1px solid rgba(213, 167, 48, 0.18);
  border-radius: var(--radius-lg);
}

.app-panel {
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 18px;
}

.app-header {
  display: grid;
  gap: 12px;
  padding: 2px 10px 0;
}

.app-kicker {
  margin: 0;
  color: var(--brand-dark);
}

.app-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-intro {
  margin: 0;
  max-width: 48rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.card {
  padding: 0 10px 10px;
}

.form-sections {
  display: grid;
  gap: 20px;
}

.section-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.96));
  border-color: rgba(213, 167, 48, 0.18);
}

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

.section-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.section-label,
.field-label {
  color: var(--brand-dark);
}

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

.form-field {
  display: grid;
  gap: 9px;
}

.same-as-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.same-as-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-dark);
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.field-control {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

textarea.field-control {
  min-height: 104px;
  resize: vertical;
}

.field-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(213, 167, 48, 0.16);
  background: #ffffff;
}

.field-control.is-invalid {
  border-color: #b73d36;
  box-shadow: 0 0 0 4px rgba(183, 61, 54, 0.08);
}

.field-control:disabled {
  color: rgba(17, 17, 17, 0.52);
  background: rgba(244, 240, 232, 0.95);
  border-color: rgba(17, 17, 17, 0.08);
  cursor: not-allowed;
}

.field-error {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #b73d36;
}

.actions-row {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.primary-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(213, 167, 48, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d0d0d, #1f1f1f);
  color: #f7f4eb;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(213, 167, 48, 0.82);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.helper-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.feedback-message {
  min-height: 1.6em;
  margin-top: 16px;
  font-weight: 500;
}

.feedback-message.success {
  color: #156a43;
}

.feedback-message.error {
  color: #b73d36;
}

.download-list {
  margin-top: 18px;
}

.downloads-card {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(213, 167, 48, 0.18);
}

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

.download-link {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 248, 242, 0.96), rgba(255, 255, 255, 0.98));
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.download-link strong {
  font-size: 1rem;
}

.download-link span {
  color: var(--ink-soft);
  word-break: break-word;
  line-height: 1.5;
}

.download-link:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 167, 48, 0.52);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

@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;
  }

  .form-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel h1 {
    max-width: 16ch;
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .app-heading h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .primary-button {
    width: 100%;
  }
}
