/* Aceves company website. Self-hosted fonts only; no external resources. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #121413;
  --bg-raised: #171a19;
  --panel: #1b1e1d;
  --panel-strong: #212524;
  --line: #2c3130;
  --line-strong: #3a403e;
  --text: #eef2f1;
  --muted: #a6b0ad;
  --teal: #2dd4bf;
  --teal-strong: #14b8a6;
  --teal-ink: #04201c;
  --teal-wash: rgb(45 212 191 / 0.1);
  --focus: #5eead4;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-small: 8px;
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--focus);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--teal-strong);
  color: var(--teal-ink);
  font-weight: 600;
  border-radius: var(--radius-small);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1.5rem;
  min-height: 3.75rem;
  padding-block: 0.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-small);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: inset 0 -2px 0 var(--teal);
}

/* Shared building blocks */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-wash);
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgb(45 212 191 / 0.45);
  border-radius: 6px;
  background: var(--teal-wash);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--beta {
  border-color: rgb(245 184 75 / 0.5);
  background: rgb(245 184 75 / 0.1);
  color: #f5c46b;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section + .section {
  padding-top: 0;
}

.section__head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

.section__head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
}

/* Product portfolio */

.product {
  --accent: var(--teal);
  position: relative;
  overflow: hidden;
}

/* A wash of the product's accent fades down from the top of the card. */
.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 17%, transparent), transparent);
  pointer-events: none;
}

.product > * {
  position: relative;
}

/* App accents match each app's Aceves Bar colour; TokenGate's comes from its logo. */
.product--latest { --accent: #baff25; }
.product--visa { --accent: #ff8a1f; }
.product--pano { --accent: #ef4c7c; }
.product--lazy { --accent: #cfc3ff; }
.product--movieshare { --accent: #f4b942; }
.product--tokengate { --accent: #8f76f0; }
.product--beta { --accent: #f5c46b; }

.product .product__head h3 {
  font-size: 1.3rem;
}

.product__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product__id {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

/* Product icons. Rounded here, not in the artwork; drop-shadow follows the
   image's own alpha shape, so icons with transparent corners stay clean. */
.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.4));
}

/* Stand-in for a product without a logo (Support). Decorative. */
.app-icon--letter {
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  filter: none;
}

.product__term {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card p.product__status {
  color: var(--text);
  font-size: 0.92rem;
}

.products {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.product__links {
  display: grid;
  margin: auto 0 0;
  padding: 0.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.product__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .products--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Homepage hero */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 15% -10%, rgb(20 184 166 / 0.12), transparent 60%),
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.6rem);
  font-weight: 650;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
}

.hero__lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

/* Product icon cluster beside the introduction. */

.cluster {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cluster a {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.cluster a:hover {
  color: var(--text);
}

.cluster .app-icon {
  --glow: var(--teal);
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 16px 30px color-mix(in srgb, var(--glow) 32%, transparent));
  transition: transform 0.15s ease;
}

.cluster a:hover .app-icon {
  transform: translateY(-3px);
}

/* Glows follow each icon's own artwork, not the Aceves Bar colours. */
.cluster__item--latest .app-icon { --glow: #baff25; }
.cluster__item--visa .app-icon { --glow: #ff8a1f; }
.cluster__item--pano .app-icon { --glow: #4a5cff; }
.cluster__item--lazy .app-icon { --glow: #ff8a1f; }
.cluster__item--movieshare .app-icon { --glow: #f4b942; }
.cluster__item--tokengate .app-icon { --glow: #8f76f0; }

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .cluster {
    justify-content: center;
    gap: 1.75rem 2rem;
    padding-bottom: 2rem;
  }

  .cluster li:nth-child(3n + 2) {
    transform: translateY(2rem);
  }

  .cluster .app-icon {
    width: 104px;
    height: 104px;
  }
}

/* One-line privacy summary */

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 0.75rem 1.5rem;
}

.strip h2 {
  font-weight: 500;
  letter-spacing: 0.1em;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0 auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.strip li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}

/* Inner pages */

.page-head {
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-head .wrap {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 650;
}

.page-head p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.details {
  display: grid;
  gap: 1rem;
}

.details__section {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.details__section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.details dl {
  display: grid;
  margin: 0;
}

.details dl > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .details dl > div {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
}

.details dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.details dd {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.details .value {
  font-size: 1.05rem;
  font-weight: 500;
}

.details .mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.details .note {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  display: grid;
  gap: 2.25rem;
  max-width: 46rem;
}

.prose section {
  display: grid;
  gap: 0.75rem;
}

.prose h2 {
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: #cfd6d4;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.updated {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.site-footer__id {
  display: grid;
  gap: 0.25rem;
}

.site-footer__id strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer .mono {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

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

  .cluster a:hover .app-icon {
    transform: none;
  }
}

/* Contact */

.contact {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

.contact-form,
.contact-sent {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form h2,
.contact-sent h2,
.contact-aside h2 {
  font-size: 1.25rem;
}

.contact-aside {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.contact-aside h2 {
  color: var(--text);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
}

.field__note {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 12rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--focus);
}

.field [aria-invalid="true"] {
  border-color: #ff9b8a;
}

.field__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.field__error {
  color: #ffb4a8;
  font-size: 0.95rem;
}

/* The honeypot stays in the DOM for bots but out of view and the tab order. */
.field--trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form__check {
  min-height: 65px;
}

.contact-form__actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

button.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--teal);
  color: var(--teal-ink);
  font: inherit;
  font-family: var(--mono);
  font-weight: 650;
  cursor: pointer;
}

button.button:hover {
  background: var(--focus);
}

button.button:disabled {
  background: var(--panel-strong);
  color: var(--muted);
  cursor: not-allowed;
}

.contact__main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.contact-form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--panel);
}

.contact-form__status[data-tone="error"] {
  border-color: #ff9b8a;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status[data-tone="error"] {
  color: #ffb4a8;
}

[hidden] {
  display: none !important;
}
