/* Uptick Technology, one-page site.
   Values come from the Figma mockup (desktop 1440). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #020808;
  --bg-alt: #051111;
  --card: #0a1616;
  --card-line: #1b2d2d;
  --media: #0f1e1e;

  --text: #f2f5f5;
  --muted: #9db0b0;
  --on-teal: #e3f0f0;

  --teal: #2f7878;
  --teal-hover: #388d8d;
  --teal-light: #5fb3b3;
  --gold: #c9a24c;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 107px;
  --section-pad: clamp(64px, 6.95vw, 100px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--teal-hover);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(47, 120, 120, 0.18);
}

.btn-light {
  padding: 18px 32px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
}

.btn-light:hover {
  background: #ffffff;
}

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

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.section-head h2 {
  max-width: 800px;
  font-size: clamp(32px, 3.06vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--card-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  position: relative;
  display: block;
  padding-block: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: normal;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta-mobile,
.nav-toggle {
  display: none;
}

.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 20px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(64px, 8.33vw, 120px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 4.72vw, 68px);
  font-weight: 700;
  line-height: 1.118;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 1.53vw, 22px);
  line-height: 1.545;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding-top: 24px;
}

.proof-points li,
.bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: normal;
}

.proof-points li {
  font-weight: 600;
}

.proof-points img,
.bullets img {
  flex: none;
  width: 8px;
  height: 8px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
}

.badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal);
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.service-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 25px;
}

/* ---------- Products ---------- */

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

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(28px, 3.05vw, 44px);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 20px;
}

.product-card--featured {
  border-color: var(--teal);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-gold { color: var(--gold); }
.tag-teal { color: var(--teal-light); }

.product-card h3 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.product-body {
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullets li {
  gap: 12px;
  align-items: flex-start;
  line-height: 1.2;
}

.bullets img {
  margin-top: 5.6px; /* centres the dot on the first line of text */
}

.product-actions {
  padding-top: 8px;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.work-media {
  display: grid;
  place-items: center;
  aspect-ratio: 342 / 200;
  overflow: hidden;
  background: var(--media);
  border: 1px dashed var(--teal-light);
  border-radius: 10px;
}

/* Once a real image is dropped in, the frame loses its placeholder styling. */
.work-media:has(img) {
  border: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-placeholder {
  color: var(--muted);
  font-size: 14px;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-text h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

.work-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: normal;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 3px solid var(--teal);
}

.step--first {
  border-top-color: var(--gold);
}

.step-num {
  margin-top: 1px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.step h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 23px;
}

/* ---------- Technologies ---------- */

.tech {
  padding-block: 72px;
  background: var(--bg-alt);
}

.tech .eyebrow {
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips li {
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(80px, 7.64vw, 110px);
  background: var(--teal);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.contact h2 {
  max-width: 900px;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.154;
  letter-spacing: -0.015em;
}

.contact p {
  color: var(--on-teal);
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.4;
}

/* ---------- Tablet ---------- */

@media (max-width: 1099px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .work-grid {
    gap: 16px;
  }

  .work-card {
    padding: 14px;
  }

  .work-text h3 {
    font-size: 18px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Header collapses to a menu button. */
@media (max-width: 959px) {
  :root {
    --header-h: 76px;
  }

  .brand {
    font-size: 24px;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
    flex: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--card-line);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding-block: 14px;
    border-bottom: 1px solid var(--card-line);
    font-size: 18px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.is-active {
    color: var(--gold);
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 699px) {
  :root {
    --header-h: 68px;
  }

  .brand {
    font-size: 21px;
  }

  .header-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 20px;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    padding: 28px 24px;
  }

  .work-card {
    padding: 20px;
  }

  .work-text h3 {
    font-size: 20px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .proof-points {
    flex-direction: column;
    padding-top: 8px;
  }

  .product-body {
    font-size: 17px;
    line-height: 26px;
  }

  .bullets li {
    white-space: normal;
  }

  .tech {
    padding-block: 56px;
  }

  .chips {
    gap: 10px;
  }

  .chips li {
    padding: 10px 18px;
    font-size: 15px;
  }
}
