
:root {
  --bg: #0f1518;
  --bg-soft: #151d22;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #eef4f6;
  --muted: #aab7bd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8bd3e6;
  --accent-2: #a83d42;
  --warning: #ffc145;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(139, 211, 230, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(155, 227, 109, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(15, 21, 24, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 28px rgba(172, 60, 66, 0.18);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}
.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); }

.hero { padding: 86px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 42px; align-items: top; }
.eyebrow { color: var(--accent); font-weight: 760; text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 14px 0 22px; font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: 0.9; letter-spacing: -0.075em; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); background: var(--panel-strong); border-color: rgba(139,211,230,.4); }
.button.primary { background: var(--accent); color: #071014; border-color: transparent; }
.clean-panel { margin-top: 0; }
.gallery-controls-only { justify-content: flex-end; margin-bottom: 14px; }
.store-button { gap: 10px; }
.store-icon { width: 22px; height: 22px; display: block; }

.button.ghost { color: var(--muted); }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255,255,255,0.035));
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-card .avatar {
  width: 86px; height: 86px; border-radius: 28px;
  background: #223038;
  border: 1px solid rgba(172,60,66,.28);
  object-fit: contain;
  padding: 4px;
}
.brand-avatar {
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.contact-card dl { margin: 28px 0 0; display: grid; gap: 16px; }
.contact-card dt { color: var(--muted); font-size: .82rem; }
.contact-card dd { margin: 3px 0 0; font-weight: 720; }

.section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.055em; }
.section-note { color: var(--muted); max-width: 560px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  padding: 24px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(139,211,230,.42); background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)); }
.project-top { display: flex; align-items: center; gap: 16px; }
.project-logo-circle { width: 74px; height: 74px; border-radius: 40px; object-fit: cover; background: #26343a; }
.project-logo { width: 74px; height: 74px; border-radius: 22px; object-fit: cover; background: #26343a; }
.project-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -0.035em; }
.project-card p { color: var(--muted); margin: 22px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 10px; border-radius: 999px; background: rgba(139,211,230,.10); color: #caedf6; font-size: .82rem; border: 1px solid rgba(139,211,230,.15); }
.card-link { margin-top: 26px; color: var(--accent); font-weight: 800; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.project-hero { padding: 58px 0 36px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--text); }
.project-hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; }
.project-big-logo {
  width: min(320px, 74vw);
  aspect-ratio: 1;
  border-radius: 60px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.project-big-logo-circle {
  width: min(320px, 74vw);
  aspect-ratio: 1;
  border-radius: 200px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.project-title { font-size: clamp(3.4rem, 8vw, 6.4rem); }
.project-main-section { padding-top: 34px; }
.project-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.video-section { padding-top: 12px; }
.text-panel, .video-panel, .gallery-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 28px;
}
.text-panel p { color: var(--muted); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #060b0d;
  border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-panel { padding: 18px; min-width: 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.gallery-controls { display: flex; gap: 8px; }
.icon-button {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
}
.screenshot-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px 18px;
}
.screenshot-strip::-webkit-scrollbar { height: 10px; }
.screenshot-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 999px; }
.screenshot {
  flex: 0 0 clamp(180px, 40vw, 300px);
  height: clamp(360px, 58vh, 620px);
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f171a;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  overflow: hidden;
  cursor: zoom-in;
}
.screenshot img {
  width: 100%;
  aspect-ratio: 9 / 18;
  height: auto;
  object-fit: fill;
  object-position: center;
  background: #0f171a;
  display: block;
}
.disclaimer { color: var(--muted); font-size: .92rem; margin-top: 18px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.82);
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; max-width: min(94vw, 720px); border-radius: 22px; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero-grid, .project-hero-grid, .project-main-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--max)); }
  .hero { padding-top: 56px; }
  .section { padding: 46px 0; }
  .header-inner { min-height: 64px; }
  .project-card, .contact-card, .text-panel, .video-panel, .gallery-panel { border-radius: 24px; padding: 20px; }
  .screenshot { flex-basis: min(68vw, 220px); }
}
