:root {
  color-scheme: light;
  --ink: #eff9f2;
  --muted: #9eaaa5;
  --line: rgba(239, 249, 242, 0.16);
  --accent: #d6a43a;
  --accent-ink: #1b1508;
  --technical: #5b8f86;
  --status: #8fcb65;
  --canvas: #0a1115;
  --panel: #111b1f;
  --grid-line: rgba(255, 255, 255, 0.035);
  --control-bg: rgba(255, 255, 255, 0.04);
  --noise-opacity: 0.045;
  --blob-color: rgba(214, 164, 58, 0.11);
}

html[data-theme="light"] {
  --ink: #17241f;
  --muted: #62706a;
  --line: rgba(23, 36, 31, 0.16);
  --accent-ink: #fff8e8;
  --canvas: #f5f4ef;
  --panel: #ffffff;
  --grid-line: rgba(23, 36, 31, 0.055);
  --control-bg: rgba(23, 36, 31, 0.04);
  --noise-opacity: 0.035;
  --blob-color: rgba(214, 164, 58, 0.13);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px clamp(24px, 6vw, 96px) 26px;
  background:
    linear-gradient(115deg, rgba(214, 164, 58, 0.07), transparent 35%),
    var(--canvas);
}

@media (min-width: 1920px) {
  .page-shell--home {
    padding-inline: 240px;
  }
}

.page-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: var(--noise-opacity);
  pointer-events: none;
  content: "";
}

.page-shell::after {
  display: none;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(6px);
  pointer-events: none;
}

.orb--top {
  display: none;
}

.orb--bottom {
  bottom: -23vw;
  left: -12vw;
  width: 42vw;
  height: 42vw;
  min-width: 370px;
  min-height: 370px;
  border: 1px solid rgba(91, 143, 134, 0.24);
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(126px, 12.6vw, 168px);
  height: auto;
}

.brand:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.language-switcher a:focus-visible { outline: 2px solid white; outline-offset: 2px; }

.hero {
  align-self: center;
  width: 100%;
  max-width: none;
  padding: 76px 0 96px;
}

.ai-chat-section {
  width: calc(100% + clamp(48px, 12vw, 192px));
  margin-left: calc(-1 * clamp(24px, 6vw, 96px));
  padding: 0 clamp(24px, 6vw, 96px) 48px;
}

.hero--static-egg {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "title image" "description image" "action image";
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero--static-egg h1 {
  grid-area: title;
  min-width: 0;
  font-size: clamp(40px, 4.8vw, 78px);
  line-height: 1.08;
  letter-spacing: -.055em;
  animation: hero-enter 600ms cubic-bezier(.2,.7,.2,1) both;
}

.hero--static-egg .description {
  grid-area: description;
  align-self: start;
  margin-top: 12px;
  color: var(--ink);
  animation: hero-enter 600ms 150ms cubic-bezier(.2,.7,.2,1) both;
}

.hero--static-egg h1 em { letter-spacing: -.055em; }

.hero__custom {
  display: block;
  margin-bottom: .3em;
  font-size: .46em;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.hero__services {
  display: block;
  white-space: nowrap;
}

.page-shell--home .hero--static-egg .description {
  text-wrap: balance;
}

.description__solution {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .page-shell--home .hero--static-egg {
    grid-template-columns: minmax(min-content, 1.25fr) minmax(0, 1fr);
  }

  .page-shell--home .hero__services {
    font-size: 88px;
  }
}

.hero--static-egg h1 .hero__solutions {
  display: block;
  margin-top: 0.00em;
}

.hero--static-egg h1 .hero__qualifier {
  font-weight: 500;
  letter-spacing: normal;
}

.hero--static-egg h1 .hero__separator {
  color: var(--accent);
  letter-spacing: 0;
}

.hero__cta {
  grid-area: action;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  margin-top: 0px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1508;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  animation: hero-enter 600ms 270ms cubic-bezier(.2,.7,.2,1) both;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.hero__cta-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  font-size: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: center;
  transition: transform 220ms ease;
}

html[data-language="uk"] .page-shell--home .hero__cta {
  align-self: start;
}

.hero__cta:hover { background: #e3b449; box-shadow: 0 6px 22px #d6a43a26; }
.hero__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

@media (hover: hover) {
  .hero__cta:hover .hero__cta-icon {
    transform: rotate(45deg);
  }
}

@media (min-width: 1920px) {
  .page-shell--home .hero--static-egg h1 {
    font-size: clamp(96px, 5vw, 112px);
    line-height: 1.16;
  }

  html[data-language] .page-shell--home .hero--static-egg .description {
    font-size: 28px;
  }

  .page-shell--home .hero__cta {
    font-size: 17px;
  }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-image-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__egg {
  grid-area: image;
  display: block;
  width: 100%;
  max-width: 628px;
  height: auto;
  justify-self: center;
  animation: hero-image-enter 800ms 200ms ease both;
}

@media (max-width: 900px) {
  .hero--static-egg {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "description" "action" "image";
    row-gap: 0;
  }

  .hero--static-egg h1 {
    font-size: clamp(32px, 7.2vw, 64px);
  }

  .hero__egg {
    width: min(100%, 420px);
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--static-egg h1, .hero--static-egg .description, .hero__cta, .hero__egg {
    animation: none;
    transition: none;
  }
}

h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(64px, 10.1vw, 150px);
  font-weight: 650;
  letter-spacing: -0.085em;
  line-height: 0.87;
}

h1 em { color: var(--accent); font-family: "Noto Serif", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.085em; }

.description {
  max-width: 530px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.52;
}


.footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-controls {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-info { display: grid; min-width: 0; gap: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: inherit; padding-block: 7px; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink); }
.footer-legal a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Keep footer links above the fixed consultant on compact desktop/mobile layouts. */
@media (max-width: 1400px) {
  .page-shell--home { padding-bottom: 110px; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--control-bg);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle__icon {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 4px rgba(143, 203, 101, 0.12); }

@media (max-width: 600px) {
  .page-shell--home .hero__cta { margin-top: 50px; }
  .page-shell { padding: 22px 22px 20px; }
  .brand__logo { width: 118px; }
  .hero { padding: 80px 0; }
  .footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-controls { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .description { margin-top: 28px; }
}
