:root {
  --cube-white: #ffffff;
  --cube-yellow: #ffd500;
  --cube-red: #c41e3a;
  --cube-orange: #ff5800;
  --cube-blue: #0051ba;
  --cube-green: #009e60;

  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --border: #e3e3de;
  --accent: var(--cube-blue);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1c1c20;
    --text: #f2f2f2;
    --muted: #a0a0a8;
    --border: #2e2e34;
    --accent: #4d8dff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% -10%, rgb(255 213 0 / 0.18), transparent 40%),
    radial-gradient(circle at 100% 0%, rgb(0 81 186 / 0.14), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

.top, main, .bottom {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.top { padding-top: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo { display: inline-flex; gap: 4px; }
.logo i { width: 14px; height: 14px; border-radius: 4px; }
.logo i:nth-child(1) { background: var(--cube-red); }
.logo i:nth-child(2) { background: var(--cube-yellow); }
.logo i:nth-child(3) { background: var(--cube-green); }

main { flex: 1; }

.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(28px, 6vw, 56px); }

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.38em;
  border-radius: 0.2em;
  z-index: -1;
  opacity: 0.85;
}
.hl-yellow::after { background: var(--cube-yellow); }
.hl-blue::after { background: #7fb0ff; }
@media (prefers-color-scheme: dark) {
  .hl-yellow::after { background: #8a7300; }
  .hl-blue::after { background: #1f4f99; }
}

.lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.card-live {
  box-shadow: var(--shadow);
  border-top: 6px solid var(--cube-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-live:hover,
.card-live:focus-visible {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 16px 36px rgb(0 0 0 / 0.12);
}
.card-live:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.card-soon {
  border-style: dashed;
  border-width: 2px;
  background: transparent;
  color: var(--muted);
}

.mini-cube {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 3px;
  padding: 5px;
  width: max-content;
  border-radius: 8px;
  background: #1c1c1e;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}
.mini-cube i { width: 18px; height: 18px; border-radius: 4px; }
.card-live:hover .mini-cube,
.card-live:focus-visible .mini-cube { transform: rotate(90deg); }
.mini-cube .w { background: var(--cube-white); }
.mini-cube .y { background: var(--cube-yellow); }
.mini-cube .r { background: var(--cube-red); }
.mini-cube .o { background: var(--cube-orange); }
.mini-cube .b { background: var(--cube-blue); }
.mini-cube .g { background: var(--cube-green); }

.mystery {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 2px dashed var(--border);
  font-size: 2rem;
  font-weight: 800;
}

.tag {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgb(0 158 96 / 0.12);
  color: #007a4a;
}
@media (prefers-color-scheme: dark) {
  .tag { background: rgb(0 158 96 / 0.2); color: #4fd49b; }
}
.tag-soon { background: var(--border); color: var(--muted); }

.card-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.card-soon .card-title { color: var(--text); opacity: 0.7; }
.card-text { flex: 1; }

.cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .cta { color: #0b0b0d; }
}

.bottom {
  padding-top: 48px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.bottom p { margin: 0; border-top: 1px solid var(--border); padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .card-live, .mini-cube { transition: none; }
  .card-live:hover, .card-live:focus-visible { transform: none; }
  .card-live:hover .mini-cube, .card-live:focus-visible .mini-cube { transform: none; }
}
