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

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bcj-blue: #1577ff;
  --bcj-blue-soft: #2c9fff;
  --bcj-green: #1fd1a1;
  --bcj-deep: #021b32;
  --bcj-text: #08223a;
  --bcj-muted: #4a6a89;
  --bcj-surface: #ffffff;
  --bcj-border: rgba(17, 122, 255, 0.12);
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(1, 34, 66, 0.18);
  --shadow-subtle: 0 8px 20px rgba(1, 34, 66, 0.08);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(21, 119, 255, 0.25), transparent),
    radial-gradient(circle at bottom right, rgba(31, 209, 161, 0.25), transparent),
    #f3f7fb;
  color: var(--bcj-text);
  min-height: 100vh;
}

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

a {
  color: var(--bcj-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.section-inner,
.header-inner,
.footer-inner {
  width: min(100% - 2.4rem, 1040px);
  margin-inline: auto;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(243, 247, 251, 0.96),
    rgba(243, 247, 251, 0.92)
  );
  border-bottom: 1px solid rgba(8, 60, 120, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.65rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: var(--shadow-subtle);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--bcj-muted);
}

.main-nav {
  position: relative;
}

.nav-toggle {
  border: none;
  background: transparent;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bcj-blue), var(--bcj-green));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-links {
  position: absolute;
  right: 0;
  top: 120%;
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(2, 23, 53, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 170px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--bcj-text);
}

.nav-links a:hover {
  background: linear-gradient(
    120deg,
    rgba(21, 119, 255, 0.06),
    rgba(31, 209, 161, 0.06)
  );
  text-decoration: none;
}

.nav-links-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */

.hero {
  padding: 2.4rem 0 1.8rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-content {
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    120deg,
    rgba(21, 119, 255, 0.12),
    rgba(31, 209, 161, 0.18)
  );
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bcj-deep);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--bcj-deep);
}

.hero-tagline {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  color: var(--bcj-muted);
}

.hero-text {
  font-size: 0.94rem;
  max-width: 34rem;
  margin: 0 0 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.primary-cta,
.secondary-cta,
.outline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.primary-cta {
  background: linear-gradient(135deg, var(--bcj-blue), var(--bcj-green));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(1, 23, 48, 0.25);
  text-decoration: none;
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.85);
  color: var(--bcj-text);
  border: 1px solid rgba(31, 143, 248, 0.2);
}

.secondary-cta:hover {
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
}

.primary-cta.small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  box-shadow: none;
}

.primary-cta.full-width {
  width: 100%;
  justify-content: center;
}

.outline-cta {
  background: transparent;
  border: 1px solid rgba(6, 33, 71, 0.16);
  color: var(--bcj-text);
  margin-top: 1rem;
}

.outline-cta:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-subtle);
}

/* Hero card */

.hero-card {
  background: radial-gradient(
    circle at top left,
    rgba(21, 119, 255, 0.35),
    rgba(31, 209, 161, 0.45)
  );
  border-radius: 22px;
  padding: 1.2rem;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.bubble {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-card-body {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.hero-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.text-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.text-link:hover {
  text-decoration: underline;
}

/* Privacy highlight section */

.privacy-highlight {
  padding: 1.5rem 0 2.25rem;
}

.privacy-highlight h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--bcj-deep);
}

.privacy-highlight > .section-inner > p {
  font-size: 0.9rem;
  color: var(--bcj-muted);
  max-width: 40rem;
}

.privacy-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.privacy-grid article {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--bcj-border);
}

.privacy-grid h3 {
  font-size: 0.96rem;
  margin: 0 0 0.35rem;
  color: var(--bcj-deep);
}

.privacy-grid p {
  font-size: 0.86rem;
  color: var(--bcj-muted);
}

/* Contact section */

.contact-section {
  padding: 2rem 0 2.4rem;
}

.contact-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--bcj-deep);
}

.contact-section > .section-inner > p {
  font-size: 0.9rem;
  color: var(--bcj-muted);
  max-width: 32rem;
}

.contact-card {
  margin-top: 1.3rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--bcj-border);
  position: relative;
  overflow: hidden;
}

.support-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--bcj-deep);
}

.support-form textarea,
.support-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(6, 33, 71, 0.12);
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background-color: #f8fbff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.support-form textarea:focus,
.support-form input:focus {
  border-color: var(--bcj-blue);
  box-shadow: 0 0 0 1px rgba(21, 119, 255, 0.35);
  background: #ffffff;
}

.support-form textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.field-error {
  border-color: #e8515b !important;
  box-shadow: 0 0 0 1px rgba(232, 81, 91, 0.5) !important;
  background: #fff7f7;
}

.success-message {
  position: absolute;
  inset: 0;
  padding: 1.2rem;
  background: linear-gradient(
    140deg,
    rgba(31, 209, 161, 0.96),
    rgba(21, 119, 255, 0.96)
  );
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.contact-card.sent .success-message {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-card.sent .support-form {
  filter: blur(2px);
  opacity: 0.25;
  pointer-events: none;
}

.success-message h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.success-message p {
  margin: 0;
  font-size: 0.9rem;
}

.direct-email {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--bcj-muted);
}

.direct-email a {
  font-weight: 600;
}

/* Shake animation for validation */

@keyframes card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.contact-card.shake {
  animation: card-shake 0.32s ease;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(4, 28, 64, 0.06);
  padding: 1rem 0 1.4rem;
  background: rgba(245, 249, 253, 0.96);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--bcj-muted);
  align-items: flex-start;
}

.footer-mail {
  font-weight: 600;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(100% - 2rem, 460px);
  background: #021b32;
  color: #f4fbff;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 18px 45px rgba(1, 17, 41, 0.6);
  z-index: 45;
  font-size: 0.8rem;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner a {
  color: #9bddff;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cookie-banner .primary-cta.small {
  box-shadow: none;
  background: linear-gradient(135deg, #1fd1a1, #57e0b8);
  color: #021b32;
}

.cookie-hidden {
  opacity: 0;
  transform: translate(-50%, 120%);
  pointer-events: none;
}

/* Privacy page layout */

.policy-main {
  padding-bottom: 2.8rem;
}

.policy-hero {
  padding: 2.2rem 0 1.4rem;
  background: radial-gradient(
    circle at top,
    rgba(21, 119, 255, 0.14),
    transparent
  );
}

.policy-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  color: var(--bcj-deep);
}

.policy-hero p {
  font-size: 0.9rem;
  color: var(--bcj-muted);
  max-width: 40rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--bcj-muted);
}

.policy-pill {
  padding: 0.16rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 33, 71, 0.12);
  background-color: rgba(255, 255, 255, 0.9);
}

.policy-content {
  padding: 1rem 0 0;
}

.policy-columns {
  display: grid;
  gap: 2rem;
}

.policy-toc {
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--bcj-border);
  font-size: 0.85rem;
}

.policy-toc h2 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.policy-toc ol {
  padding-left: 1.1rem;
  margin: 0;
}

.policy-toc a {
  color: var(--bcj-text);
}

.policy-article h2 {
  font-size: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--bcj-deep);
}

.policy-article h2:first-of-type {
  margin-top: 0;
}

.policy-article p,
.policy-article li {
  font-size: 0.88rem;
  color: var(--bcj-muted);
}

.policy-article ul {
  padding-left: 1.2rem;
}

/* Media queries */

@media (min-width: 640px) {
  .cookie-inner {
    gap: 0.9rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 0.25rem;
  }

  .nav-links a {
    font-size: 0.84rem;
    padding: 0.35rem 0.9rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
  }

  .form-row {
    flex-direction: row;
  }
}

@media (min-width: 840px) {
  .policy-columns {
    grid-template-columns: 0.9fr 2.1fr;
    align-items: flex-start;
  }
}
