:root {
  --bg: #07090c;
  --surface: #0e1218;
  --surface-2: #141a22;
  --line: #242d38;
  --text: #f4f7fa;
  --muted: #9ca9b7;
  --soft: #c8d0d8;
  --eitty: #e34f55;
  --vio: #46dff4;
  --gpt: #4fc1ff;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(227,79,85,.12), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(79,193,255,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #7fdcff;
  outline-offset: 3px;
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(227,79,85,.19), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.brand-mark::before {
  content: "∞";
  color: #ff7378;
  font-size: 23px;
  line-height: 1;
  transform: rotate(-8deg);
}

.brand small { color: var(--muted); font-weight: 620; letter-spacing: .02em; }

.top-link {
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s ease;
}
.top-link:hover, .top-link:focus-visible { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

.language-switch a,
.language-switch .lang-current {
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
}

.language-switch a {
  color: var(--muted);
  transition: color .16s ease, background .16s ease;
}
.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.language-switch .lang-current {
  color: #080a0d;
  background: var(--text);
}

.hero { padding: 82px 0 72px; max-width: 850px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #ff777d;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .77rem;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 8vw, 6.7rem); max-width: 980px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.55rem; }
.lead {
  margin: 26px 0 0;
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  padding-bottom: 110px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% 35%;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}
.project-card.vio::after { background: #2de8ff; }
.project-card.gpt::after { background: #4fc1ff; }

.project-logo-wrap {
  min-height: 132px;
  display: flex;
  align-items: center;
  margin: -6px -5px 20px;
}
.project-logo { width: 100%; max-height: 126px; object-fit: contain; object-position: left center; }
.card-kicker { color: var(--muted); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.card-copy { color: var(--soft); margin: 16px 0 26px; max-width: 48ch; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  font-size: .93rem;
  background: rgba(255,255,255,.035);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); border-color: #4d5b6b; background: rgba(255,255,255,.07); }
.button.primary { background: var(--text); color: #080a0d; border-color: var(--text); }
.button.primary:hover, .button.primary:focus-visible { background: #dfe5ea; border-color: #dfe5ea; }

.page-hero { padding: 42px 0 55px; }
.project-brand-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  margin-bottom: 38px;
}
.project-brand-panel img { width: min(760px, 100%); max-height: 190px; object-fit: contain; object-position: left center; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 48px;
  padding-bottom: 92px;
}
.prose p { color: var(--soft); font-size: 1.04rem; margin: 0 0 18px; }
.prose h2 { margin: 46px 0 18px; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.prose h2:first-child { margin-top: 0; }

.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  color: var(--soft);
  align-items: start;
}
.feature-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #65798c; margin-top: .58em; }
.vio-page .feature-list li::before { background: var(--vio); box-shadow: 0 0 14px rgba(70,223,244,.55); }
.gpt-page .feature-list li::before { background: var(--gpt); box-shadow: 0 0 14px rgba(79,193,255,.55); }

.sidebar { display: grid; align-content: start; gap: 16px; }
.meta-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
}
.meta-label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.meta-value { margin-top: 7px; color: var(--text); font-weight: 700; }
.meta-card .button { width: 100%; margin-top: 18px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 690; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .86rem;
}
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--text); }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { padding: 22px 0; }
  .brand small { display: none; }
  .site-header { align-items: flex-start; }
  .header-actions { gap: 9px; }
  .top-link { font-size: .84rem; }
  .hero { padding: 54px 0 44px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 72px; }
  .project-card { min-height: 390px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 64px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .header-actions { flex-direction: column-reverse; align-items: flex-end; }
  .language-switch a,
  .language-switch .lang-current { min-width: 34px; height: 28px; padding: 0 8px; }
}
