/* CEBEN landing page — shared stylesheet for all language variants.
   Palette matches the real app (project-management-app/src/components/
   layout/Header.tsx, Sidebar.tsx): #76d1e3 primary turquoise, #5bc4d8
   accent/border, #e8f7fa light tint. NOT the blue in tailwind.config.js —
   that theme extension exists but isn't actually used for branding.

   2026-09-05: replaced the original placeholder design with the
   user-supplied redesign (ceben-redesign.html) — richer copy (value
   props, IT-vs-everyone split, steps, FAQ) and a white sticky header
   instead of the old solid-turquoise bar. The `.lang-dropdown` component
   (a working toggle, wired up by lang-switch.js + functions/_middleware.js)
   is carried over unchanged in behavior, just restyled to sit on a white
   header instead of a turquoise one. */

:root {
  --primary: #76d1e3;
  --primary-dark: #5bc4d8;
  --primary-tint: #e8f7fa;
  --ink: #1a2530;
  --muted: #5b6b76;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f0fafc;
  --shadow-md: 0 8px 30px rgba(26, 37, 48, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ----
   White sticky bar with a blurred backdrop, matching the redesign
   (a deliberate departure from the old solid-turquoise header). */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

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

/* ---- Language dropdown ----
   Same working component as before (toggled by lang-switch.js), restyled
   to sit on a light header instead of a solid turquoise one. */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.lang-dropdown-btn:hover {
  background: var(--bg-soft);
}

.lang-dropdown-btn .chevron {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.lang-dropdown.open .chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 37, 48, 0.1);
  padding: 6px;
  min-width: 150px;
  z-index: 20;
}

.lang-dropdown.open .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
}

.lang-dropdown-menu a:hover {
  background: var(--bg-soft);
}

.lang-dropdown-menu a.active {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ---- "What's new" nav button ---- */
.nav-announce-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-announce-btn:hover {
  background: #ddf3f8;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91, 196, 216, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---- Hero ---- */
.hero {
  padding: 110px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(118, 209, 227, 0.35), transparent),
    radial-gradient(circle at 15% 40%, rgba(91, 196, 216, 0.12), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(118, 209, 227, 0.15), transparent 35%),
    linear-gradient(180deg, #f4fcfe 0%, #ffffff 70%);
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(91, 196, 216, 0.3);
  box-shadow: 0 2px 8px rgba(91, 196, 216, 0.12);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-dark), #2a9fb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Trust line ---- */
.trust {
  padding: 32px 0 20px;
  text-align: center;
  background: #ffffff;
}

.trust p {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0.55;
}

.trust-items span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Section base ---- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.2;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---- Value grid ---- */
.value-section {
  background: #ffffff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.2s ease;
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.value-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- For everyone (IT vs everyone) ---- */
.audience-section {
  background: linear-gradient(180deg, #f0fafc 0%, #e8f7fa 100%);
  border-top: 1px solid rgba(91, 196, 216, 0.2);
  border-bottom: 1px solid rgba(91, 196, 216, 0.2);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.audience-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(91, 196, 216, 0.25);
  box-shadow: 0 4px 20px rgba(91, 196, 216, 0.08);
  transition: all 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(91, 196, 216, 0.15);
}

.audience-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.audience-card.it .tag {
  background: var(--primary-tint);
  color: var(--primary-dark);
}

.audience-card.everyone .tag {
  background: #ecfdf5;
  color: #059669;
}

.audience-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.audience-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.audience-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audience-card li {
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.audience-card li::before {
  content: '✓';
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Pricing (single centered card, reuses .audience-card's look) ---- */
.pricing-wrap {
  max-width: 380px;
  margin: 40px auto 0;
}

.pricing-card {
  text-align: center;
}

.pricing-card .price-tag {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.pricing-card .price-tag span {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.pricing-card ul {
  text-align: left;
}

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 50%;
  cursor: help;
  vertical-align: middle;
}

.info-tip .info-tip-text {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 10;
  text-align: left;
  pointer-events: none;
}

.info-tip:hover .info-tip-text,
.info-tip:focus .info-tip-text {
  opacity: 1;
  visibility: visible;
}

/* ---- Steps ---- */
.steps-section {
  background: #ffffff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(91, 196, 216, 0.3);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---- Announcements (marquee) ----
   Sliding strip of placeholder "frames" — one card per upcoming/recent
   feature. Two identical .marquee-track blocks laid out side-by-side
   inside the overflow:hidden .marquee give a seamless infinite loop
   (translateX(0) → translateX(-50%) would also work for an even track
   width; the spec asks for -100% with the two tracks summing to a single
   scroll width — equivalent in practice when both tracks are identical). */
.announce-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.marquee {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  animation: marquee-scroll 28s linear infinite;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-frame {
  width: 280px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.marquee-frame .icon {
  font-size: 28px;
}

.marquee-frame p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---- FAQ ---- */
.faq-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fafc 100%);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: var(--bg-soft); }

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-dark);
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Final CTA ---- */
.cta-section {
  padding: 60px 0 100px;
  background: #ffffff;
}

.cta-box {
  background: linear-gradient(145deg, #e0f5f9 0%, #c8edf4 50%, #b8e8f0 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  border: 1px solid rgba(91, 196, 216, 0.3);
  box-shadow: 0 12px 40px rgba(91, 196, 216, 0.15);
}

.cta-box h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.cta-box p {
  font-size: 17px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 28px;
}

.cta-box .hero-ctas {
  justify-content: center;
}

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .logo {
  font-size: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-copy a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-copy a:hover {
  color: var(--ink);
}

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .value-grid,
  .steps,
  .audience-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding: 80px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .cta-box {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-secondary {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-announce-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 32px;
  }
}
