/* =========================================================
   JoyCode — Landing institucional
   ========================================================= */

:root{
  --brand: #FF2168;
  --brand-dark: #C8134F;
  --brand-light: #FFE3ED;
  --navy: #1E1A63;
  --navy-dark: #14113F;
  --cyan: #29CFFA;
  --cyan-dark: #0B7B9E;
  --cyan-light: #E3F8FF;
  --gray-900: #201C3D;
  --gray-700: #56536E;
  --gray-500: #7A7791;
  --gray-200: #E6E4F0;
  --gray-100: #F5F4FA;
  --white: #FFFFFF;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(20, 18, 55, 0.07);
  --shadow-md: 0 12px 32px rgba(20, 18, 55, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 18, 55, 0.16);
  --container-w: 1180px;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4{
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
p{ margin: 0 0 1em; color: var(--gray-700); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }

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

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

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--sm{ padding: 10px 20px; font-size: .875rem; }
.btn--primary{
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255,33,104,.28);
}
.btn--primary:hover{ background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost{
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn--ghost:hover{ border-color: var(--brand); color: var(--brand-dark); }

.link-arrow{
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .92rem;
}
.link-arrow:hover{ text-decoration: underline; }

/* ---------- Section heads ---------- */
.eyebrow{
  display: inline-block;
  color: var(--cyan-dark);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow--line{ display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--line::before{ content: ''; width: 22px; height: 2px; background: var(--cyan-dark); flex-shrink: 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head h2{ font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.section-sub{ font-size: 1.02rem; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{ background: var(--navy); color: var(--white); font-size: .82rem; }
.topbar__inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 24px; flex-wrap: wrap;
}
.topbar__text{ margin: 0; opacity: .9; }
.topbar__link{ font-weight: 600; color: var(--white); white-space: nowrap; }
.topbar__link:hover{ color: var(--brand); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.header__inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.logo{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.logo__mark{ flex-shrink: 0; }
.logo__mark-top{ fill: var(--cyan); }
.logo__mark-eye{ fill: var(--navy); }
.logo__mark-bottom{ fill: var(--brand); }
.logo__joy{ color: var(--brand); }
.logo__code{ color: var(--navy); }

.main-nav ul{ display: flex; gap: 30px; }
.main-nav a{
  font-weight: 500;
  font-size: .95rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover{ color: var(--navy); }
.main-nav a::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transition: transform .15s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header__actions{ display: flex; align-items: center; gap: 16px; }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--gray-200); border-radius: 8px;
}
.nav-toggle span{ display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--navy); }

/* =========================================================
   HIGHLIGHT BAR
   ========================================================= */
.highlight-bar{
  background: var(--navy);
  color: var(--white);
}
.highlight-bar__inner{ padding: 20px 24px 0; }
.highlight-bar__label{
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  margin-bottom: 14px;
}
.highlight-bar__tabs{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hb-tab{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px 999px 0 0;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  border-bottom: none;
}
.hb-tab.is-active{ background: var(--white); color: var(--navy); }

.highlight-bar__panels{
  background: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 20px 28px;
}
.hb-panel{ display: none; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hb-panel.is-active{ display: flex; }
.hb-panel p{ margin: 0; color: var(--gray-700); }
.hb-panel__link{ color: var(--brand-dark); font-weight: 700; white-space: nowrap; }

/* =========================================================
   HERO
   ========================================================= */
.hero{ background: var(--white); padding: 64px 0 40px; }
.hero__inner{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{ font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: .5em; }
.hero__lead{ font-size: 1.08rem; max-width: 540px; }
.hero__ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero__tags{ display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero__tags li{
  font-size: .82rem; font-weight: 600; color: var(--gray-500);
  padding-left: 16px; position: relative;
}
.hero__tags li::before{
  content: ''; position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* Hero visual composition */
.hero__visual{ position: relative; min-height: 420px; }
.hv-blob{
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--brand-light) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hv-card{
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 1;
}
.hv-card--main{
  top: 10px; left: 10%; width: 78%;
  padding: 24px;
}
.hv-card__dot-row{ display: flex; gap: 6px; margin-bottom: 18px; }
.hv-card__dot-row span{ width: 9px; height: 9px; border-radius: 50%; background: var(--gray-200); }
.hv-bar{ height: 10px; border-radius: 6px; background: var(--gray-100); margin-bottom: 10px; }
.hv-bar--lg{ width: 80%; }
.hv-bar--md{ width: 55%; margin-bottom: 22px; }
.hv-chart{ display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.hv-chart__bar{
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 6px 6px 2px 2px;
}
.hv-card--chat{
  bottom: 40px; left: -4%; width: 60%;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.hv-chat-bubble{ padding: 10px 14px; border-radius: 12px; font-size: .82rem; font-weight: 500; max-width: 90%; }
.hv-chat-bubble--in{ background: var(--gray-100); color: var(--gray-700); align-self: flex-start; }
.hv-chat-bubble--out{ background: var(--brand); color: var(--white); align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.hv-card--badge{
  bottom: 0; right: 0; width: 62%;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hv-badge-icon{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.hv-card--badge strong{ display: block; font-size: .85rem; }
.hv-card--badge small{ color: var(--gray-500); font-size: .75rem; }

/* =========================================================
   CATEGORY NAV
   ========================================================= */
.cat-nav{ background: var(--gray-100); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.cat-nav__inner{
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 16px 24px; justify-content: center;
}
.cat-nav__item{ font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.cat-nav__item:hover{ color: var(--brand-dark); }

/* =========================================================
   OFFERS
   ========================================================= */
.offers{ background: var(--white); padding: 72px 0; }
.offer-card{
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.offer-card--big{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #0D0B33 100%);
}
.offer-card__content{ padding: 48px; color: var(--white); }
.offer-card__content h3{ color: var(--white); font-size: 1.6rem; }
.offer-card__content p{ color: rgba(255,255,255,.72); max-width: 460px; }
.product-tag{
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
  background: var(--brand-light); color: var(--brand-dark);
}
.offer-card__visual--server{
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  padding: 32px;
}
.server-rack{ display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 220px; }
.server-rack__unit{
  height: 34px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  display: flex; align-items: center; padding: 0 14px;
}
.led{ width: 8px; height: 8px; border-radius: 50%; }
.led--cyan{ background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.led--amber{ background: #F2A900; box-shadow: 0 0 8px #F2A900; }

.offer-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer-card--small{ padding: 36px; }
.offer-card--small h3{ font-size: 1.2rem; }
.product-tag--talk{ background: #E3F6F8; color: #0B7285; }
.product-tag--shop{ background: #EFE8FF; color: #5A32C7; }

/* =========================================================
   WHY JOYCODE
   ========================================================= */
.why{ background: var(--gray-100); padding: 80px 0; }
.why__inner{
  display: grid; grid-template-columns: 1fr .9fr; gap: 60px; align-items: center;
}
.why h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.benefit-list{ display: flex; flex-direction: column; gap: 26px; margin-top: 24px; }
.benefit-list li{ display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon{
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
}
.benefit-list strong{ display: block; margin-bottom: 4px; color: var(--navy); font-size: 1.02rem; }
.benefit-list p{ margin: 0; font-size: .94rem; }

.why__visual{ display: flex; align-items: center; justify-content: center; }
.orbit{ position: relative; width: 360px; height: 360px; max-width: 100%; }
.orbit__center{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading);
  box-shadow: 0 16px 32px rgba(30,26,99,.35);
  z-index: 2;
}
.orbit::before{
  content: ''; position: absolute; inset: 30px;
  border: 2px dashed var(--gray-200); border-radius: 50%;
}
.orbit__node{
  position: absolute; width: 82px; height: 82px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--navy);
}
.orbit__node--1{ top: 0; left: 50%; transform: translateX(-50%); }
.orbit__node--2{ top: 18%; right: 0; }
.orbit__node--3{ bottom: 18%; right: 0; }
.orbit__node--4{ bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit__node--5{ bottom: 18%; left: 0; }
.orbit__node--6{ top: 18%; left: 0; }

/* =========================================================
   DIFFERENTIALS
   ========================================================= */
.differentials{ background: var(--white); padding: 64px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.differentials__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.diff-item{ text-align: center; }
.diff-icon{ font-size: 1.8rem; display: inline-flex; margin-bottom: 12px; }
.diff-item h3{ font-size: 1.02rem; margin-bottom: 6px; }
.diff-item p{ font-size: .88rem; margin: 0; }

/* =========================================================
   FOUNDER STORY
   ========================================================= */
.founder{ background: var(--white); padding: 96px 0; }
.founder__inner{
  display: grid; grid-template-columns: .85fr 1fr; gap: 64px; align-items: center;
}
.founder__media{ position: relative; max-width: 420px; padding: 0 24px 24px 0; }
.founder__frame{
  position: absolute; inset: 0 0 0 24px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-lg);
  transform: rotate(-3deg);
  z-index: 0;
}
.founder__photo{
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--gray-700) 100%);
}
.founder__badge{
  position: absolute; z-index: 2; right: 0; bottom: 24px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.founder__badge strong{ font-family: var(--font-heading); font-size: 1.3rem; color: var(--navy); }
.founder__badge span{ font-size: .8rem; color: var(--gray-500); }

.founder__content h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 18px 0 22px; }
.founder__lead{ font-size: 1.1rem; color: var(--navy); }
.founder__content p{ font-size: 1rem; }
.founder__signature{
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.founder__avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading); flex-shrink: 0;
}
.founder__signature div{ display: flex; flex-direction: column; }
.founder__signature strong{ color: var(--navy); font-size: .95rem; }
.founder__signature span{ font-size: .85rem; color: var(--gray-500); }

/* =========================================================
   PRODUCTS GRID
   ========================================================= */
.products{ background: var(--gray-100); padding: 80px 0; }
.product-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  border-top: 3px solid var(--accent, var(--brand));
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__icon{
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 14%, white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.product-card__name{ display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.product-card__tagline{ font-size: .82rem; font-weight: 600; color: var(--gray-500); margin-bottom: 10px; }
.product-card__benefit{ font-size: .9rem; margin-bottom: 14px; }
.product-grid > :nth-child(5),
.product-grid > :nth-child(6){ grid-column: span 2; }

/* =========================================================
   USE CASES
   ========================================================= */
.use-cases{ background: var(--white); padding: 80px 0; }
.use-case-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use-case-card{
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.use-case-card__badge{
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--cyan-dark); background: var(--cyan-light);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.use-case-card h3{ font-size: 1.05rem; }
.use-case-card p{ font-size: .9rem; margin: 0; }

/* =========================================================
   CONTACT BLOCKS
   ========================================================= */
.contact-blocks{ background: var(--gray-100); padding: 80px 0; }
.contact-blocks__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-block{
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.contact-block__visual{
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.contact-block__visual--a{ background: linear-gradient(135deg, var(--brand-light), #F3F6F4); }
.contact-block__visual--b{ background: linear-gradient(135deg, #FFF6E5, #F3F6F4); }
.people-illustration{ position: relative; width: 140px; height: 90px; }
.pi-avatar{
  position: absolute; bottom: 0; width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: var(--shadow-sm);
}
.pi-avatar--1{ left: 0; background: var(--brand); }
.pi-avatar--2{ left: 46px; background: var(--navy); }
.pi-avatar--3{ left: 0; background: #F2A900; }
.pi-avatar--4{ left: 46px; background: var(--cyan); }
.pi-bubble{
  position: absolute; top: -10px; right: 0;
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.contact-block__content{ padding: 28px; }
.contact-block__content h3{ font-size: 1.15rem; }
.contact-block__content p{ font-size: .92rem; }

/* =========================================================
   CONTENT / ARTICLES
   ========================================================= */
.content-section{ background: var(--white); padding: 80px 0; }
.content-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-card{
  display: block;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.content-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.content-card__tag{
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--cyan-dark); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}
.content-card h3{ font-size: 1rem; margin: 0; color: var(--navy); }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band{ background: var(--navy); padding: 48px 0; }
.stats-band__grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; text-align: center;
}
.stat-item strong{
  display: block; font-family: var(--font-heading);
  font-size: 2.2rem; color: var(--brand); margin-bottom: 6px;
}
.stat-item span{ color: rgba(255,255,255,.75); font-size: .92rem; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter{ background: var(--brand-light); padding: 64px 0; }
.newsletter__inner{ text-align: center; max-width: 640px; margin: 0 auto; }
.newsletter__text h2{ font-size: 1.6rem; }
.newsletter__form{
  display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center;
}
.newsletter__form input{
  flex: 1; min-width: 240px;
  padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-size: .95rem; font-family: inherit;
}
.newsletter__feedback{ margin-top: 14px; font-weight: 600; color: var(--brand-dark); min-height: 1.2em; }

/* =========================================================
   FAQ
   ========================================================= */
.faq{ background: var(--white); padding: 80px 0; }
.faq__inner{ max-width: 760px; margin: 0 auto; }
.accordion-item{ border-bottom: 1px solid var(--gray-200); }
.accordion-item h3{ margin: 0; }
.accordion-trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 20px 4px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  color: var(--navy); text-align: left;
}
.accordion-icon{
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: transform .2s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon{ transform: rotate(45deg); }
.accordion-panel{
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 4px;
}
.accordion-panel p{ margin: 0 0 20px; font-size: .95rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 24px; }
.footer__grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand p{ color: rgba(255,255,255,.6); font-size: .9rem; margin: 14px 0 18px; }
.logo--footer .logo__joy{ color: var(--white); }
.logo--footer .logo__code{ color: var(--cyan); }
.logo--footer .logo__mark-eye{ fill: var(--white); }
.footer__social{ display: flex; gap: 10px; }
.footer__social a{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}
.footer__social a:hover{ background: var(--brand); border-color: var(--brand); }
.footer__col h4{ color: var(--white); font-size: .92rem; margin-bottom: 16px; }
.footer__col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer__col a{ font-size: .88rem; color: rgba(255,255,255,.65); }
.footer__col a:hover{ color: var(--brand); }
.footer__bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer__bottom p{ margin: 0; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__legal{ display: flex; gap: 20px; }
.footer__legal a{ font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__legal a:hover{ color: var(--white); }

/* Prevents grid tracks from growing past the viewport to fit a child's
   intrinsic content width (long headings, etc.) instead of wrapping. */
.hero__inner > *, .why__inner > *, .offer-card--big > *, .offer-grid > *,
.differentials__grid > *, .product-grid > *, .use-case-grid > *,
.contact-blocks__grid > *, .content-grid > *, .footer__grid > *,
.stats-band__grid > *, .founder__inner > *{
  min-width: 0;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 1024px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; min-height: 340px; }
  .why__inner{ grid-template-columns: 1fr; }
  .why__visual{ order: -1; }
  .founder__inner{ grid-template-columns: 1fr; }
  .founder__media{ order: -1; margin: 0 auto 8px; }
  .offer-card--big{ grid-template-columns: 1fr; }
  .offer-card__visual--server{ padding: 24px; min-height: 140px; }
  .offer-grid{ grid-template-columns: 1fr; }
  .differentials__grid{ grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-grid > :nth-child(5),
  .product-grid > :nth-child(6){ grid-column: span 1; }
  .use-case-grid{ grid-template-columns: 1fr; }
  .contact-blocks__grid{ grid-template-columns: 1fr; }
  .content-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__grid{ grid-template-columns: 1fr 1fr 1fr; }
  .stats-band__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 720px){
  .topbar__inner{ flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav{
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: var(--white); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .2s ease;
    padding: 90px 28px 28px; z-index: 90;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 22px; }
  .header__actions .btn--primary{ display: none; }
  .nav-toggle{ display: flex; }
  .highlight-bar__tabs{ overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .hb-tab{ flex-shrink: 0; }
  .hb-panel{ flex-direction: column; align-items: flex-start; }
  .hero{ padding: 40px 0 32px; }
  .hero__ctas .btn{ width: 100%; }
  .hero__ctas{ flex-direction: column; }
  .offer-card__content{ padding: 32px 24px; }
  .founder{ padding: 56px 0; }
  .founder__media{ max-width: 280px; padding: 0 16px 16px 0; }
  .founder__frame{ inset: 0 0 0 16px; }
  .founder__badge{ padding: 12px 16px; bottom: 12px; }
  .differentials__grid{ grid-template-columns: 1fr; text-align: left; }
  .diff-item{ text-align: left; display: flex; flex-direction: column; }
  .product-grid{ grid-template-columns: 1fr; }
  .content-grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand{ grid-column: span 2; }
  .stats-band__grid{ grid-template-columns: 1fr; gap: 32px; }
  .newsletter__form{ flex-direction: column; }
  .newsletter__form input{ width: 100%; }
  .cat-nav__inner{ justify-content: flex-start; overflow-x: auto; }
}

/* Nav backdrop for mobile menu */
.nav-backdrop{
  position: fixed; inset: 0; background: rgba(15, 13, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 80;
}
.nav-backdrop.is-open{ opacity: 1; pointer-events: auto; }
