@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #0b1220;
  --bg-deep: #07101d;
  --surface: rgba(12, 19, 34, 0.74);
  --surface-strong: rgba(17, 27, 48, 0.88);
  --surface-soft: rgba(173, 189, 255, 0.09);
  --ink: #eef4ff;
  --muted: #b8c4df;
  --line: rgba(173, 189, 255, 0.18);
  --logo-nord: rgb(149, 167, 225);
  --logo-hat: rgb(237, 79, 103);
  --primary: #d7e2ff;
  --primary-ink: #0b1220;
  --focus: #95a7e1;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(149, 167, 225, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(237, 79, 103, 0.12), transparent 24%),
    linear-gradient(135deg, #07101d 0%, #0c1322 52%, #111b30 100%);
  color: var(--ink);
  font-family: "Quicksand", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.nh-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nh-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-size: clamp(2rem, 3vw, 2.46rem);
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.nh-brand-nord {
  color: var(--logo-nord);
  font-weight: 300;
}

.nh-brand-hat {
  color: var(--logo-hat);
  font-weight: 500;
}

.nh-brand-badge {
  margin-left: 14px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--logo-hat) 42%, var(--line));
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nh-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nh-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.88;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nh-nav a:hover,
.nh-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-soft);
  opacity: 1;
  outline: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(54px, 9vw, 104px) 0;
  position: relative;
}

.nh-kicker,
.nh-card-label,
.nh-status-label {
  margin: 0;
  color: var(--logo-nord);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nh-hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--logo-hat) 70%, transparent),
    color-mix(in srgb, var(--logo-nord) 70%, transparent)
  );
  background-repeat: no-repeat;
  background-size: 62% 3px;
  background-position: 0 100%;
  padding-bottom: 12px;
}

.nh-hero p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.5;
  opacity: 0.9;
}

.nh-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.nh-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.nh-button-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.nh-button-secondary {
  background: transparent;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 52%, transparent);
}

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

.nh-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 72%);
  outline-offset: 2px;
}

.nh-status-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.nh-status-panel div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nh-status-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nh-status-panel strong {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.nh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

.nh-card {
  min-height: 220px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.nh-card h2 {
  margin: 12px 0 10px;
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.nh-card p,
.nh-app-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.nh-app-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.nh-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

@media (max-width: 820px) {
  .nh-account-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nh-nav {
    justify-content: flex-start;
  }

  .nh-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

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

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .nh-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
  }

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

  .nh-footer {
    flex-direction: column;
  }
}
