/* Top Agency Group — Coming Soon */

: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: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 720px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(129, 140, 248, 0.08), transparent);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background: rgba(8, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-logo:hover,
.site-logo:focus-visible {
  color: var(--text);
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero (index) */

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Notify form */

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 0 auto;
}

.notify-form__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: left;
}

.notify-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .notify-form__row {
    flex-direction: row;
  }
}

.notify-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

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

.notify-form__input:focus {
  border-color: var(--primary);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

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

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

.btn--secondary:hover {
  background: var(--surface-alt);
  border-color: rgba(255, 255, 255, 0.15);
}

.notify-form__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.notify-form__success {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius);
}

.notify-form__success.is-visible {
  display: block;
}

/* Legal pages */

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page__updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page a {
  word-break: break-word;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(15, 32, 51, 0.5);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

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

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

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

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

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

.cookie-banner__inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-banner__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-banner__actions .btn {
  flex: 1 1 auto;
  min-width: 7rem;
}

@media (min-width: 480px) {
  .cookie-banner__actions .btn {
    flex: 0 0 auto;
  }
}

/* Cookie preferences panel */

.cookie-preferences {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-preferences.is-visible {
  display: block;
}

.cookie-preferences__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-preferences__item:last-child {
  border-bottom: none;
}

.cookie-preferences__label {
  font-size: 0.875rem;
  font-weight: 500;
}

.cookie-preferences__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--surface-alt);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: rgba(56, 189, 248, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
  background: var(--primary);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-preferences__save {
  margin-top: 1rem;
}

/* Visually hidden utility */

.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;
}
