/* BenCap Libertatis — brand styles */
:root {
  --navy: #0b1f5e;
  --navy-mid: #16307a;
  --navy-deep: #06103a;
  --navy-soft: #e8eef8;
  --gold: #c9922a;
  --gold-bright: #e5a93b;
  --gold-deep: #9a6f1a;
  --gold-soft: #f8f0de;
  --white: #ffffff;
  --mist: #f5f7fb;
  --ink: #12182e;
  --muted: #5a6480;
  --line: #d8e0ef;
  --success: #1a9b6c;
  --wa: #25d366;
  --radius: 1.25rem;
  --shadow: 0 18px 50px rgba(11, 31, 94, 0.08);
  --shadow-lg: 0 30px 80px rgba(11, 31, 94, 0.14);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-synthesis: none;
  font-stretch: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 146, 42, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(22, 48, 122, 0.1), transparent 50%),
    linear-gradient(180deg, #fbfcfe 0%, var(--mist) 40%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 146, 42, 0.28);
  color: var(--navy-deep);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.font-display {
  font-family: var(--font-display);
  font-stretch: normal;
  letter-spacing: -0.015em;
}
.font-accent { font-family: var(--font-accent); }

/* Noise / atmosphere */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(11, 31, 94, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 94, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
}

.site-wrap {
  position: relative;
  z-index: 1;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(11, 31, 94, 0.18));
}

.logo-word {
  line-height: 1;
}

.logo-word .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-stretch: normal;
  color: var(--navy);
}

.logo-word .brand span {
  color: var(--gold);
}

.logo-word .tag {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(11, 31, 94, 0.06);
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-mid);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-panel.open {
  max-height: 420px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(201, 146, 42, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 16px 36px rgba(201, 146, 42, 0.45);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 94, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}

.hero-orb.one {
  width: 280px;
  height: 280px;
  background: rgba(201, 146, 42, 0.22);
  top: -60px;
  right: 8%;
}

.hero-orb.two {
  width: 340px;
  height: 340px;
  background: rgba(22, 48, 122, 0.14);
  bottom: -80px;
  left: -40px;
  animation-delay: -3s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--navy-mid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-stretch: normal;
  color: var(--navy);
}

.hero-title .gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-visual {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  aspect-ratio: 4 / 5;
  background: var(--navy-deep);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 16, 58, 0.55) 100%);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  animation: floaty 6.5s ease-in-out infinite;
}

.float-chip.bottom {
  left: 1rem;
  bottom: 1.25rem;
}

.float-chip.top {
  right: 1rem;
  top: 1.25rem;
  animation-delay: -2s;
}

/* Sections */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-stretch: normal;
  color: var(--navy);
  line-height: 1.15;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Service tiles — interaction containers, not decorative cards */
.service-tile {
  position: relative;
  display: block;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--navy));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 146, 42, 0.45);
}

.service-tile:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.value-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .value-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.value-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.value-item svg {
  margin: 0 auto 0.65rem;
  color: var(--gold);
}

/* Stats */
.stat-num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-stretch: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Process timeline */
.process-rail {
  position: relative;
}

.process-rail::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy-soft));
}

@media (min-width: 768px) {
  .process-rail::before {
    left: 0;
    right: 0;
    top: 1.35rem;
    bottom: auto;
    height: 2px;
    width: auto;
  }
}

.process-step {
  position: relative;
  padding-left: 3.2rem;
}

@media (min-width: 768px) {
  .process-step {
    padding-left: 0;
    padding-top: 3.2rem;
  }
}

.process-dot {
  position: absolute;
  left: 0.55rem;
  top: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(201, 146, 42, 0.25);
}

@media (min-width: 768px) {
  .process-dot {
    left: 50%;
    top: 0.7rem;
    transform: translateX(-50%);
  }
}

/* Forms */
.field {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 146, 42, 0.18);
}

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-mid);
}

/* Growth Lab calculator */
.lab-panel {
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.range {
  width: 100%;
  accent-color: var(--gold);
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font: inherit;
}

.quiz-option:hover,
.quiz-option.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateX(4px);
}

/* Accordion */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 240px;
  padding-bottom: 1.1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.9rem 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-stretch: normal;
}

.marquee-track span::before {
  content: "◆";
  margin-right: 2.5rem;
  color: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.5);
}

.wa-float .icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.wa-label {
  display: none;
}

@media (min-width: 640px) {
  .wa-label {
    display: inline;
    padding-right: 0.35rem;
  }
}

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Footer */
.site-footer {
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(201, 146, 42, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #0d2568);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .logo-word .brand {
  color: #fff;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

/* Portfolio */
.case-tile {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  min-height: 280px;
  isolation: isolate;
}

.case-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.case-tile:hover img {
  transform: scale(1.06);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 16, 58, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #fff;
}

/* Insight / blog */
.insight-tile {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.insight-tile img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

/* Page hero band */
.page-band {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.page-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(201, 146, 42, 0.12);
  filter: blur(20px);
}

/* Tabs */
.tab-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-mid);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(11, 31, 94, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Utility */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.bg-mist { background: var(--mist); }
.bg-navy-soft { background: var(--navy-soft); }
.bg-gold-soft { background: var(--gold-soft); }
.divider-gold {
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
