/* ==========================================================================
   Kibutz — Próximamente
   Standalone static page. Tokens mirror the dark theme used by the Kibutz
   frontend (frontend/src/features/home/home.module.css and
   frontend/src/components/layout/navbar/navbar.module.css).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Surfaces (dark theme) */
  --bg: #09161b;            /* homepage body background */
  --bg-header: #0d1b21;     /* hsl(196 42% 9%) header */
  --card: #0f1b1f;          /* hsl(195 35% 9%) */
  --muted: #152428;         /* hsl(194 30% 12%) */
  --border: #21353b;        /* hsl(194 28% 18%) */

  /* Text */
  --fg: #f3f7f7;            /* hsl(180 20% 96%) */
  --fg-soft: #e0ecee;       /* hero intro */
  --muted-fg: #bacbcf;      /* hsl(190 18% 77%) */

  /* Brand accents */
  --primary: #20c5b2;       /* hsl(173 72% 45%) */
  --highlight: #36d8ca;     /* hero accent text */
  --btn: #00b3a6;
  --btn-hover: #26c8bc;
  --btn-fg: #04272b;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px rgb(0 0 0 / 13%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1400px;
  --gutter: 16px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: rgb(54 216 202 / 30%); color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--btn);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 27 33 / 92%);
  border-bottom: 1px solid rgb(33 53 59 / 40%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: clamp(144px, calc(100vw - 174px), 216px);
}
.brand img { width: 100%; height: auto; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgb(54 216 202 / 35%);
  border-radius: 999px;
  background: rgb(32 197 178 / 10%);
  color: var(--highlight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 0 rgb(54 216 202 / 60%);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgb(54 216 202 / 55%); }
  70%  { box-shadow: 0 0 0 8px rgb(54 216 202 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(54 216 202 / 0%); }
}

/* --------------------------------------------------------------------------
   Hero (mirrors the homepage hero: banner + shade gradients)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 68vh, 760px);
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero__banner {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 30%;
}

.hero__shade {
  position: absolute;
  inset: -2px; /* overlaps the banner edge to avoid a 1px seam at fractional sizes */
  z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 2%, rgb(9 22 27 / 85%) 15%, rgb(9 22 27 / 35%) 36%, transparent 60%),
    linear-gradient(180deg, rgb(5 20 25 / 65%) 0%, rgb(5 20 25 / 18%) 30%, transparent 55%),
    linear-gradient(90deg, rgb(5 20 25 / 92%) 0%, rgb(5 20 25 / 70%) 40%, rgb(5 20 25 / 22%) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: rise .7s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.375rem, 8.5vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1 .highlight { color: var(--highlight); }

.lead {
  max-width: 34rem;
  margin: 18px 0 26px;
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons (status-page button styles from community-result.module.css)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary {
  background: var(--btn);
  color: var(--btn-fg);
  box-shadow: 0 8px 24px rgb(0 179 166 / 22%);
}
.btn--primary:hover { background: var(--btn-hover); }
.btn--outline {
  border-color: rgb(186 203 207 / 45%);
  background: rgb(9 22 27 / 45%);
  color: var(--fg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--outline:hover { background: rgb(127 185 181 / 16%); border-color: var(--muted-fg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 8px 0 32px; }
.section--last { padding-bottom: 48px; }

.section-intro { margin-bottom: 20px; }
.accent-bar {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--primary);
}
.section-intro h2 {
  font-size: clamp(1.5rem, 2.1vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.section-intro p {
  max-width: 62rem;
  margin-top: 12px;
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.65;
}

/* Feature cards (homepage "Features" pattern) */
.features {
  display: grid;
  gap: 14px;
}
.feature {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgb(32 197 178 / 4%), transparent), var(--card);
  text-align: center;
}
.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgb(32 197 178 / 15%);
  color: var(--primary);
}
.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 17px; font-weight: 600; }
.feature p {
  max-width: 20rem;
  margin: 8px auto 0;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.6;
}

/* CTA card (homepage "CTASection" pattern) */
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 26px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--card) 0%, var(--card) 55%, rgb(32 197 178 / 10%) 100%);
  box-shadow: var(--shadow-card);
}
.cta__copy { position: relative; z-index: 1; min-width: 0; max-width: 46rem; }
.cta h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.cta__copy > p {
  margin-top: 10px;
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.6;
}
.cta__contact {
  margin-top: 16px;
  font-size: 14px;
}
.cta__contact a {
  color: var(--highlight);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.cta__contact a:hover { text-decoration: underline; }

.cta__art {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
  color: rgb(32 197 178 / 70%);
}
.cta__art svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta__art svg:first-child { width: 96px; height: 96px; }
.cta__art svg:not(:first-child) { width: 64px; height: 64px; }

/* Social links */
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgb(21 36 40 / 60%);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.social__link:hover { background: var(--muted); border-color: rgb(32 197 178 / 60%); }
.social__link .icon { width: 18px; height: 18px; }

.social--compact { margin-top: 0; }
.social--compact .social__link {
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  color: var(--muted-fg);
}
.social--compact .social__link:hover { background: var(--muted); color: var(--fg); }

/* --------------------------------------------------------------------------
   Footer (mirrors Footer.tsx)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: transparent;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-block: 20px max(20px, env(safe-area-inset-bottom));
  color: var(--muted-fg);
  font-size: 14px;
  text-align: center;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__mail:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Responsive: tablet and up
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .brand { width: 216px; }
  .site-header__inner { min-height: 80px; }
  .hero { padding: 72px 0 88px; }
  .lead { margin-bottom: 30px; }
  .hero__actions { width: auto; }
  .section { padding-bottom: 40px; }
  .section--last { padding-bottom: 56px; }
  .feature { padding: 26px 24px; }
  .cta { padding: 30px 32px; }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer__links { flex-direction: row; gap: 8px; }
}

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .hero { padding: 96px 0 112px; }
  .cta__art { display: flex; }
  .section { padding-bottom: 48px; }
  .section--last { padding-bottom: 72px; }
}

@media (min-width: 1440px) {
  :root { --gutter: 56px; }
}

/* Small phones: tighten type and actions */
@media (max-width: 374px) {
  .status-pill { display: none; }
  .hero h1 { font-size: 2.125rem; }
  .btn { width: 100%; }
}

/* Landscape phones / short viewports: let content flow, no fixed heights */
@media (max-height: 520px) {
  .site-header { position: static; }
  .hero { min-height: 0; padding: 36px 0 48px; }
  .hero__content { animation: none; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
