/*
 * Author: Carlos Enrique Ortiz
 * Date: 2026-10-31
 * Copyright (c) 2026 Carlos Enrique Ortiz
 * Website: https://hyperkode.com
 */

:root {
  color-scheme: dark;
  --ink: #f1f3fa;
  --muted: #a7adbf;
  --line: #ffffff15;
  --cyan: #60dae7;
  --violet: #b399fa;
  --green: #7ed9ae;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090c18;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 78% 10%, #6246b329, transparent 46%),
    radial-gradient(ellipse at 14% 78%, #167d9130, transparent 48%),
    radial-gradient(ellipse at 64% 70%, #70458b16, transparent 42%);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
main {
  width: min(1080px, calc(100% - 64px));
  margin: 56px auto 46px;
}
.shell {
  position: relative;
  isolation: isolate;
  padding: 48px 48px 24px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: linear-gradient(125deg, #ffffff09, #ffffff04);
  box-shadow:
    0 30px 100px #0004,
    inset 0 1px #ffffff09;
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.shell:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 8%, #5fc7d016, transparent 38%),
    radial-gradient(ellipse at 86% 34%, #a16ddd15, transparent 44%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
h1 {
  font-size: 48px;
  letter-spacing: -2.2px;
  line-height: 1.1;
  margin: 0;
  font-weight: 720;
  background: linear-gradient(100deg, #9b79f0 3%, #53cce7 55%, #65e4b2);
  background-clip: text;
  color: transparent;
}
.intro {
  text-wrap: balance;
  max-width: 650px;
  margin: 25px 0 37px;
  color: #c0c5d4;
  font-size: 17px;
  line-height: 1.8;
}
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 27px;
  margin-bottom: 17px;
}
.small-note {
  color: #81899f;
  font-size: 12px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.project {
  text-align: left;
  cursor: pointer;
  border: 1px solid #ffffff14;
  border-radius: 15px;
  background: #ffffff03;
  padding: 23px 21px 19px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.project:hover {
  background: #ffffff08;
  transform: translateY(-3px);
}
.project[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--accent), transparent 92%),
    #ffffff02
  );
}
.project .icon {
  width: 37px;
  height: 37px;
  color: var(--accent);
  margin-bottom: 21px;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project h2 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.project p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}
.project-bottom {
  margin-top: auto;
  gap: 12px;
  min-height: 3em;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #8f97ac;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.arrow {
  font-size: 18px;
  color: var(--accent);
}
.detail {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 38px;
  align-items: center;
  padding: 30px;
  border: 1px solid #ffffff12;
  background: #080b1533;
  border-radius: 15px;
  min-height: 275px;
}
.detail h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.detail p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.8;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.tags span {
  font-size: 10px;
  color: #a8b1c5;
  border: 1px solid #ffffff12;
  padding: 3px 9px;
  border-radius: 30px;
}
.preview {
  border: 1px solid #ffffff16;
  border-radius: 12px;
  background: #0a1020;
  padding: 18px;
  box-shadow: 0 10px 28px #0002;
  min-height: 188px;
}
.preview-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #68788e;
  margin-bottom: 18px;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #c3cddd;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}
.care-row {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  border-bottom: 1px solid #ffffff08;
  padding-bottom: 8px;
  font-size: 10px;
  color: #8f9db3;
}
.care-row b {
  font-weight: 450;
  color: #8acbb4;
}
.care-row:last-child b {
  color: #d5b77b;
}
.demo-note {
  margin-top: 10px;
  font-size: 9px;
  color: #69778c;
}
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 35px;
  gap: 18px;
}
.chat-lines {
  display: grid;
  gap: 8px;
}
.chat-lines i {
  height: 4px;
  border-radius: 4px;
  background: #ffffff14;
  display: block;
}
.chat-lines .bubble {
  margin: 4px 0 6px 30%;
  background: #b399fa1c;
  border: 1px solid #b399fa25;
  border-radius: 8px;
  padding: 10px;
}
.mini-map {
  border-left: 1px solid #ffffff12;
  padding-left: 9px;
  display: grid;
  gap: 5px;
  align-content: start;
}
.mini-map i {
  height: 5px;
  background: #8b77bf44;
  border-radius: 2px;
}
.mini-map .active {
  background: #b399fa;
  box-shadow: 0 0 12px #b399fa55;
}
.weather {
  display: flex;
  align-items: center;
  gap: 22px;
}
.temp {
  font-size: 52px;
  letter-spacing: -3px;
  line-height: 1.1;
  font-weight: 300;
}
.conditions {
  font-size: 11px;
  color: #9facc1;
}
.sun {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e1c58c;
  box-shadow: 0 0 35px #e1c58c26;
  position: relative;
}
.weather-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 10px;
  color: #9daac0;
}
.weather-stats b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #e4e8ef;
  margin-top: 3px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 31px;
  padding-top: 20px;
  font-size: 11px;
  color: #81899e;
}
.outside {
  text-align: center;
  color: #596277;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 19px;
}
dialog {
  color: var(--ink);
  border: 1px solid #ffffff29;
  background: #151a2a;
  border-radius: 20px;
  max-width: 550px;
  width: calc(100% - 40px);
  padding: 32px;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #030710bb;
  backdrop-filter: blur(10px);
}
dialog h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-top: 0;
}
dialog p {
  font-size: 14px;
  color: #b1bacd;
}
dialog .close {
  float: right;
  background: transparent;
  border: 0;
  color: #aab2c3;
  cursor: pointer;
  font-size: 22px;
  padding: 0 0 12px 15px;
}
a {
  color: var(--cyan);
}
[hidden] {
  display: none !important;
}
@media (max-width: 750px) {
  main {
    width: calc(100% - 32px);
    margin: 32px auto;
  }
  .shell {
    padding: 30px 23px 20px;
  }
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .project {
    min-width: 0;
    min-height: 106px;
    padding: 14px 8px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border-radius: 12px;
  }
  .project .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
  }
  .project h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: -0.2px;
  }
  .project p,
  .project-bottom {
    display: none;
  }
  .project:hover {
    transform: none;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 23px;
  }
  .intro {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .small-note {
    font-size: 10px;
  }
  h1 {
    font-size: 38px;
  }
  .brand {
    gap: 15px;
  }
  .brand h1 {
    font-size: clamp(28px, 8.5vw, 38px);
  }
  .project-bottom {
    margin-top: 8px;
  }
  .detail h3 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.writing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.writing h2 {
  font-size: 17px;
  margin: 5px 0 3px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.writing p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.text-link {
  display: inline-block;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cyan);
}
.text-link:hover {
  text-decoration: underline;
}
.project-link {
  margin-top: 17px;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 17px;
}
.project-actions .project-link {
  margin-top: 0;
}
.writing .section-label {
  font-size: 10px;
}
@media (max-width: 750px) {
  .writing {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}
.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 36px #84a3f21a;
}
@media (max-width: 750px) {
  .brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 9px;
  }
}
/* Clickable logo and enlarged view. */
.logo-button {
  display: block;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}
.logo-button .brand-logo {
  display: block;
}
#logo-dialog {
  width: min(90vw, 85vh, 900px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  background: #090c18;
}
#logo-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
}
#logo-dialog .logo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: #090c18dd;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

[data-project="care"] {
  --accent: var(--green);
}

[data-project="minimap"] {
  --accent: var(--violet);
}

[data-project="pws"] {
  --accent: var(--cyan);
}

.line-65 {
  width: 65%;
}

.line-90 {
  width: 90%;
}

.line-87 {
  width: 87%;
}

.line-94 {
  width: 94%;
}

.line-76 {
  width: 76%;
}

.line-70 {
  width: 70%;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 750px) {
  .footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Shared footer treatment for links and dialog buttons. */
.footer-link {
  display: inline-block;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #aab2c3;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Support and privacy pages. */
.support-home {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.support-home .brand-logo {
  width: 54px;
  height: 54px;
}
.support-page .intro {
  margin: 18px 0 24px;
}
.support-nav {
  margin-bottom: 32px;
}
.support-project {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  scroll-margin-top: 24px;
  overflow-wrap: anywhere;
}
.support-project:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 8px;
}
.support-project h2 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 10px 0 14px;
}
.support-project h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 28px 0 10px;
}
.support-project p,
.support-project ul {
  color: #c0c5d4;
  margin: 0 0 14px;
}
.support-project ul {
  padding-left: 22px;
}
.support-project li + li {
  margin-top: 8px;
}
.support-project a,
.support-nav a {
  text-underline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  background: #151a2a;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Long-form policy content shares the support page's branding. */
.privacy-policy {
  overflow-wrap: anywhere;
}
.privacy-policy h1 {
  font-size: clamp(32px, 7vw, 48px);
}
.privacy-policy h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  scroll-margin-top: 24px;
}
.privacy-policy h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  line-height: 1.4;
}
.privacy-policy p,
.privacy-policy ul {
  color: #c0c5d4;
}
.privacy-policy ul {
  padding-left: 22px;
}
.privacy-policy li + li {
  margin-top: 8px;
}
.privacy-policy a {
  text-underline-offset: 4px;
}
.privacy-policy .meta {
  color: var(--muted);
  font-size: 13px;
}
.privacy-policy .card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  background: #080b1533;
}

/* Project screenshots use the same page width on desktop and mobile. */
.project-screenshot {
  margin: 24px 0 32px;
}
.project-screenshot a {
  display: block;
  border-radius: 12px;
}
.project-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ffffff20;
  border-radius: 12px;
}
.project-screenshot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.project-screenshot--mobile {
  max-width: 390px;
  margin-inline: auto;
}

.architecture-diagram {
  margin: 24px 0 32px;
}
.architecture-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080b1533;
}
.architecture-scroll:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
.architecture-scroll img {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}
.architecture-diagram figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
