:root {
  --ink: #121316;
  --coal: #1c1e23;
  --steel: #2b2e35;
  --line: #3a3e47;
  --red: #d71a1a;
  --hot: #ff3b3b;
  --silver: #c9cbcf;
  --mist: #8f939b;
  --white: #ffffff;
  --display: "barlow-condensed", "Arial Narrow", Impact, sans-serif;
  --body: "source-sans-3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  color: var(--white);
  font: 17px/1.55 var(--body);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 4px;
}
.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 50;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.skip-link:focus-visible {
  outline-color: #ffffff;
}

/* Type */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  color: var(--silver);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 12px;
  margin-right: 12px;
  background: var(--red);
  transform: skewX(-18deg);
  vertical-align: -1px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 64px;
  width: auto;
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-link {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 20px;
  color: var(--silver);
  text-decoration: none;
  padding: 10px 14px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0) skewX(-18deg);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1) skewX(-18deg);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 46%;
  height: 140%;
  background: var(--red);
  transform: skewX(-14deg);
}
.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: 33%;
  width: 22px;
  height: 140%;
  background: var(--silver);
  transform: skewX(-14deg);
  opacity: 0.9;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
}
.hero-heading {
  font-size: clamp(56px, 8.4vw, 124px);
  margin: 0 0 24px;
  color: var(--white);
}
.hero-heading .accent {
  color: var(--red);
}
.hero-text {
  font-size: 20px;
  max-width: 34em;
  color: var(--silver);
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-logo {
  width: min(100%, 520px);
  margin-left: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
picture {
  display: contents;
}
.stats {
  display: flex;
  gap: 36px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 18px;
  color: var(--silver);
}
.stats strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 19px;
  line-height: 1;
  padding: 13px 20px 12px;
  text-decoration: none;
  border: 2px solid var(--silver);
  color: var(--white);
  background: transparent;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--silver);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}
.btn-primary:focus-visible,
.btn-store.btn-apple:focus-visible {
  box-shadow: inset 0 0 0 3px var(--white);
}
.btn-primary,
.btn-store.btn-apple {
  background: var(--red);
  border-color: var(--red);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--white);
}
.btn-store.btn-apple:hover,
.btn-store.btn-apple:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

@media (forced-colors: active) {
  .btn:focus-visible,
  .btn-primary:focus-visible,
  .btn-store.btn-apple:focus-visible {
    outline: 3px solid CanvasText;
    outline-offset: -3px;
  }
}

/* Sections */
.section {
  padding: 84px 0;
}
#apps,
#websites,
#contact {
  scroll-margin-top: 100px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-title {
  font-size: clamp(44px, 6vw, 84px);
  margin: 0;
}
.section-note {
  margin: 0;
  color: var(--mist);
  max-width: 28em;
  font-size: 17px;
}

/* App tiles */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--coal);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform 0.25s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--steel);
}
.card:hover::before,
.card:focus-within::before {
  transform: translateX(0);
}
.app-card {
  padding: 26px 26px 24px;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
}
.app-icon {
  grid-row: 1 / span 3;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}
.card-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 0.95;
  margin: 2px 0 8px;
}
.card-description {
  grid-column: 2;
  margin: 0 0 18px;
  color: var(--silver);
  font-size: 16px;
}
.card-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}
.card-links .btn {
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 9px 12px 8px;
  white-space: nowrap;
}
.platform {
  grid-column: 2;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--mist);
  margin: 0 0 6px;
}

/* Websites */
.websites-section {
  position: relative;
  background: var(--coal);
  clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 100%);
  padding-top: 130px;
}
.websites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.website-card {
  padding: 26px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.website-card .card-title {
  font-size: 28px;
}
.website-card .card-description {
  flex: 1;
}
.link-arrow {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 17px;
  overflow-wrap: anywhere;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.link-arrow::after {
  content: "\2192";
  color: var(--red);
  transition: transform 0.15s ease;
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(6px);
}

/* Contact */
.contact-section {
  background: var(--coal);
  padding-top: 40px;
}
.contact-inner {
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.contact-line {
  font-size: 19px;
  color: var(--silver);
  margin: 0 0 10px;
}
.contact-email {
  margin: 0;
}
.email-link {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  border-bottom: 6px solid var(--red);
  word-break: break-all;
}
.email-link:hover,
.email-link:focus-visible {
  color: var(--hot);
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--mist);
  font-size: 15px;
}
.footer-container p {
  margin: 0;
}
.footer-email-link {
  color: var(--silver);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-heading,
  .hero-text,
  .hero-actions,
  .stats {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-text {
    animation-delay: 0.08s;
  }
  .hero-actions {
    animation-delay: 0.16s;
  }
  .stats {
    animation-delay: 0.24s;
  }
  .hero-logo {
    animation: charge 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: 0.1s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes charge {
  from {
    opacity: 0;
    transform: translateX(40px) skewX(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .apps-grid,
  .websites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .websites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    width: min(100%, 380px);
    margin: 8px auto 0;
  }
  .hero-section::before {
    width: 60%;
    right: -25%;
  }
  .hero-section::after {
    right: 40%;
  }
}
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .header-container {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }
  .logo-img {
    height: 52px;
  }
  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    margin-left: -14px;
  }
  .nav-link {
    font-size: 17px;
    padding: 6px 14px;
  }
  .hero-section {
    padding: 44px 0 40px;
  }
  .hero-section::before {
    top: auto;
    bottom: -10%;
    height: 70%;
    width: 90%;
    right: -35%;
  }
  .hero-section::after {
    display: none;
  }
  .stats {
    background: var(--ink);
    padding: 14px 18px;
    margin-top: 32px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 22px;
    max-width: 100%;
  }
  .stats strong {
    font-size: 36px;
  }
  .section {
    padding: 56px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .apps-grid,
  .websites-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    grid-template-columns: 72px 1fr;
    padding: 20px;
  }
  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  .websites-section {
    clip-path: polygon(0 0, 100% 28px, 100% 100%, 0 100%);
    padding-top: 84px;
  }
  #apps,
  #websites,
  #contact {
    scroll-margin-top: 156px;
  }
}
