/*
  BeRaccool — Coming Soon
  Design tokens derive from the four brand colors only:
  #A8D808 (green), #0D0D0D (black), #4F4F4F (contour), #FFFFFF (white).
*/

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --green: #a8d808;
  --black: #0d0d0d;
  --contour: #4f4f4f;
  --white: #ffffff;

  --green-strong: color-mix(in srgb, var(--green) 80%, var(--black));
  --green-soft: color-mix(in srgb, var(--green) 22%, var(--white));
  --green-tint: color-mix(in srgb, var(--green) 8%, var(--white));
  --contour-soft: color-mix(in srgb, var(--contour) 25%, var(--white));
  --contour-line: color-mix(in srgb, var(--contour) 18%, transparent);
  --black-soft: color-mix(in srgb, var(--black) 85%, var(--green) 6%);

  --font-display: "Baloo 2", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 40px -22px rgba(13, 13, 13, 0.35);
  --shadow-cta: 0 14px 30px -12px color-mix(in srgb, var(--green) 55%, transparent);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Section backdrops ---------- */

.section {
  padding-block: clamp(64px, 9vw, 108px);
}

.section--tint {
  background: var(--green-tint);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-strong);
  margin-bottom: 14px;
}

.section--dark .eyebrow {
  color: var(--green);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--contour);
  font-size: 1.05rem;
  max-width: 54ch;
}

.section--dark .section-head p {
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--contour-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: block;
}

.brand img {
  height: 55px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--contour-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--contour);
}

.lang-switch [aria-current="page"] {
  background: var(--black);
  color: var(--white);
}

.lang-switch a:hover {
  color: var(--black);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--green-strong);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--contour-soft);
}

.btn-ghost:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.section--dark .btn-ghost {
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 30%, transparent);
}

.section--dark .btn-ghost:hover {
  border-color: var(--white);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 68%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 30%, transparent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.hero-lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--contour);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--contour-line);
}

.hero-chips span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black-soft);
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .mask-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, var(--green-soft) 0%, transparent 70%);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(340px, 68vw);
  filter: drop-shadow(0 24px 40px rgba(13, 13, 13, 0.18));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Concept cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--contour-line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--green) 45%, transparent);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--green-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--contour);
  font-size: 0.98rem;
}

/* ---------- Two-role split (dark) ---------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.role-card {
  background: color-mix(in srgb, var(--white) 6%, var(--black));
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.role-card .role-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.role-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.role-card p {
  color: color-mix(in srgb, var(--white) 74%, transparent);
  font-size: 1rem;
}

/* ---------- Crew section ---------- */

.crew-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.crew-copy p {
  color: var(--contour);
  font-size: 1.05rem;
  max-width: 58ch;
}

.crew-copy p + p {
  margin-top: 16px;
}

.crew-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.crew-ranks li {
  background: var(--white);
  border: 1px solid var(--contour-soft);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.crew-visual {
  display: flex;
  justify-content: center;
}

.crew-visual img {
  width: min(280px, 60vw);
}

/* ---------- Notify / signup ---------- */

.notify-panel {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.notify-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 30%, transparent) 0%, transparent 70%);
}

.notify-copy {
  position: relative;
  z-index: 1;
}

.notify-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.notify-copy p {
  color: color-mix(in srgb, var(--white) 74%, transparent);
  max-width: 46ch;
}

.signup-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.signup-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--black);
}

.signup-row input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
}

.signup-form .btn {
  flex-shrink: 0;
}

.signup-note {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}

.signup-feedback {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  min-height: 1.3em;
}

.signup-feedback[data-state="error"] {
  color: #ff9b9b;
}

.signup-form[data-status="success"] .signup-row {
  display: none;
}

/* honeypot field, hidden from real visitors */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: color-mix(in srgb, var(--white) 82%, transparent);
  padding-block: 48px 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 0.92rem;
  max-width: 34ch;
  color: color-mix(in srgb, var(--white) 62%, transparent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--white) 50%, transparent);
}

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-visual img {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(220px, 50vw);
  }

  .crew-layout {
    grid-template-columns: 1fr;
  }

  .crew-visual {
    order: -1;
  }

  .notify-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .card-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .signup-row {
    flex-direction: column;
  }

  .header-actions {
    gap: 10px;
  }

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

@media (max-width: 420px) {
  .hero-badge {
    font-size: 0.7rem;
  }

  .brand img {
    height: 36px;
  }
}
