/* Techpital — clean, grid-based studio site. One accent blue, navy ink, light surfaces.
   The only rich visual is the hero: two phones drawn in HTML/CSS (an app and a vertical video). */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1f57f5;
  --accent-hover: #1747d1;
  --accent-soft: #eef3ff;
  --navy: #0b1630;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 75rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgb(31 87 245 / 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(248 250 252 / 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 2rem; height: 2rem; }
.brand-mark > rect:first-child { fill: var(--accent); }
.brand-small { font-size: 1.0625rem; }
.brand-small .brand-mark { width: 1.625rem; height: 1.625rem; }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { background: #eef2f7; color: var(--ink); }
@media (max-width: 40rem) {
  .site-nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08), 0 10px 24px -10px rgb(31 87 245 / 0.6);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-strong); background: #f1f5f9; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 6rem;
  background:
    radial-gradient(55% 55% at 82% 18%, rgb(31 87 245 / 0.10), transparent 70%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(65% 60% at 72% 32%, #000 15%, transparent 75%);
  mask-image: radial-gradient(65% 60% at 72% 32%, #000 15%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(2.5rem, 4.4vw + 0.6rem, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  max-width: 44ch;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.platforms { margin-top: 3rem; }
.platforms p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
.platforms li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Hero devices: decorative, drawn at a fixed size and scaled down on small screens. */
.devices {
  position: relative;
  justify-self: center;
  width: 520px;
  height: 600px;
}
@media (max-width: 37.5rem) {
  .devices {
    justify-self: start;
    margin-left: 50%;
    margin-bottom: -216px;
    transform: translateX(-50%) scale(0.64);
    transform-origin: top center;
  }
}

.phone {
  position: absolute;
  padding: 10px;
  border-radius: 46px;
  background: #0b1220;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 40px 80px -32px rgb(15 23 42 / 0.5),
    0 18px 36px -20px rgb(15 23 42 / 0.35);
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
}

.phone-app {
  right: 0;
  top: 0;
  z-index: 2;
  width: 284px;
  height: 596px;
}
.phone-app .screen {
  padding: 0 18px;
  background: var(--bg);
  color: var(--ink);
}
.island {
  width: 92px;
  height: 26px;
  margin: 10px auto 0;
  border-radius: 20px;
  background: #0b1220;
}
.status {
  position: absolute;
  top: 13px;
  left: 30px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { width: 15px; height: 9px; border-radius: 2px; background: var(--ink); }
.status-icons i:first-child { width: 12px; }
.app-head { display: grid; margin-top: 22px; }
.app-hello { color: var(--muted); font-size: 12px; font-weight: 600; }
.app-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.app-goal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.app-goal strong { display: block; font-size: 14px; }
.app-goal span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ring {
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 72%, var(--line) 72% 100%);
}
.ring span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.app-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.app-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.dot { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.dot-a { background: #dbe6ff; }
.dot-b { background: #fde7d6; }
.dot-c { background: #dcfce7; }
.app-list span { display: grid; flex: 1; font-size: 13px; font-weight: 700; line-height: 1.35; }
.app-list small { color: var(--muted); font-size: 11px; font-weight: 600; }
.app-list em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.app-chart {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.chart-head span { color: var(--muted); font-weight: 600; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 32px;
  margin-top: 8px;
}
.bars i { flex: 1; border-radius: 4px; background: var(--accent-soft); }
.bars i:nth-child(1) { height: 45%; }
.bars i:nth-child(2) { height: 70%; }
.bars i:nth-child(3) { height: 55%; }
.bars i:nth-child(4) { height: 90%; background: var(--accent); }
.bars i:nth-child(5) { height: 65%; }
.bars i:nth-child(6) { height: 35%; }
.bars i:nth-child(7) { height: 50%; }
.app-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.app-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.app-tabs i.on { background: var(--accent); }

.phone-video {
  left: 0;
  top: 70px;
  z-index: 1;
  width: 236px;
  height: 496px;
  transform: rotate(-7deg);
}
.video-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgb(2 6 23 / 0.6)),
    radial-gradient(110% 60% at 30% 22%, rgb(254 240 138 / 0.9), transparent 50%),
    linear-gradient(165deg, #fb923c 0%, #f43f5e 48%, #6d28d9 100%);
}
/* Someone speaking to the camera. */
.video-scene::before,
.video-scene::after {
  content: "";
  position: absolute;
  background: rgb(15 23 42 / 0.55);
}
.video-scene::before {
  left: 36%;
  top: 30%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.video-scene::after {
  left: 14%;
  top: 52%;
  width: 72%;
  height: 60%;
  border-radius: 48% 48% 0 0;
}
.video-bars {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
}
.video-bars b { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.45); }
.video-bars b:first-child { background: #fff; }
.video-side {
  position: absolute;
  right: 12px;
  bottom: 104px;
  display: grid;
  gap: 16px;
}
.video-side svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
}
.video-caption {
  position: absolute;
  left: 16px;
  right: 54px;
  bottom: 22px;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
}
.video-caption strong { display: block; font-size: 14px; font-weight: 800; }
.video-caption span { font-size: 12px; font-weight: 600; }

/* Sections */
.section-head { max-width: 40rem; }
.section-head h2 {
  color: var(--ink);
  font-size: clamp(2rem, 2.2vw + 1.1rem, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.1875rem;
}

.services {
  padding-block: 7rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.service-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 54rem) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
.service {
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}
@media (max-width: 30rem) {
  .service { padding: 1.75rem; }
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--accent-soft);
}
.icon-tile svg,
.point svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.service > p {
  max-width: 48ch;
  margin-top: 0.75rem;
}
.checks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-weight: 600;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%231f57f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.approach { padding-block: 7rem; }
.approach-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 54rem) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
}
.point {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.point svg { width: 1.75rem; height: 1.75rem; }
.point h3 {
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.point p { max-width: 36ch; margin-top: 0.625rem; }

.process {
  padding-block: 7rem;
  background: var(--navy);
  color: #b6c2d6;
}
.process .section-head h2 { color: #fff; }
.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps li {
  padding: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.04);
}
.step-no {
  color: #8fb0ff;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.steps h3 {
  margin-top: 1.75rem;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 800;
}
.steps p { margin-top: 0.625rem; font-size: 1rem; }

.closing {
  padding-block: 7.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.closing p {
  max-width: 18ch;
  text-wrap: balance;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw + 1rem, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  background: var(--surface);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-nav a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.copyright { color: var(--muted); font-size: 0.9375rem; }

/* 404 */
.lost {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 4rem;
}
.lost h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lost p { max-width: 40ch; font-size: 1.125rem; }

/* One quiet entrance for the hero, nothing else moves on its own. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .phone-app { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both; }
  .phone-video { animation: rise-tilt 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-tilt {
  from { opacity: 0; transform: translateY(14px) rotate(-7deg); }
  to { opacity: 1; transform: translateY(0) rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
