:root {
  --ink: #080b10;
  --muted: #4f5b68;
  --light: #fbfbfa;
  --card: #ffffff;
  --accent: #0b1118;
  --accent-2: #a88b4a;
  --border: #e1e5eb;
  --border-strong: #c7ced8;
  --shadow: 0 24px 60px rgba(8, 11, 16, 0.07);
  --radius: 0;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 17px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff, rgba(251, 251, 250, 0) 340px),
    var(--light);
}

h1, h2, h3 {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 16px 0;
  text-wrap: balance;
}

p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

.hero-inner,
.section > .container {
  width: min(calc(100% - 48px), var(--max));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section > .container {
  background: #fff;
  border: 0;
  padding: 38px 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.section > .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 139, 74, 0.5), transparent);
}

header {
  padding: 18px 0;
  background: rgba(251, 251, 250, 0.96);
  border-bottom: 1px solid rgba(225, 229, 235, 0.58);
}

header.container {
  max-width: none;
  padding: 18px 0;
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  justify-self: start;
}

.brand:focus-visible {
  outline: 2px solid rgba(168, 139, 74, 0.85);
  outline-offset: 6px;
}

.brand-logo {
  width: clamp(190px, 21vw, 240px);
  height: auto;
}

.brand-text {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.brand strong {
  font-size: 22px;
  letter-spacing: 0.4px;
}

.brand span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #202833;
}

.nav-links a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-switch {
  justify-self: end;
  border: 1px solid rgba(8, 11, 16, 0.1);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero {
  padding: 56px 0 48px;
  background: transparent;
  border-bottom: 0;
}

.hero-inner {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 48px 44px 46px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), #2c3440 55%, var(--accent-2));
}

.hero-inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 139, 74, 0.65));
}

.hero h1 {
  font-size: clamp(42px, 4.8vw, 68px);
  color: var(--accent);
  margin-bottom: 20px;
}

.hero p {
  font-size: 19px;
  max-width: 900px;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 0;
  box-shadow: 0 16px 42px rgba(8, 11, 16, 0.055);
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 139, 74, 0.7));
  opacity: 0.58;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(8, 11, 16, 0.085);
}

.section {
  padding: 0 0 46px;
  background: transparent;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.section-title span {
  width: 44px;
  height: 1px;
  background: var(--accent-2);
  display: inline-block;
  flex: 0 0 auto;
}

.section-title h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 0;
}

.home-main > .section:nth-of-type(2) > .container {
  padding: 42px 30px 38px;
}

.home-main > .section:nth-of-type(2) > .container::before {
  display: none;
}

.home-main > .section:nth-of-type(2) .grid {
  counter-reset: activity;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: #fff;
  box-shadow: none;
}

.home-main > .section:nth-of-type(2) .card {
  counter-increment: activity;
  min-height: 270px;
  padding: 34px 28px 30px;
  box-shadow: 0 18px 42px rgba(8, 11, 16, 0.065);
  overflow: hidden;
}

.home-main > .section:nth-of-type(2) .card::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(8, 11, 16, 0.72), rgba(168, 139, 74, 0.62));
  opacity: 0.82;
}

.home-main > .section:nth-of-type(2) .card::after {
  content: "0" counter(activity);
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(8, 11, 16, 0.06);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.home-main > .section:nth-of-type(2) .card h3 {
  max-width: 260px;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.home-main > .section:nth-of-type(2) .card p {
  font-size: 16px;
  line-height: 1.7;
}

.home-main > .section:nth-of-type(3) > .container {
  background: var(--accent);
  color: #fff;
  padding: 42px 40px;
  box-shadow: 0 26px 64px rgba(8, 11, 16, 0.16);
}

.home-main > .section:nth-of-type(3) > .container::before {
  left: 40px;
  right: 40px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255, 255, 255, 0.18), transparent);
}

.home-main > .section:nth-of-type(3) .section-title {
  margin-bottom: 24px;
}

.home-main > .section:nth-of-type(3) .section-title span {
  background: var(--accent-2);
}

.home-main > .section:nth-of-type(3) .section-title h2,
.home-main > .section:nth-of-type(3) p {
  color: #fff;
}

.home-main > .section:nth-of-type(3) .card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 34px;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  padding: 30px;
}

.home-main > .section:nth-of-type(3) .card::before {
  display: none;
}

.home-main > .section:nth-of-type(3) .card p {
  margin-bottom: 0;
}

.home-main > .section:nth-of-type(3) .card > p:first-child {
  font-size: 20px;
  line-height: 1.55;
  color: #fff;
}

.home-main > .section:nth-of-type(3) .notice {
  border-left-color: var(--accent-2);
  color: rgba(255, 255, 255, 0.78);
  padding-left: 18px;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding-left: 16px;
  position: relative;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  background: var(--accent-2);
  color: var(--accent-2);
}

footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(8, 11, 16, 0.1);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.notice {
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--accent-2);
  padding-left: 12px;
}

.subpage-main {
  padding-top: 44px;
  padding-bottom: 18px;
}

.subpage-main .hero {
  padding: 0 0 34px;
}

.subpage-main .hero-inner {
  width: 100%;
  padding: 40px 42px;
}

.subpage-main .hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 4vw, 54px);
}

.subpage-main .hero p {
  max-width: 760px;
  margin-bottom: 0;
}

.subpage-main .section {
  padding: 0 0 30px;
}

.subpage-main .section + .section {
  padding-top: 6px;
}

.subpage-main .grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.subpage-main .single-card-grid {
  grid-template-columns: 1fr;
}

.subpage-main .card {
  min-height: 100%;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(8, 11, 16, 0.055);
}

.subpage-main .card::before {
  height: 1px;
  opacity: 0.7;
}

.subpage-main .card h2,
.subpage-main .card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.subpage-main .card p:last-child {
  margin-bottom: 0;
}

.subpage-main .section-title {
  margin-bottom: 18px;
}

.subpage-main .section-title h2 {
  font-size: clamp(24px, 2.4vw, 30px);
}

.subpage-main .section > .card {
  padding: 34px 36px;
}

.subpage-main .section > .card .notice:only-child,
.subpage-main .section > .card .notice:last-child {
  margin-bottom: 0;
}

.about-page .hero h1 {
  max-width: 980px;
}

.about-page .hero p {
  max-width: 860px;
}

.services-page .hero-inner {
  padding: 46px 48px;
}

.hero-kicker {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.services-page .hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
}

.services-page .hero p {
  max-width: 900px;
}

.services-page .hero p:first-of-type {
  color: #202833;
  font-size: 21px;
  line-height: 1.55;
  max-width: 780px;
}

.services-page .hero p:last-child {
  margin-bottom: 0;
}

.services-page .service-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  padding: 34px 32px;
}

.service-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-intro {
  color: #202833;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 22px;
}

.service-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
}

.service-list strong {
  color: var(--ink);
}

.about-intro {
  padding-bottom: 38px;
}

.about-intro-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px 42px;
  background: var(--accent);
  color: #fff;
  padding: 38px 40px;
  box-shadow: 0 24px 60px rgba(8, 11, 16, 0.13);
  position: relative;
}

.about-intro-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255, 255, 255, 0.16), transparent);
}

.about-intro-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.about-intro-panel p:first-child {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.about-intro-panel p:nth-child(2),
.about-intro-panel p:nth-child(3) {
  grid-column: 2;
}

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

.ecosystem-card {
  background: #fff;
  box-shadow: 0 18px 46px rgba(8, 11, 16, 0.065);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.ecosystem-number {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.ecosystem-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin-bottom: 20px;
}

.ecosystem-card p {
  font-size: 16px;
  line-height: 1.7;
}

.ecosystem-card p:last-child {
  margin-bottom: 0;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-links a {
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(8, 11, 16, 0.12);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-links a:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-inner {
    padding: 34px 24px 32px;
  }

  .hero-inner,
  .section > .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .subpage-main .hero-inner {
    width: 100%;
  }

  .section > .container {
    padding: 32px 24px;
  }

  .section > .container::before {
    left: 24px;
    right: 24px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .home-main > .section:nth-of-type(2) .grid {
    grid-template-columns: 1fr;
  }

  .home-main > .section:nth-of-type(2) .card {
    min-height: auto;
  }

  .home-main > .section:nth-of-type(3) > .container {
    padding: 34px 24px;
  }

  .home-main > .section:nth-of-type(3) > .container::before {
    left: 24px;
    right: 24px;
  }

  .home-main > .section:nth-of-type(3) .card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .about-intro-panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .services-page .hero-inner {
    padding: 34px 24px 32px;
  }

  .services-page .hero p:first-of-type {
    font-size: 19px;
  }

  .services-page .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 30px 24px;
  }

  .about-intro-panel::before {
    left: 24px;
    right: 24px;
  }

  .about-intro-panel p:nth-child(2),
  .about-intro-panel p:nth-child(3) {
    grid-column: auto;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .home-main > .section:nth-of-type(2) .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-panel {
    grid-template-columns: 1fr;
  }

  .about-intro-panel p:nth-child(2),
  .about-intro-panel p:nth-child(3) {
    grid-column: auto;
  }

  .services-page .service-card-grid {
    grid-template-columns: 1fr;
  }
}
