:root {
  --bg: #050910;
  --panel: rgba(8, 17, 31, 0.78);
  --text: #f4f7fb;
  --muted: #9aa7b6;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #f8b72c;
  --consulting: #f8b72c;
  --training: #16b9ff;
  --collaborations: #00d4c7;
  --featured: #b35cff;
  --products: #f0b000;
  --contact: #2997ff;
  --active: var(--gold);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(30, 105, 180, 0.24), transparent 34%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--active) 11%, transparent), transparent 32%),
    radial-gradient(circle at 52% 90%, rgba(0, 212, 199, 0.10), transparent 28%),
    linear-gradient(135deg, #03060b 0%, #071426 48%, #020408 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a {
  color: inherit;
}

.browser-frame {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 12, 0.34);
  backdrop-filter: blur(18px);
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px clamp(20px, 5vw, 70px);
  border-bottom: 1px solid color-mix(in srgb, var(--active) 22%, transparent);
  background: rgba(2, 8, 16, 0.72);
}

.brand {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.logo-box {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(248, 183, 44, 0.24));
}

.logo-box img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.brand-text {
  white-space: nowrap;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.terminal-line {
  min-height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  color: #7dd3ff;
  font-family: "Courier New", "Lucida Console", Monaco, monospace;
  font-size: clamp(11px, 1.44vw, 16px);
  letter-spacing: 0.03em;
  text-align: right;
  text-shadow: 0 0 10px rgba(125, 211, 255, 0.55);
  white-space: nowrap;
}

.terminal-line::before {
  content: ">";
  margin-right: 10px;
}

.terminal-cursor {
  width: 10px;
  height: 1.1em;
  display: inline-block;
  margin-left: 7px;
  vertical-align: -0.15em;
  background: #7dd3ff;
  box-shadow: 0 0 12px rgba(125, 211, 255, 0.85);
  animation: blink 0.75s steps(1) infinite;
}

.topic-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: center;
  gap: clamp(7px, 1.4vw, 20px);
  padding: 11px clamp(14px, 4vw, 56px);
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 9, 18, 0.9);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.topic-nav::-webkit-scrollbar {
  display: none;
}

.topic-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 2px;
  color: #aeb9c7;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.topic-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--nav-color);
  box-shadow: 0 0 8px var(--nav-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.topic-nav a:hover,
.topic-nav a[aria-current="page"] {
  color: var(--nav-color);
}

.topic-nav a:hover::after,
.topic-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

main {
  padding: 34px clamp(18px, 5vw, 76px) 46px;
}

.home-main {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero .quote {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1.4vw, 18px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.quote-highlight {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(248, 183, 44, 0.22);
}

.rule {
  position: relative;
  width: 320px;
  max-width: 70%;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, rgba(248, 183, 44, 0.7), transparent);
}

.rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
  transform: translate(-50%, -50%);
}

.primary-grid {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px 14px;
  margin: 0 auto;
}

.main-card {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 14px 22px;
  border: 1px solid color-mix(in srgb, var(--card-color) 70%, transparent);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(9, 18, 32, 0.84), rgba(4, 8, 14, 0.72));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.main-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--card-color) 17%, transparent), transparent 30%),
    linear-gradient(90deg, color-mix(in srgb, var(--card-color) 8%, transparent), transparent 55%);
}

.main-card:hover,
.main-card:focus-visible {
  border-color: var(--card-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-color) 70%, transparent), 0 0 32px color-mix(in srgb, var(--card-color) 36%, transparent);
  outline: none;
  transform: translateY(-2px);
}

.main-card > * {
  position: relative;
  z-index: 1;
}

.icon,
.content-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--card-color, var(--active));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--card-color, var(--active)) 46%, transparent));
}

.icon {
  width: 38px;
  height: 38px;
}

.icon svg {
  width: 32px;
  height: 32px;
}

.icon svg,
.content-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-title,
.card-sub {
  display: block;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-sub {
  margin-top: 4px;
  color: #c4ccd7;
  font-size: 14px;
}

.section-intro {
  width: min(900px, 100%);
  margin: 10px auto 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--active);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 0 32px color-mix(in srgb, var(--active) 22%, transparent);
}

.section-lead {
  max-width: 650px;
  margin: 16px auto 0;
  color: #bdc7d4;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
}

.content-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.content-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--active) 36%, var(--line));
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(10, 18, 31, 0.92), rgba(5, 9, 16, 0.8)),
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--active) 13%, transparent), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 24px color-mix(in srgb, var(--active) 9%, transparent);
}

.content-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 54px;
  height: 1px;
  background: var(--active);
  box-shadow: 0 0 12px var(--active);
}

.content-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.content-icon {
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--active) 66%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 20px color-mix(in srgb, var(--active) 14%, transparent);
}

.content-icon svg {
  width: 25px;
  height: 25px;
}

.content-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.content-card .subtitle {
  margin: 5px 0 0;
  color: var(--active);
  font-size: 13px;
  line-height: 1.35;
}

.content-card .answer {
  margin: 18px 0 0;
  color: #d2dae5;
  font-size: 15px;
  line-height: 1.68;
}

.service-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--active);
  box-shadow: 0 0 32px color-mix(in srgb, var(--active) 22%, transparent);
  outline: none;
  transform: translateY(-2px);
}

.card-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--active);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-link-label::after {
  content: "\2192";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.service-card:hover .card-link-label::after,
.service-card:focus-visible .card-link-label::after {
  transform: translateX(4px);
}

.consulting-subnav {
  width: min(1080px, 100%);
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  overflow-x: auto;
  padding: 3px 2px 9px;
  scrollbar-width: none;
}

.consulting-subnav::-webkit-scrollbar {
  display: none;
}

.consulting-subnav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(248, 183, 44, 0.25);
  border-radius: 999px;
  color: #b9c3d0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.consulting-subnav a:hover,
.consulting-subnav a:focus-visible,
.consulting-subnav a[aria-current="page"] {
  border-color: var(--active);
  color: var(--active);
  background: color-mix(in srgb, var(--active) 8%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--active) 12%, transparent);
  outline: none;
}

.detail-panel {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid color-mix(in srgb, var(--active) 40%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(10, 18, 31, 0.94), rgba(5, 9, 16, 0.84)),
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--active) 14%, transparent), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 38px color-mix(in srgb, var(--active) 12%, transparent);
}

.detail-panel .content-icon {
  margin-bottom: 24px;
}

.detail-panel p {
  margin: 0;
  color: #d6deea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.75;
}

.contact-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--active);
  box-shadow: 0 0 32px color-mix(in srgb, var(--active) 22%, transparent);
  outline: none;
  transform: translateY(-2px);
}

.external-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--active);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.external-label::after {
  content: "\2197";
  font-size: 15px;
}

.site-footer {
  width: min(1080px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 28px auto 0;
  padding-inline: 4px;
  color: #8793a2;
  font-size: 13px;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .terminal-line {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .topic-nav {
    justify-content: flex-start;
  }

  .consulting-subnav {
    justify-content: flex-start;
  }

  .primary-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .home-main {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: auto;
  }

  .brand-text {
    font-size: 12px;
  }

  main {
    padding: 28px 14px 36px;
  }

  .main-card,
  .content-card {
    padding: 17px;
  }

  .content-card::after {
    left: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
