:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --panel: #11100e;
  --panel-strong: #161411;
  --line: rgba(232, 190, 88, 0.18);
  --line-silver: rgba(255, 255, 255, 0.11);
  --gold: #d9ae4a;
  --gold-soft: #f0cf75;
  --red: #d21f28;
  --text: #f7f4ec;
  --muted: #c7c5bd;
  --dim: #88857d;
  --success: #78c796;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(217, 174, 74, 0.08), transparent 24%),
    linear-gradient(245deg, rgba(210, 31, 40, 0.07), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--gold-soft);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell,
.nav-shell,
.footer-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line-silver);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(217, 174, 74, 0.24);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(217, 174, 74, 0.13);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-menu a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-menu .nav-cta {
  margin-left: 6px;
  color: #10100e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px rgba(217, 174, 74, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.language-switch {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 3px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-silver);
  border-radius: 6px;
}

.language-option {
  min-width: 34px;
  min-height: 28px;
  padding: 4px 7px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--text);
  outline: none;
}

.language-option.is-active {
  color: #11100d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-silver);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(56px, 8vw, 108px) clamp(42px, 7vw, 84px);
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  position: absolute;
  top: -28px;
  left: 0;
  width: 120px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--red), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 5.9vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.6vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #11100d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 16px 40px rgba(217, 174, 74, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-silver);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(217, 174, 74, 0.42);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(217, 174, 74, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.hero-visual::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.24), transparent 38%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.3), transparent 44%);
}

.hero-visual::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.hero-line {
  position: absolute;
  right: 9%;
  bottom: 14%;
  z-index: 2;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold-soft), transparent);
  opacity: 0.84;
  animation: line-pulse 5s ease-in-out infinite;
}

.services,
.apps,
.about,
.contact {
  padding-block: clamp(54px, 8vw, 110px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.service-card,
.app-card,
.contact-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line-silver);
  border-radius: 8px;
}

.service-card::before,
.app-card::before,
.contact-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 174, 74, 0.75), transparent);
  opacity: 0.66;
}

.service-card {
  min-height: 256px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 174, 74, 0.38);
  background:
    linear-gradient(145deg, rgba(217, 174, 74, 0.1), rgba(255, 255, 255, 0.028)),
    var(--panel-strong);
}

.service-card p,
.app-card p,
.about-copy p,
.contact-panel p,
.coming-soon {
  color: var(--muted);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--gold-soft);
  background: rgba(217, 174, 74, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apps {
  position: relative;
}

.apps::before {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(780px, 72vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(210, 31, 40, 0.62), rgba(217, 174, 74, 0.62), transparent);
  transform: translateX(-50%);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 18px;
}

.app-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

.app-logo {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin-bottom: 22px;
  overflow: hidden;
  background: #070707;
  border: 1px solid rgba(217, 174, 74, 0.22);
  border-radius: 8px;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-content {
  flex: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
}

.status::before {
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.button-app {
  width: fit-content;
  margin-top: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(217, 174, 74, 0.28);
}

.button-app:hover,
.button-app:focus-visible {
  color: #11100d;
  background: var(--gold-soft);
}

.coming-soon {
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.96rem;
}

.about {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.about-mark {
  position: relative;
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(217, 174, 74, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 174, 74, 0.09), rgba(210, 31, 40, 0.05)),
    #080808;
  box-shadow: var(--shadow);
}

.about-mark::before,
.about-mark::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(217, 174, 74, 0.22);
}

.about-mark::before {
  inset: 18px;
  border-radius: 8px;
}

.about-mark::after {
  inset: 48px;
  border-color: rgba(210, 31, 40, 0.3);
  transform: rotate(45deg);
}

.about-mark img {
  position: relative;
  z-index: 1;
  width: min(70%, 182px);
  height: auto;
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}

.about-mark picture {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.about-copy {
  max-width: 760px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(105deg, rgba(217, 174, 74, 0.12), transparent 44%),
    linear-gradient(250deg, rgba(210, 31, 40, 0.11), transparent 38%),
    var(--panel);
}

.mail-link {
  color: var(--gold-soft);
  font-weight: 800;
}

.mail-link:hover,
.mail-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line-silver);
  background: #040404;
}

.footer-inner {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span,
.footer-links {
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-12px);
  }

  50% {
    opacity: 0.96;
    transform: translateX(12px);
  }
}

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

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    padding: 10px;
    background: rgba(8, 8, 8, 0.98);
    border: 1px solid var(--line-silver);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.is-open .nav-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu a {
    width: 100%;
  }

  .nav-menu .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 4.4rem);
  }

  .apps-grid,
  .about,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    align-items: flex-start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .nav-shell,
  .footer-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand span {
    font-size: 0.96rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

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

  .service-card {
    min-height: auto;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .mail-link {
    width: 100%;
  }

  .mail-link {
    overflow-wrap: anywhere;
    text-align: center;
  }

  .about-mark {
    max-width: 210px;
  }
}

@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;
  }
}
