:root {
  --color-bg: #f3f7ff;
  --color-surface: #ffffff;
  --color-surface-alt: #eaf1ff;
  --color-text: #132038;
  --color-muted: #50617d;
  --color-primary: #2958cd;
  --color-primary-strong: #173b9d;
  --color-accent: #f5b83d;
  --color-border: #ced8ee;
  --shadow-soft: 0 14px 40px rgba(18, 45, 108, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lexend", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 15% 20%, #ffffff 0%, var(--color-bg) 48%, #e4ecff 100%);
  line-height: 1.65;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-strong);
}

.wrap {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(41, 88, 205, 0.18);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--color-text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}

.brand-dot {
  color: var(--color-accent);
  font-size: 1.5em;
}

.brand img {
  max-width: 200px;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 200ms ease;
}

.menu a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font: inherit;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding: 6.4rem 0 5.2rem;
}

.hero-bg-shape {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff5d9 0%, rgba(245, 184, 61, 0.08) 50%, rgba(245, 184, 61, 0) 100%);
  top: -320px;
  right: -220px;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-excerpt {
  max-width: 60ch;
  color: var(--color-muted);
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.4rem;
  list-style: disc;
}

.hero-card li {
  margin-bottom: 0.6rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 200ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3e75f1 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(41, 88, 205, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(41, 88, 205, 0.45);
}

.btn-ghost {
  border: 1.5px solid rgba(41, 88, 205, 0.4);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--color-primary-strong);
}

/* Sections */
.section {
  padding: 5.6rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-top: 1px solid rgba(41, 88, 205, 0.14);
  border-bottom: 1px solid rgba(41, 88, 205, 0.14);
}

.kicker {
  display: inline-block;
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.page-title {
  margin: 0 0 0.4rem;
  font-size: 2.6rem;
}

.page-subtitle {
  margin: 0 0 2.4rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.6rem;
}

.solution-item,
.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.solution-item:hover,
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.solution-image {
  width: 100%;
  height: 180px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: -1.6rem -1.6rem 0 -1.6rem;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-item h3,
.solution-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.solution-item > p,
.solution-card > p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: auto;
}

.solution-link:hover .arrow {
  transform: translateX(3px);
}

.arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.6rem;
}

.news-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.news-image {
  width: 100%;
  height: 200px;
  background: var(--color-surface-alt);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.news-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.news-item h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--color-primary);
}

.news-date {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.news-content > p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CTA Section */
.cta {
  padding-top: 2.4rem;
}

.cta-inner {
  background: linear-gradient(135deg, #1c45b0 0%, #2958cd 56%, #4f86ff 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta .kicker,
.cta h2,
.cta p {
  color: #fff;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(41, 88, 205, 0.16);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.8rem;
  padding: 3.2rem 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.footer-col p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.widget {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.widget-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.widget p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.widget ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.widget li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.widget a {
  color: var(--color-primary);
}

.widget a:hover {
  color: var(--color-primary-strong);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.2rem 0 1.6rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Entry / Page Styles */
.entry-title {
  margin-bottom: 1rem;
}

.entry-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-image img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.entry-content {
  line-height: 1.75;
  color: var(--color-text);
}

.entry-content p {
  margin: 0 0 1.2rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6rem;
}

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--color-border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-primary-strong);
}

.nav-prev {
  margin-right: auto;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

/* Showcase Honeycomb Hero */
.showcase-hero {
  background: var(--color-primary);
  margin: 2.2rem calc(50% - 50vw) 3.4rem;
  padding: 3.5rem 0 4.2rem;
  overflow: hidden;
}

.showcase-hero-inner {
  position: relative;
}

.showcase-honeycomb-canvas {
  position: relative;
  min-height: 730px;
}

.showcase-hex {
  position: absolute;
  width: clamp(250px, 33vw, 440px);
  aspect-ratio: 1 / 1;
  padding: 50px;
  background: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 240ms ease, filter 240ms ease;
}

.showcase-hex-media {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface-alt);
  clip-path: inherit;
}

.showcase-hex.has-overlay .showcase-hex-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 32, 56, 0.08) 35%, rgba(19, 32, 56, 0.62) 100%);
}

.showcase-hex-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 12ch;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(12, 24, 49, 0.34);
}

.showcase-hex:hover {
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.05);
}

.hex-1 {
  top: 20px;
  left: 7%;
  z-index: 3;
}

.hex-2 {
  top: 78px;
  left: 37%;
  z-index: 2;
}

.hex-3 {
  top: 255px;
  left: 58%;
  z-index: 4;
}

.hex-4 {
  top: 320px;
  left: 20%;
  z-index: 1;
}

.hex-5 {
  top: 418px;
  left: 44%;
  z-index: 3;
}

.hex-6 {
  top: 120px;
  left: 68%;
  z-index: 2;
}

/* Responsive */
@media (max-width: 940px) {
  .hero-grid,
  .solutions-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.8rem 1.2rem 1rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .showcase-hero {
    padding: 2.6rem 0 3.2rem;
  }

  .showcase-honeycomb-canvas {
    min-height: 560px;
  }

  .showcase-hex {
    width: clamp(210px, 35vw, 320px);
    padding: 32px;
  }

  .hex-1 {
    top: 20px;
    left: 1%;
  }

  .hex-2 {
    top: 70px;
    left: 32%;
  }

  .hex-3 {
    top: 230px;
    left: 56%;
  }

  .hex-4 {
    top: 300px;
    left: 10%;
  }

  .hex-5 {
    top: 380px;
    left: 36%;
  }

  .hex-6 {
    top: 110px;
    left: 64%;
  }
}

@media (max-width: 768px) {
  .showcase-hero {
    margin: 1.8rem calc(50% - 50vw) 2.4rem;
    padding: 2.2rem 0 2.6rem;
  }

  .showcase-honeycomb-canvas {
    min-height: 450px;
  }

  .showcase-hex {
    width: clamp(160px, 34vw, 250px);
    padding: 20px;
  }

  .showcase-hex-media {
    padding: 0.85rem;
  }

  .showcase-hex-title {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }

  .hex-1 {
    top: 16px;
    left: -2%;
  }

  .hex-2 {
    top: 64px;
    left: 34%;
  }

  .hex-3 {
    top: 190px;
    left: 56%;
  }

  .hex-4 {
    top: 244px;
    left: 8%;
  }

  .hex-5 {
    top: 312px;
    left: 36%;
  }

  .hex-6 {
    top: 95px;
    left: 69%;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: 100%;
    padding: 0 1.25rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .solution-item,
  .solution-card {
    padding: 1.2rem;
  }

  .solution-image {
    margin: -1.2rem -1.2rem 0 -1.2rem;
    height: 140px;
  }

  .news-content {
    padding: 1.2rem;
  }

  .footer-grid {
    gap: 1.4rem;
    padding: 2.4rem 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .showcase-hero {
    margin: 1.4rem calc(50% - 50vw) 2rem;
    padding: 1.7rem 0 2.1rem;
  }

  .showcase-honeycomb-canvas {
    min-height: 360px;
  }

  .showcase-hex {
    width: clamp(128px, 38vw, 185px);
    padding: 16px;
  }

  .showcase-hex-media {
    padding: 0.55rem;
  }

  .showcase-hex-title {
    max-width: 11ch;
  }

  .hex-1 {
    top: 14px;
    left: -9%;
  }

  .hex-2 {
    top: 55px;
    left: 30%;
  }

  .hex-3 {
    top: 150px;
    left: 56%;
  }

  .hex-4 {
    top: 198px;
    left: -1%;
  }

  .hex-5 {
    top: 255px;
    left: 31%;
  }

  .hex-6 {
    top: 85px;
    left: 68%;
  }
}
