@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --brand-navy: #0b1b2b;
  --brand-deep: #0f2a44;
  --brand-blue: #1c4b7a;
  --brand-cyan: #37c0c9;
  --brand-orange: #f37021;
  --brand-sand: #f4efe9;
  --brand-ink: #0a0f14;
  --text: #15202b;
  --muted: #5b6b7b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(12, 24, 38, 0.18);
  --surface: #f8fafc;
  --surface-contrast: #e8eef5;
  --font-sans: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at top left, #f9f2e9 0%, #f2f6fb 40%, #e6edf5 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--brand-orange);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  min-width: 260px;
}

.brand-mark {
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  border: none;
}

.brand-mark img,
.brand-mark svg {
  width: 64px;
  height: auto;
}

.product-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 6px 16px rgba(12, 24, 38, 0.08);
}

.product-mark img {
  width: 32px;
  height: auto;
}

.product-mark--hero {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.product-mark--hero img {
  width: 48px;
}

.brand span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brand-deep);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(28, 75, 122, 0.12);
  color: var(--brand-navy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--brand-deep);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  background: rgba(28, 75, 122, 0.12);
  color: var(--brand-navy);
}

.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 10px 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 42, 68, 0.08);
  display: none;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--brand-deep);
}

.nav-dropdown-menu a:hover {
  background: rgba(28, 75, 122, 0.08);
  color: var(--brand-navy);
}

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

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--brand-deep);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.08);
  font-weight: 600;
  color: var(--brand-deep);
}

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 70% 30%;
  filter: blur(0.5px);
  opacity: 0.65;
  z-index: 0;
}

.hero::before {
  background: linear-gradient(135deg, #ffd6b0, #ff8f3b);
  top: -120px;
  right: -60px;
}

.hero::after {
  background: linear-gradient(135deg, #b2e9f0, #4ab1e6);
  bottom: -140px;
  left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 16px;
  color: var(--brand-navy);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card {
  background: var(--white);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--brand-ink);
}

.fpt-direct-card {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(15, 42, 68, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.fpt-direct-visual {
  border-radius: 16px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  background: var(--white);
  padding: 10px;
  display: grid;
  place-items: center;
}

.fpt-direct-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.08);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid rgba(15, 42, 68, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
  color: var(--brand-navy);
}

.section-subtitle {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 12px 30px rgba(12, 24, 38, 0.08);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.card h3 {
  font-family: var(--font-sans);
  margin-top: 0;
  color: var(--brand-deep);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card .btn {
  margin-top: auto;
  align-self: center;
}

.guide-cards .card {
  align-items: flex-start;
  text-align: left;
}

.guide-content a:not(.btn) {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.guide-content a:not(.btn):hover {
  color: var(--brand-orange);
}

.content-rich a[target="_blank"]:not(.btn),
.content-rich a[rel~="noopener"]:not(.btn) {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content-rich a[target="_blank"]:not(.btn):hover,
.content-rich a[rel~="noopener"]:not(.btn):hover {
  color: var(--brand-orange);
}

.hero-meta a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.hero-meta a:hover {
  color: var(--brand-orange);
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(55, 192, 201, 0.1), rgba(243, 112, 33, 0.6));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(55, 192, 201, 0.6);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(12, 24, 38, 0.12);
  position: relative;
  z-index: 1;
}

.timeline-marker::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  position: absolute;
  inset: auto auto -6px 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-cyan));
  opacity: 0.25;
}

.timeline-card {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 16px 40px rgba(12, 24, 38, 0.08);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card h3 {
  margin-top: 0;
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.timeline-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(12, 24, 38, 0.14);
}

@media (max-width: 700px) {
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: var(--shadow);
}

.services-hero-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-hero-link {
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--brand-deep);
  background: rgba(15, 42, 68, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  text-align: left;
}

.services-hero-link.is-active {
  background: linear-gradient(90deg, rgba(243, 112, 33, 0.2), rgba(55, 192, 201, 0.2));
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px rgba(15, 42, 68, 0.12);
}

.services-hero-link:hover {
  background: linear-gradient(90deg, rgba(243, 112, 33, 0.18), rgba(55, 192, 201, 0.18));
  box-shadow: inset 0 0 0 1px rgba(15, 42, 68, 0.08);
  transform: translateX(4px);
}

.services-hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-blurb {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 12px 28px rgba(12, 24, 38, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  display: none;
}

.service-blurb-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.service-blurb-copy {
  display: grid;
  gap: 10px;
}

.service-blurb-visual {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(15, 42, 68, 0.1);
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.service-blurb-visual img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.service-blurb h3 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.service-blurb p {
  margin: 0;
  color: var(--muted);
}

.service-blurb .btn {
  align-self: flex-start;
  width: fit-content;
}

.service-blurb.is-active {
  display: flex;
}

@media (max-width: 900px) {
  .fpt-direct-card {
    grid-template-columns: 1fr;
  }

  .fpt-direct-visual {
    order: 2;
  }

  .service-blurb-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-blurb-visual {
    min-height: 140px;
  }
}

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

.blog-card {
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 14px 32px rgba(12, 24, 38, 0.08);
  display: grid;
  gap: 14px;
  text-align: left;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 42, 68, 0.12);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.blog-card h3 {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

.blog-card .btn {
  margin-top: 12px;
}

.blog-card .tag-list {
  margin-top: 10px;
  margin-bottom: 12px;
  row-gap: 10px;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-hero h1 {
  margin-bottom: 10px;
}

.blog-meta {
  color: var(--muted);
}

.blog-post {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.blog-post img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 68, 0.1);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.blog-body {
  color: var(--brand-ink);
  line-height: 1.8;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.contact-card {
  align-items: flex-start;
  text-align: left;
}

.contact-card h4 {
  margin: 6px 0 6px;
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.contact-block {
  width: 100%;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .services-hero {
    grid-template-columns: 1fr;
  }

  .services-hero-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .services-hero-link {
    flex: 1 1 auto;
  }
}

.highlight {
  background: linear-gradient(135deg, #0b1b2b, #1f3a5a);
  color: var(--white);
  border-radius: 28px;
  padding: 40px;
}

.highlight p {
  color: rgba(255, 255, 255, 0.8);
}

.highlight .section-title {
  color: var(--white);
}

.highlight .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
}

.service-hero {
  background: linear-gradient(135deg, rgba(243, 112, 33, 0.12), rgba(55, 192, 201, 0.15));
  border-radius: 28px;
  padding: 36px;
  color: var(--brand-ink);
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.legal {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: var(--shadow);
  color: var(--brand-ink);
}

.legal h3,
.legal h4 {
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.form label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--brand-deep);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 42, 68, 0.18);
  font-family: var(--font-sans);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(55, 192, 201, 0.9);
  box-shadow: 0 0 0 3px rgba(55, 192, 201, 0.2);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  justify-self: start;
  min-width: 180px;
}

.contact-card .form,
.contact-card .form input,
.contact-card .form textarea,
.contact-card .form select {
  width: 100%;
}

.contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.footer {
  margin-top: 40px;
  padding: 50px 0 30px;
  background: var(--brand-navy);
  color: var(--white);
}

.footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  font-family: var(--font-sans);
  margin-top: 0;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.footer-logos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-bct,
.footer-brand {
  display: inline-flex;
}

.footer-bct img,
.footer-brand img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
}

.diagram-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(15, 42, 68, 0.08);
}

.diagram-subtitle {
  color: var(--muted);
  margin-top: 0;
  line-height: 1.7;
}

.diagram-placeholder {
  background: linear-gradient(135deg, var(--surface-contrast), #ffffff);
  border-radius: 20px;
  padding: 18px;
  min-height: 200px;
  border: 1px dashed rgba(15, 42, 68, 0.2);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-sans);
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
}

.diagram-grid span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 42, 68, 0.08);
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.diagram-preview {
  margin: 0;
  text-align: center;
}

.diagram-preview img {
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 42, 68, 0.12);
  background: var(--white);
  cursor: zoom-in;
}

.diagram-preview figcaption {
  margin-top: 10px;
  font-family: var(--font-sans);
  color: var(--brand-deep);
}

.home-tabs {
  background: linear-gradient(135deg, #0b1b2b, #1c4b7a 55%, #37c0c9);
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow);
}

.home-tab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.home-tab {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-ink);
  border: none;
  padding: 12px 16px;
  border-radius: 16px 16px 8px 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
}

.home-tab.is-active {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.35);
}

.home-tab-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
  padding: 12px 6px 6px;
}

.home-tab-panel.is-active {
  display: grid;
}

.home-tab-panel h2 {
  margin-top: 0;
  font-family: var(--font-sans);
}

.home-tab-label {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 6px;
}

.home-tab-visual {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  color: var(--brand-ink);
  text-align: center;
}

.home-tab-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 10px;
  border-radius: 14px;
}

.home-tab-visual span {
  display: inline-block;
  font-weight: 600;
}

.home-tab-icon {
  height: 220px;
  border-radius: 16px;
  border: 2px dashed rgba(123, 97, 255, 0.4);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .home-tabs {
    padding: 16px;
  }
}

.diagram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.diagram-item {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 12px 30px rgba(12, 24, 38, 0.08);
  text-align: center;
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.diagram-item img {
  align-self: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(15, 42, 68, 0.1);
  cursor: zoom-in;
  margin: auto 0;
  max-height: 140px;
  object-fit: contain;
}

.diagram-item figcaption {
  margin-top: auto;
  font-family: var(--font-sans);
  color: var(--brand-deep);
  padding-top: 12px;
}

.diagram-hint {
  margin-top: 16px;
  color: var(--muted);
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 28, 0.7);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 300;
}

.zoom-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.zoom-overlay img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: none;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 0;
    background: transparent;
  }
}
