/* Appliso — modern static site */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --muted: #8a8a8a;
  --muted-dark: #5c5c5c;
  --red: #ff0000;
  --red-deep: #c40000;
  --border: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #2a2a2a;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout */

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-muted {
  background: var(--off-white);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-dark .section-label {
  color: #ff6b6b;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted-dark);
  max-width: 38rem;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.theme-light {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.site-header .nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 1.75rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--black);
  padding: 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 0, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 0, 0, 0.08), transparent 50%),
    linear-gradient(165deg, #0a0a0a 0%, #151515 45%, #0a0a0a 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand span {
  color: var(--red);
}

.hero h1 {
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero .lead {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero (inner pages) */

.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 90% 0%,
    rgba(255, 0, 0, 0.18),
    transparent 55%
  );
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.7);
}

/* Services grid — editorial, not cards */

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-dark);
  margin-top: 2.5rem;
}

.section-dark .service-list {
  border-top-color: var(--border);
}

.service-item {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s var(--ease);
}

.section-dark .service-item {
  border-bottom-color: var(--border);
}

.service-item:hover {
  color: inherit;
  padding-left: 0.5rem;
}

.service-item:hover .service-title {
  color: var(--red);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  transition: color 0.25s;
}

.service-desc {
  margin: 0;
  color: var(--muted-dark);
  max-width: 36rem;
}

.section-dark .service-desc {
  color: rgba(255, 255, 255, 0.65);
}

.service-arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 0.5rem;
}

@media (min-width: 700px) {
  .service-item {
    grid-template-columns: 3.5rem 1fr auto;
    align-items: start;
    gap: 1.5rem;
  }

  .service-arrow {
    margin-top: 0.35rem;
    align-self: center;
  }
}

/* Process */

.process {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.process-step {
  position: relative;
}

.process-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.process-step span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.process-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-dark);
}

/* About / content blocks */

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.values {
  display: grid;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 500px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
}

.values li {
  font-weight: 500;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}

.founders {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .founders {
    grid-template-columns: 1fr 1fr;
  }
}

.founder h3 {
  margin-bottom: 0.25rem;
}

.founder .role {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.founder p {
  color: var(--muted-dark);
  margin: 0;
}

/* CTA band */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band .lead {
  margin-inline: auto;
}

.cta-band .btn-group {
  justify-content: center;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.contact-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.35rem;
}

.contact-meta dt:first-child {
  margin-top: 0;
}

.contact-meta dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-meta a:hover {
  color: var(--red);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid #d8d8d8;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--black);
  outline: none;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-top: 0.75rem;
}

/* Service detail */

.detail-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-block h3 {
  margin-bottom: 0.75rem;
}

.detail-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted-dark);
}

.detail-block li {
  margin-bottom: 0.4rem;
}

.process-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.35rem;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.process-inline span {
  color: var(--muted);
  font-weight: 400;
  margin: 0 0.15rem;
}

/* Footer */

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .logo img {
  height: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer p {
  max-width: 22rem;
  margin: 0;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prose for privacy */

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--muted-dark);
}

.prose ul {
  padding-left: 1.2rem;
}
