:root {
  --amatas-blue: #046bd2;
  --amatas-blue-dark: #045cb4;
  --amatas-navy: #1e293b;
  --amatas-text: #334155;
  --amatas-muted: #64748b;
  --amatas-line: #e2e8f0;
  --amatas-soft: #f8fafc;
  --amatas-white: #ffffff;
  --amatas-success: #0f8a5f;
  --amatas-error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--amatas-text);
  background:
    radial-gradient(circle at top left, rgba(4, 107, 210, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  font-family: Poppins, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--amatas-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--amatas-blue-dark);
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 24px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: #071f3a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-wordmark {
  display: inline-block;
  width: 108px;
  height: 30px;
  overflow: hidden;
  vertical-align: middle;
}

.logo-wordmark img {
  width: 158px;
  max-width: none;
  height: auto;
  display: block;
  transform: translate(-50px, -15px);
}

.logo-white {
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.header-nav a:hover,
.header-nav a:focus {
  color: var(--amatas-white);
}

.header-cta,
.primary-button {
  border: 0;
  border-radius: 4px;
  background: var(--amatas-blue);
  color: var(--amatas-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover,
.header-cta:focus,
.primary-button:hover,
.primary-button:focus {
  background: var(--amatas-blue-dark);
  color: var(--amatas-white);
  text-decoration: none;
}

.header-cta:active,
.primary-button:active {
  transform: translateY(1px);
}

main {
  flex: 1;
}

.hero-section {
  width: min(1180px, calc(100% - 40px));
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  padding: 38px 0;
}

.eyebrow,
.panel-kicker,
.detail-label {
  margin: 0 0 12px;
  color: var(--amatas-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-kicker {
  margin-bottom: 0;
  color: var(--amatas-blue);
  font-size: 28px;
  line-height: 1.15;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
  color: var(--amatas-navy);
  line-height: 1.1;
  font-weight: 800;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 6vw, 78px);
}

h2 {
  font-size: 28px;
}

.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--amatas-muted);
  font-size: 20px;
}

.shortener-panel {
  padding: 34px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.panel-heading {
  margin-bottom: 26px;
}

.auth-form,
.shorten-form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--amatas-navy);
  font-size: 14px;
  font-weight: 700;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--amatas-line);
  border-radius: 4px;
  background: var(--amatas-white);
  color: var(--amatas-navy);
  font: inherit;
}

.field:focus {
  border-color: var(--amatas-blue);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.14);
  outline: none;
}

.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--amatas-text);
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--amatas-blue);
}

.form-note {
  margin: 0;
  color: var(--amatas-muted);
  font-size: 13px;
}

.notice {
  margin-top: 22px;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid var(--amatas-line);
  background: var(--amatas-soft);
}

.notice strong {
  display: block;
  color: var(--amatas-navy);
}

.notice p {
  margin: 4px 0 0;
}

.notice-success {
  border-color: rgba(15, 138, 95, 0.28);
  background: rgba(15, 138, 95, 0.08);
}

.notice-error {
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.08);
}

.notice-info {
  border-color: rgba(4, 107, 210, 0.24);
  background: rgba(4, 107, 210, 0.08);
}

.result-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  width: 100%;
  margin: 72px 0 0;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  background: #071f3a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  line-height: 1;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--amatas-white);
}

.site-footer .copyright {
  color: rgba(255, 255, 255, 0.68) !important;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero-section {
    grid-template-columns: 1fr;
    margin-top: 54px;
    gap: 28px;
  }

  .hero-copy {
    padding: 20px 0 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-footer {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-cta {
    width: 100%;
  }

  .shortener-panel {
    padding: 24px;
  }

  .input-action {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }
}
