:root {
  --bg: #f5f7fb;
  --ink: #111318;
  --muted: #68707f;
  --line: #dfe5ee;
  --panel: #ffffff;
  --accent: #0f8f7e;
  --accent-strong: #00695f;
  --sun: #ffbd2e;
  --rose: #ff4f7a;
  --blue: #1a73e8;
  --violet: #8b5cf6;
  --shadow: 0 30px 80px rgba(17, 19, 24, 0.14);
}

body.dark {
  --bg: #0f1218;
  --ink: #f6f8fb;
  --muted: #a8b0bf;
  --line: #263142;
  --panel: #171c25;
  --accent: #4fd1bf;
  --accent-strong: #7ce8dc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 189, 46, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(26, 115, 232, 0.16), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 58%, #eef4f7 100%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.dark {
  background:
    linear-gradient(135deg, rgba(79, 209, 191, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.18), transparent 35%),
    linear-gradient(180deg, #151923 0%, var(--bg) 60%, #10151f 100%),
    var(--bg);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(27, 29, 34, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 40px rgba(27, 29, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.card-topline,
.footer,
.header-actions,
.profile-button,
.modal-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), #324053);
  color: white;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(22, 116, 107, 0.1);
  color: var(--accent-strong);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.profile-button,
.modal-close {
  border: 1px solid rgba(17, 19, 24, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

body.dark .icon-button,
body.dark .profile-button,
body.dark .modal-close,
body.dark .topbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 28, 37, 0.74);
}

.icon-button {
  display: grid;
  min-width: 58px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  padding: 0 13px;
}

.theme-icon {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.profile-button {
  gap: 9px;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  font-weight: 800;
}

.profile-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--blue));
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.profile-avatar.large {
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 42px;
  min-height: calc(100vh - 112px);
  align-items: center;
  padding: 62px 0 44px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 8vw, 7.25rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--ink), #2d3442);
  color: white;
  box-shadow: 0 18px 36px rgba(17, 19, 24, 0.22);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
}

body.dark .button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.showcase-device {
  overflow: hidden;
  align-self: center;
  min-height: 560px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 238, 248, 0.8)),
    #fff;
  box-shadow: var(--shadow);
}

body.dark .showcase-device,
body.dark .project-card,
body.dark .game-card,
body.dark .roadmap-item {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(23, 28, 37, 0.78);
}

.device-bar {
  display: flex;
  gap: 8px;
  padding: 8px 10px 16px;
}

.device-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ccd4df;
}

.device-bar span:nth-child(1) {
  background: #ff5f57;
}

.device-bar span:nth-child(2) {
  background: #ffbd2e;
}

.device-bar span:nth-child(3) {
  background: #28c840;
}

.device-screen {
  display: grid;
  gap: 16px;
  min-height: 500px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(17, 19, 24, 0.92), rgba(38, 49, 67, 0.9)),
    #111318;
  color: white;
}

.screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.screen-heading strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 143, 126, 0.22);
  color: #6ef0df;
  font-size: 0.78rem;
}

.screen-card {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 143, 126, 0.95), rgba(26, 115, 232, 0.88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.planner-preview {
  background: linear-gradient(135deg, rgba(255, 79, 122, 0.94), rgba(139, 92, 246, 0.9));
}

.screen-card span,
.screen-card strong {
  display: block;
}

.screen-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-card strong {
  margin-top: 28px;
  font-size: 1.65rem;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.screen-grid span {
  min-height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 80px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.project-card,
.game-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(27, 29, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(27, 29, 34, 0.08);
  backdrop-filter: blur(14px);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-topline {
  justify-content: space-between;
  gap: 12px;
}

.project-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.budget-icon {
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.planner-icon {
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.ready {
  background: rgba(244, 185, 66, 0.22);
  color: #765411;
}

.status.live {
  background: rgba(15, 143, 126, 0.12);
  color: var(--accent-strong);
}

.project-card h3,
.game-card h3 {
  margin: 26px 0 10px;
  font-size: 1.55rem;
}

.project-card p,
.game-card p {
  color: var(--muted);
  line-height: 1.6;
}

.project-card a {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.games-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.game-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(255, 79, 122, 0.2), transparent 38%);
}

.yolk-card {
  min-height: 330px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(255, 189, 46, 0.34), transparent 36%),
    linear-gradient(225deg, rgba(15, 143, 126, 0.22), transparent 44%);
}

body.dark .yolk-card {
  border-color: rgba(255, 189, 46, 0.22);
  background:
    linear-gradient(140deg, rgba(24, 29, 39, 0.96), rgba(16, 22, 31, 0.94)),
    linear-gradient(135deg, rgba(255, 189, 46, 0.18), transparent 38%),
    linear-gradient(225deg, rgba(79, 209, 191, 0.16), transparent 48%);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.game-type {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.dark .game-type {
  color: var(--sun);
}

.game-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

body.dark .game-card a {
  background: white;
  color: #10151f;
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(27, 29, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.roadmap-item span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #344052);
  color: white;
  font-weight: 900;
}

.roadmap-item.active,
.roadmap-item:hover {
  border-color: rgba(22, 116, 107, 0.32);
  background: white;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 19, 24, 0.44);
  backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
  display: none;
}

.profile-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  font-size: 1.3rem;
}

.modal-heading {
  gap: 14px;
  margin-bottom: 22px;
}

.modal-heading h2 {
  font-size: 1.75rem;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.profile-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(17, 19, 24, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

body.dark .profile-form input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.profile-form .button {
  width: 100%;
}

@media (max-width: 820px) {
  .topbar,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .project-grid,
  .game-shelf {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 8px;
  }
}

@media (max-width: 520px) {
  main,
  .topbar,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.8rem;
  }

  .project-card,
  .game-card,
  .device-screen {
    padding: 18px;
  }

  .showcase-device {
    min-height: auto;
  }
}
