:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #18181b;
  background: #f5f5f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 204, 0, .14), transparent 24rem),
    #f7f7f6;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid #e4e4e7;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #09090b;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #ffcc00;
  font-size: 1.45rem;
  font-weight: 900;
}

.brand strong { display: block; font-size: 1.2rem; line-height: 1; }
.brand small { display: block; margin-top: .3rem; color: #71717a; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.support-link {
  color: #52525b;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.support-link:hover { color: #09090b; }

main { min-height: calc(100vh - 148px); }

.login-shell {
  display: grid;
  min-height: calc(100vh - 148px);
  place-items: center;
  padding: 3rem 1.25rem;
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(2rem, 6vw, 3.25rem);
  border: 1px solid #e4e4e7;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(24, 24, 27, .12);
}

.lock-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 17px;
  background: #ffcc00;
}

.lock-icon svg { width: 26px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  margin: 0 0 .6rem;
  color: #b38f00;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.login-intro {
  margin: 1rem 0 1.75rem;
  color: #71717a;
  font-size: .93rem;
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: .55rem;
  font-size: .8rem;
  font-weight: 750;
}

.password-row { position: relative; }

input {
  width: 100%;
  height: 52px;
  padding: 0 3.2rem 0 1rem;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  outline: none;
  background: #fafafa;
  transition: border .15s, box-shadow .15s, background .15s;
}

input:focus {
  border-color: #d6aa00;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .2);
}

.icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
}
.icon-button:hover { background: #f0f0f0; color: #18181b; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.form-error {
  min-height: 1.35rem;
  margin: .5rem 0;
  color: #b91c1c;
  font-size: .78rem;
  font-weight: 600;
}

.primary-button {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 0;
  border-radius: 12px;
  background: #171717;
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.primary-button:hover { background: #2d2d2d; transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.help-note {
  display: flex;
  gap: .65rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4e4e7;
  color: #71717a;
  font-size: .75rem;
  line-height: 1.55;
}
.help-note svg { width: 18px; flex: 0 0 18px; fill: none; stroke: #a1a1aa; stroke-width: 1.7; }
.help-note a { color: #3f3f46; font-weight: 700; }

.download-shell {
  width: min(100% - 2rem, 1440px);
  margin: 2rem auto 5rem;
}

.hero {
  position: relative;
  display: flex;
  min-height: 340px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 204, 0, .28), transparent 20rem),
    linear-gradient(125deg, #050505, #181714);
  color: white;
}
.hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255,255,255,.02), 0 0 0 7rem rgba(255,255,255,.02);
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }
.eyebrow.yellow { color: #ffcc00; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: .99; letter-spacing: -.055em; }
.hero-content > p:not(.eyebrow) { max-width: 690px; margin: 1.4rem 0 1.6rem; color: #d4d4d8; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; color: #f4f4f5; font-size: .78rem; font-weight: 650; }
.hero-meta span { display: flex; align-items: center; gap: .4rem; }
.hero-meta svg { width: 17px; fill: none; stroke: #ffcc00; stroke-width: 2; }

.logout-button {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.logout-button:hover { background: rgba(255,255,255,.15); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  margin-top: 2.25rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-heading h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.section-heading > span { color: #a1a1aa; font-size: .72rem; font-weight: 650; }
.secondary-heading { margin-top: 2.5rem; }

.download-list { display: grid; gap: .85rem; }

.download-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 1.15rem;
  align-items: center;
  padding: 1.3rem;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  background: white;
  box-shadow: 0 6px 22px rgba(24, 24, 27, .04);
}
.download-card.featured { border-color: #ead98d; box-shadow: 0 10px 30px rgba(171, 137, 0, .08); }

.file-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: #18181b;
  color: #ffcc00;
  font-size: 1.2rem;
  font-weight: 850;
}

.file-type { color: #ad8900; font-size: .64rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.file-copy h3 { margin: .25rem 0 .35rem; font-size: 1.08rem; }
.file-copy p { margin: 0; color: #71717a; font-size: .8rem; line-height: 1.5; }
.file-meta { display: flex; gap: .75rem; margin-top: .6rem; color: #a1a1aa; font-size: .68rem; font-weight: 650; }

.download-button {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1rem;
  border: 0;
  border-radius: 11px;
  background: #ffcc00;
  color: #171717;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.download-button:hover { background: #f1c100; }
.download-button:disabled, .round-download:disabled { opacity: .55; cursor: wait; }
.download-button svg, .round-download svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.driver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.driver-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 42px;
  gap: .85rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid #e4e4e7;
  border-radius: 17px;
  background: white;
}
.small-file-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; background: #fff7d4; color: #8a6e00; font-size: .8rem; font-weight: 850; }
.driver-card h3 { margin: 0 0 .3rem; font-size: .9rem; }
.driver-card p { margin: 0 0 .45rem; color: #71717a; font-size: .72rem; line-height: 1.45; }
.driver-card span { color: #a1a1aa; font-size: .65rem; font-weight: 650; }
.round-download { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #18181b; color: white; cursor: pointer; }
.round-download:hover { background: #ffcc00; color: #18181b; }

aside { display: grid; align-content: start; gap: 1rem; }
.info-card, .support-card { padding: 1.5rem; border: 1px solid #e4e4e7; border-radius: 20px; background: white; }
.info-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: #fff7d4; color: #987900; }
.info-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.info-card h2, .support-card h2 { margin: 1rem 0 .85rem; font-size: 1.05rem; }
.info-card ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; color: #52525b; font-size: .76rem; line-height: 1.45; }
.info-card li { position: relative; padding-left: 1.3rem; }
.info-card li::before { content: "✓"; position: absolute; left: 0; color: #ad8900; font-weight: 900; }
.support-card { background: #ffcc00; border-color: #ffcc00; }
.support-card .eyebrow { color: #604d00; }
.support-card h2 { margin-top: 0; font-size: 1.35rem; }
.support-card p:not(.eyebrow) { color: #5f4d00; font-size: .78rem; line-height: 1.55; }
.support-card > a { display: block; margin-top: .5rem; color: #18181b; font-size: .82rem; font-weight: 800; text-decoration: none; }
.support-card .guide-link { display: flex; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(24,24,27,.18); }

.download-error {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  margin: 0;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #991b1b;
  color: white;
  font-size: .8rem;
  font-weight: 650;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.download-error:empty { display: none; }

footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid #e4e4e7;
  color: #a1a1aa;
  font-size: .68rem;
}

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

@media (max-width: 700px) {
  .site-header { height: 68px; }
  .support-link { font-size: 0; }
  .support-link::after { content: "Support"; font-size: .78rem; }
  .download-shell { width: min(100% - 1rem, 1440px); margin-top: .5rem; }
  .hero { min-height: 380px; align-items: flex-end; padding: 1.6rem; border-radius: 22px; }
  .logout-button { position: absolute; top: 1rem; right: 1rem; }
  .content-grid { margin-top: 1.5rem; }
  .download-card { grid-template-columns: 52px 1fr; padding: 1rem; }
  .file-icon { width: 52px; height: 52px; border-radius: 13px; font-size: 1rem; }
  .download-button { grid-column: 1 / -1; justify-content: center; }
  .driver-grid, aside { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
