:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-muted: #e7edf4;
  --text: #142033;
  --muted: #4b5a70;
  --accent: #0f5da8;
  --accent-soft: rgba(15, 93, 168, 0.12);
  --border: rgba(20, 32, 51, 0.12);
  --shadow: 0 20px 50px rgba(20, 32, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  background: #eef2f6;
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(242, 244, 247, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(242, 244, 247, 0.92);
  border-color: var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.header-inner {
  padding: 1rem 0;
}

.brand {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: #A9A9A9;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.auth-actions form {
  margin: 0;
}

.login-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.login-button:hover,
.login-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background: #0a4a87;
  border-color: #0a4a87;
}

.logout-button,
.text-button {
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
  padding: 15px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 15px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--text);
}

.hero,
.updates {
  padding: 2rem 0;
  scroll-margin-top: calc(var(--header-height, 0px) + 1rem);
}

.hero {
  padding-top: 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-copy,
.updates-list,
.support-logos,
.panel-card {
  animation: fade-up 600ms ease both;
}

.hero-copy {
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.2rem);
}

.content-block {

}

.content-block p,
.update-card p,
.footer-inner p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.content-block p + p,
.update-card + .update-card {
  margin-top: 1.25rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  box-shadow: var(--shadow);
}

.panel-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.updates-list {
  display: grid;
  gap: 1rem;
}

.update-card {
}

.update-card a {
  color: var(--accent);
}

.support-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  min-height: 152px;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.logo-card img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.small-text {
  font-size: 10px;
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.auth-page {
  min-height: 100vh;
}

.auth-nav {
  margin-left: auto;
}

.header-logout-form {
  margin: 0;
}

.header-logout-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - var(--header-height, 76px));
  place-items: center;
  padding: clamp(2rem, 7vw, 5rem) 1rem;
}

.auth-card {
  width: min(100%, 32rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 6vw, 2.7rem);
}

.auth-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form,
.resend-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.auth-form label,
.resend-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.auth-form label span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 400;
}

.auth-form input,
.resend-form input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.auth-form input:focus,
.resend-form input:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.auth-form .primary-button {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-switch {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.forgot-password-link {
  margin: 1rem 0 0;
  text-align: right;
}

.forgot-password-link a {
  color: var(--accent);
}

.auth-switch a,
.resend-details summary {
  color: var(--accent);
}

.notice {
  margin: 1.3rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.notice-error {
  background: #fff1f0;
  color: #9d251d;
}

.notice-success {
  background: #eaf7ef;
  color: #1b6b3c;
}

.resend-details {
  margin-top: 1.5rem;
  color: var(--muted);
}

.resend-details summary {
  cursor: pointer;
}

.resend-form .text-button,
.logout-form .text-button {
  justify-self: start;
  padding-left: 0;
  color: var(--accent);
}

.inline-button {
  margin-top: 1.6rem;
}

.project-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.project-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-row strong,
.project-row span {
  display: block;
}

.project-row div span,
.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-status {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.logout-form {
  margin-top: 1.5rem;
}

.project-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.upload-status {
  margin: 0;
  color: var(--muted);
}

.footer-inner {
  align-items: flex-start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-contacts {
  display: grid;
  gap: 1rem;
  margin-left: auto;
  
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  color: #7c8694;
  
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  color: var(--accent);
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  color: currentColor;
}

.footer-icon-phone { 
  width: 1rem;
  height: 1rem;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  h1 {
    max-width: 100%;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .updates {
    padding: 3rem 0;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contacts {
    margin-left: 0;
  }

  .site-nav {
    width: 100%;
  }

  .auth-actions {
    width: 100%;
    margin-left: 0;
  }

  .auth-nav {
    margin-left: 0;
  }

  .nav-link {
    width: fit-content;
  }

  .hero-copy,
  .update-card,
  .panel-card,
  .logo-card {
    padding: 1.2rem;
  }

  .support-logos {
    flex-direction: column;
  }

  .logo-card {
    width: 100%;
  }
}
