/* 3Movin — company site. Colors come from the logo gradient. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f5;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --nav: rgba(251, 251, 253, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.12);

  --brand-red: #f2362c;
  --brand-orange: #ff6f45;
  --brand-purple: #8865cd;
  --brand-deep: #552c70;
  --brand: linear-gradient(45deg, #552c70 0%, #c62e3d 22%, #f5382d 44%, #ff6f45 66%, #df7470 82%, #8865cd 100%);
  --brand-text: linear-gradient(90deg, #e52e2f 0%, #ff6f45 45%, #8865cd 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0c0c0e;
    --card: #141416;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --nav: rgba(0, 0, 0, 0.66);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(255, 111, 69, 0.28); }
:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-tile {
  width: 28px; height: 28px; border-radius: 7px;
  background: url("assets/icon.webp") center / cover no-repeat;
  flex: none;
}
.wordmark {
  display: block; height: 15px; aspect-ratio: 784 / 160;
  background: currentColor;
  -webkit-mask: url("assets/wordmark.png") center / contain no-repeat;
          mask: url("assets/wordmark.png") center / contain no-repeat;
}

/* ---------- Nav (translucent material) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { transition: box-shadow 0.3s ease, background-color 0.35s ease, color 0.35s ease; }
.nav.on-dark { background: rgba(0, 0, 0, 0.66); color: #f5f5f7; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.nav.on-dark .nav-links a { color: #a1a1a6; }
.nav.on-dark .nav-links a:hover { color: #f5f5f7; }
.nav.on-dark .btn-primary { background: #f5f5f7; color: #000; }
.nav .logo { color: var(--fg); }
.nav.on-dark .logo { color: #f5f5f7; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 1rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 0.12s ease-out, background-color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); transition-duration: 0.08s; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { opacity: 0.86; }
.btn-ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: 1px;
  border-radius: 50%; background: var(--brand);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; color: var(--fg); }
.display { font-size: clamp(2.9rem, 8.2vw, 6.4rem); line-height: 1.02; letter-spacing: -0.045em; }
.h2 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.038em; }
.h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; letter-spacing: -0.016em; color: var(--muted); max-width: 40ch; }
.grad-text {
  background: var(--brand-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section { padding-block: clamp(88px, 12vw, 160px); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(56px + clamp(72px, 11vw, 140px)); padding-bottom: clamp(72px, 9vw, 120px); text-align: center; position: relative; }
.hero .lead { margin: 26px auto 0; max-width: 34ch; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-stage { position: relative; margin: clamp(64px, 9vw, 104px) auto 0; width: min(380px, 72vw); aspect-ratio: 1; perspective: 1200px; }
.hero-glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: var(--brand); filter: blur(70px); opacity: 0.38; z-index: 0;
}
.hero-tile {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 22.5%;
  background: var(--brand);
  box-shadow: 0 40px 80px -30px rgba(229, 46, 47, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.hero-tile::after { /* light catching the surface */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at var(--lx, 30%) var(--ly, 0%), rgba(255, 255, 255, 0.32), transparent 55%);
  pointer-events: none;
}
.hero-mark { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(40px); }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(28px, 3.4vw, 40px);
  display: flex; flex-direction: column; min-height: 320px;
}
.tile.wide { grid-column: span 2; }
.tile p { color: var(--muted); margin: 12px 0 0; max-width: 42ch; }
.tile .icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--fg); margin-bottom: auto;
}
.tile .icon svg { width: 24px; height: 24px; }
.tile-body { margin-top: 56px; position: relative; z-index: 1; }
.tile.has-visual .tile-body { max-width: 46%; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.tag-row li { font-size: 0.8125rem; color: var(--muted); padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* decorative mini-browser inside the wide web tile */
.mini-browser {
  position: absolute; right: -40px; top: 40px; width: 52%; aspect-ratio: 16 / 11;
  border-radius: 14px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.mini-browser .bar { height: 26px; display: flex; gap: 6px; align-items: center; padding-left: 12px; border-bottom: 1px solid var(--line); }
.mini-browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mini-browser .content { padding: 18px; display: grid; gap: 10px; }
.mini-browser .content b { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.mini-browser .content b:first-child { width: 46%; height: 16px; background: var(--brand); opacity: 0.9; }
.mini-browser .content b:nth-child(2) { width: 80%; }
.mini-browser .content b:nth-child(3) { width: 64%; }
.mini-browser .content .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.mini-browser .content .cards span { aspect-ratio: 1; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

.ai-orb {
  position: absolute; right: -60px; bottom: -80px; width: 340px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, #8865cd, #ff6f45, #f2362c, #552c70, #8865cd);
  filter: blur(46px); opacity: 0.28;
}

/* ---------- Apps (dark band) ---------- */
.apps { background: #000; color: #f5f5f7; }
.apps h2, .apps h3 { color: #f5f5f7; }
.apps .lead, .apps .eyebrow { color: #a1a1a6; }
.app-list { display: grid; gap: 22px; }
.app {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 64px);
  background: #111113; border-radius: 36px; padding: clamp(28px, 5vw, 64px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.app-kind { font-size: 0.8125rem; color: #a1a1a6; display: block; margin-top: 2px; }
.app-name { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
.app h3 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.035em; }
.app p { color: #a1a1a6; margin: 18px 0 0; max-width: 40ch; font-size: 1.0625rem; }
.app .btn { margin-top: 30px; }
.btn-light { background: #f5f5f7; color: #000; }
.btn-light:hover { background: #fff; }
.app-link { color: #f5f5f7; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; }
.app-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.frames { position: relative; height: clamp(300px, 34vw, 420px); }
.frames figure {
  position: absolute; top: 50%; left: 50%; margin: 0;
  width: 42%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #222;
  transition: transform 0.7s var(--ease-out);
}
.frames img { width: 100%; height: 100%; object-fit: cover; }
.frames figure:nth-child(1) { transform: translate(-112%, -46%) rotate(-8deg); }
.frames figure:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.frames figure:nth-child(3) { transform: translate(12%, -46%) rotate(8deg); }
.app:hover .frames figure:nth-child(1) { transform: translate(-120%, -46%) rotate(-11deg); }
.app:hover .frames figure:nth-child(3) { transform: translate(20%, -46%) rotate(11deg); }

.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(225, 76, 68, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.shot img { width: 100%; height: auto; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 26px; }
.steps .num { font: 600 0.875rem/1 var(--font); color: transparent; background: var(--brand-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.022em; margin: 14px 0 10px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Company ---------- */
.company { background: var(--bg-alt); }
.company-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.company-grid .lead { margin-top: 20px; }
.facts { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px clamp(22px, 3vw, 34px); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { text-decoration: none; color: var(--brand-red); }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .facts a { color: var(--brand-orange); } }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 40px; padding: clamp(48px, 8vw, 104px) clamp(28px, 6vw, 80px);
  background: var(--brand); color: #fff; text-align: center;
}
.contact-card::before { /* soft vignette so white type stays legible across the whole gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 90% at 50% 50%, rgba(0, 0, 0, 0.16), transparent 70%);
}
.contact-card h2 { color: #fff; }
.contact-card p { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 20px auto 0; max-width: 36ch; color: rgba(255, 255, 255, 0.9); }
.contact-card .btn { margin-top: 36px; background: #fff; color: #1d1d1f; }
.contact-card .btn:hover { opacity: 0.92; }
.contact-card .mail { display: block; margin-top: 18px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Footer ---------- */
.footer { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.8125rem; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer .logo { color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; }
.footer-legal p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding-top: calc(56px + clamp(56px, 8vw, 96px)); padding-bottom: 96px; }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; }
.legal .updated { color: var(--muted); margin-top: 14px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.022em; margin: 44px 0 10px; font-weight: 650; }
.legal p, .legal li { color: var(--fg); opacity: 0.88; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--brand-red); }
@media (prefers-color-scheme: dark) { .legal a { color: var(--brand-orange); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .app { grid-template-columns: 1fr; }
  .app-visual { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; }
  .mini-browser { position: relative; right: auto; top: auto; width: 100%; margin: 28px 0 0; }
  .tile-body, .tile.has-visual .tile-body { margin-top: 32px; max-width: none; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .frames { height: 300px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 0.4s ease; }
  .frames figure, .btn, .btn .arrow { transition: none !important; }
  .hero-tile { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(127, 127, 127, 0.5); --muted: var(--fg); }
}
