/* best-company-hub.org — deep_ocean palette */
:root {
  --bg: #08131F;
  --surface: #0F2033;
  --surface-alt: #16304A;
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --secondary: #818CF8;
  --accent: #34D399;
  --text: #ECF4FB;
  --text-secondary: #A9C0D4;
  --text-muted: #5F7A91;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font-sans: "Segoe UI", "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --max: 720px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(129, 140, 248, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #0a1a2c 50%, var(--bg) 100%);
  pointer-events: none;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand__mark circle:last-child {
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* —— Main / Hero —— */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  min-height: calc(100vh - var(--header-h) - 80px);
  position: relative;
}

.hero__glow {
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(-4%, -2%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  animation: fade-up 0.8s ease-out both;
}

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

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero__copy {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36em;
  margin: 0 auto 2rem;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.notify__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify__btn:hover {
  background: var(--primary-hover);
}

.notify__btn:active {
  transform: scale(0.98);
}

.notify__note {
  width: 100%;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.notify__note.is-success {
  color: var(--accent);
}

/* —— Legal pages —— */
.legal {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  animation: fade-up 0.6s ease-out both;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.975rem;
  margin-bottom: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9em;
  color: var(--primary);
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.site-footer__nav a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.site-footer__nav a:hover {
  color: var(--primary);
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1 1 260px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cookie-banner__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface-alt);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.85rem;
  }

  .hero {
    padding: 2rem 1rem 3rem;
    min-height: calc(100vh - var(--header-h) - 100px);
  }

  .notify__btn {
    flex: 1 1 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
