@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --base: #08070c;
  --panel: #100d18;
  --ink: #f7f4fc;
  --muted: #bcb2cd;
  --violet: #cfafff;
  --border: #332942;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #decbff; outline-offset: 5px; }
.container { width: min(calc(100% - 3rem), 72rem); margin-inline: auto; }
.top { position: relative; z-index: 2; background: #0b0911; border-bottom: 1px solid #231b2e; }
.bar { min-height: 4.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; font-weight: 650; white-space: nowrap; letter-spacing: -.02em; }
.brand b { color: var(--violet); }
.mark {
  width: 1.65rem; height: 1.65rem; border-radius: .45rem; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #322047, #1a1226); border: 1px solid #664a88;
}
.mark::before { content: ""; width: .59rem; aspect-ratio: 1; border: 1px solid #e4ceff; transform: rotate(45deg); border-radius: .08rem; box-shadow: 0 0 .7rem #ab68f6; }
.nav-links, .actions, .languages { display: flex; align-items: center; }
.nav-links { gap: clamp(.85rem, 2.6vw, 2.2rem); }
.nav-links a { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .back:hover { color: var(--ink); }
.actions { gap: .8rem; }
.languages { gap: .13rem; }
.languages button {
  border: 1px solid transparent; border-radius: .35rem; background: transparent; color: var(--muted);
  font-size: .875rem; font-weight: 660; line-height: 1.15; padding: .53rem .38rem; cursor: pointer;
}
.languages button[aria-pressed="true"], .languages button:hover { background: #281c38; border-color: #48345e; color: #f1e5ff; }
.button {
  display: inline-flex; min-height: 2.3rem; align-items: center; justify-content: center; gap: .55rem;
  padding: .6rem .88rem; border: 1px solid #5c466f; border-radius: .55rem; background: #1a1224;
  font-size: .94rem; font-weight: 670; color: var(--ink); white-space: nowrap;
}
.button:hover { border-color: var(--violet); }
.out { color: var(--violet); }
.primary { color: #160a25; background: #e7d3ff; border-color: #e7d3ff; padding: .78rem 1.08rem; box-shadow: 0 0 1.5rem #ad73ee3d; }
.primary:hover { background: #f6ebff; }

.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; min-height: clamp(33rem, 64vw, 46rem); display: flex; flex-direction: column; justify-content: space-between; }
.hero-scene {
  position: absolute; z-index: -1; inset: 0; 
  background:
    linear-gradient(180deg, #08070c91 0%, #08070c80 30%, #08070c00 64%, var(--base) 100%),
    url("hero.webp") center 62% / cover no-repeat,
    radial-gradient(ellipse at 50% 68%, #40245e, #100a1a 35%, var(--base) 72%);
}
.hero-copy { padding-top: clamp(4rem, 8vw, 7.4rem); }
.eyebrow {
  margin: 0; color: var(--violet); font-size: .875rem; font-weight: 650; line-height: 1.4;
  letter-spacing: .105em; text-transform: uppercase;
}
.hero h1 {
  margin: .78rem auto 0; max-width: 64rem; font-size: clamp(2.85rem, 7.3vw, 6.55rem);
  line-height: .99; font-weight: 790; letter-spacing: -.075em; text-wrap: balance; text-shadow: 0 .25rem 2rem #040208b8;
}
.hero h1 span { display: block; }
.hero-accent { color: #d9bafa; }
.hero-caption {
  display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border);
  padding-bottom: .9rem; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase;
}
.platform-section { text-align: center; padding: 2.8rem 0 3rem; border-bottom: 1px solid var(--border); }
.platform-list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem clamp(1.2rem, 4.8vw, 4rem); color: #e5daef; }
.platform-list li { font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }

.section { scroll-margin-top: 1.5rem; }
.studio { padding-block: clamp(4rem, 8.6vw, 7.6rem); }
.section-heading { text-align: center; margin: 0 auto 2rem; max-width: 46rem; }
.section-heading h2, .project h2, .login-panel h1 {
  font-size: clamp(2rem, 4.8vw, 4.05rem); letter-spacing: -.06em; line-height: 1.06; margin: .55rem 0 .65rem; text-wrap: balance;
}
.section-heading p:not(.eyebrow), .studio-card p, .project-copy > p:not(.eyebrow), .login-panel p { color: var(--muted); line-height: 1.65; margin: 0; }
.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.studio-card {
  min-height: 12.7rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border-radius: .8rem;
  border: 1px solid var(--border); background: radial-gradient(ellipse at 4% 10%, #241833, var(--panel) 78%);
}
.studio-card h3 { font-size: clamp(1.08rem, 2vw, 1.33rem); letter-spacing: -.033em; margin: .95rem 0 .42rem; }
.studio-card p { font-size: 1.02rem; }
.symbol { position: relative; display: grid; place-items: center; width: 2.55rem; height: 2.55rem; background: #281b38; border: 1px solid #563d6e; border-radius: .55rem; color: var(--violet); }
.team-symbol i { position: absolute; width: .43rem; height: .43rem; border-radius: 50%; background: currentColor; top: .8rem; }
.team-symbol i:first-child { left: .53rem; top: 1.1rem; opacity: .66; }
.team-symbol i:last-child { right: .53rem; top: 1.1rem; opacity: .66; }
.team-symbol::after { content: ""; border-top: 1px solid currentColor; width: 1.25rem; transform: translateY(.49rem); opacity: .55; }
.stack-symbol i { position: absolute; width: .72rem; height: .72rem; border: 1px solid currentColor; transform: rotate(45deg); top: .59rem; }
.stack-symbol i:nth-child(2) { top: .84rem; opacity: .55; }
.stack-symbol i:nth-child(3) { top: 1.09rem; opacity: .25; }
.spark-symbol { font-style: normal; font-size: 1.35rem; }

.project { min-height: 20rem; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; border-radius: .95rem; border: 1px solid #46345b; background: #140e1e; }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.65rem, 5vw, 4.05rem); }
.project-copy > p:not(.eyebrow) { max-width: 29rem; }
.project-art { isolation: isolate; min-height: 16rem; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 55% 52%, #3d235c, #1a1128 50%, transparent 80%); }
.orbit { position: absolute; width: 69%; height: 52%; border: 1px solid #a976cc7c; border-radius: 50%; transform: rotate(-31deg); box-shadow: 0 0 1.7rem #aa6de33b, inset 0 0 1.7rem #aa6de329; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 10%; border: inherit; border-radius: inherit; }
.orbit::after { inset: -12%; opacity: .38; }
.core { width: clamp(5.4rem, 13vw, 9.25rem); aspect-ratio: .84; transform: rotate(24deg) skew(-8deg); border: 1px solid #dbb5ff; border-radius: .55rem; background: linear-gradient(138deg,#9669bd,#452760 35%,#1c132e 70%,#160c25); box-shadow: 1rem .85rem 0 -.15rem #27133d, 0 0 2.7rem #c783f95b; }
.core::after { content: ""; position: absolute; inset: 18%; border: 1px solid #e8c5ff59; border-radius: .3rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 2rem; font-size: .92rem; color: var(--muted); }

.developer-page { min-height: 100vh; background: radial-gradient(ellipse at 50% 35%, #211431, var(--base) 71%); }
.login-shell { width: min(calc(100% - 2rem), 30rem); margin: clamp(2.5rem, 9vh, 6rem) auto; }
.login-panel { padding: clamp(1.4rem, 5vw, 2.4rem); background: #140e20; border: 1px solid #493261; border-radius: .9rem; }
.login-panel h1 { font-size: clamp(1.8rem, 5.6vw, 2.65rem); margin-top: 1.4rem; }
.back { display: inline-flex; gap: .6rem; align-items: center; font-size: .96rem; color: var(--violet); }
.login-panel fieldset { display: grid; gap: .55rem; padding: 0; margin: 1.5rem 0 0; border: 0; min-width: 0; }
.login-panel label { font-size: 1rem; font-weight: 650; }
.login-panel input { width: 100%; background: #0f0b16; border: 1px solid #443353; border-radius: .5rem; min-height: 2.7rem; padding: .55rem .7rem; margin-bottom: .55rem; opacity: .85; color: var(--muted); }
.login-panel button:disabled { opacity: .5; cursor: not-allowed; justify-self: start; margin-top: .4rem; }

@media (max-width: 870px) {
  .bar { flex-wrap: wrap; }
  .nav-links {
    order: 1; flex: 1 0 100%; flex-wrap: wrap; justify-content: center;
    gap: .35rem 1.35rem; padding: .35rem 0 .7rem; border-top: 1px solid #231b2e;
  }
  .nav-links a { padding: .35rem .22rem; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 1.75rem); }
  .bar { min-height: 4.2rem; flex-wrap: wrap; padding-block: .6rem; gap: .45rem; }
  .brand { font-size: .9rem; gap: .4rem; }
  .actions { gap: .3rem; }
  .developer-link { min-height: 2rem; padding: .4rem; font-size: .84rem; gap: .22rem; }
  .languages button { padding-inline: .27rem; }
  .hero-scene { background-position: center, center 70%, center; }
  .hero h1 { font-size: clamp(2.55rem, 8.7vw, 4rem); letter-spacing: -.065em; }
  .studio-grid, .project { grid-template-columns: 1fr; }
  .studio-card { min-height: auto; }
  .project-art { min-height: 13rem; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
