/* Crimson Arrow Technologies - catech.sg - v1 */

:root {
  --ink: #101828;
  --muted: #5b6675;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --line: #e6e9ef;
  --crimson: #c8102e;
  --crimson-dark: #a30d26;
  --navy: #0c1b2a;
  --navy-2: #14293e;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 800; }
h1 em { font-style: normal; color: var(--crimson); }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--crimson);
  margin-bottom: 14px;
}
.kicker-light { color: #ff8fa3; }
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin-top: 16px;
}
.section-sub-light { color: #b8c4d2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-solid { background: var(--crimson); color: #fff; }
.btn-solid:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(16,24,40,0.06); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark svg { border-radius: 9px; }
.brand-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.nav-phone svg { color: var(--crimson); }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 9px 8px; flex-direction: column; justify-content: space-between; }
.nav-burger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero { padding: 158px 0 84px; background:
  radial-gradient(1000px 500px at 85% -10%, rgba(200, 16, 46, 0.06), transparent 60%),
  radial-gradient(800px 400px at -10% 40%, rgba(12, 27, 42, 0.05), transparent 60%);
}
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(200,16,46,0.5);
  animation: dotpulse 2s infinite;
}
@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
.hero-sub { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--crimson);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero visual: order ticket */
.hero-visual { position: relative; min-height: 380px; }
.ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
  padding: 26px 28px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ticket-title { font-weight: 700; font-size: 16px; }
.ticket-tag {
  background: rgba(200, 16, 46, 0.09);
  color: var(--crimson);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
}
.ticket-steps { display: flex; flex-direction: column; }
.tstep { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 22px; }
.tstep:last-child { padding-bottom: 0; }
.tstep::before {
  content: "";
  position: absolute;
  left: 13px; top: 30px; bottom: 2px;
  width: 2px;
  background: var(--line);
}
.tstep:last-child::before { display: none; }
.tstep-ico {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--muted);
  position: relative; z-index: 1;
}
.tstep.done .tstep-ico { background: #0e9f5d; border-color: #0e9f5d; color: #fff; }
.tstep.active .tstep-ico { border-color: var(--crimson); background: #fff; }
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
  animation: dotpulse 1.6s infinite;
}
.tstep strong { display: block; font-size: 15px; font-weight: 600; }
.tstep em { font-style: normal; font-size: 13px; color: var(--muted); }
.ticket-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--crimson);
}
.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 3;
}
.chip svg { color: var(--crimson); }
.chip-a { top: -18px; left: 4%; animation: floaty 5s ease-in-out infinite; }
.chip-b { bottom: -14px; right: 2%; animation: floaty 6s ease-in-out 0.8s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 24px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8dde6; }
.card-ico {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 13px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--crimson);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card p strong { color: var(--crimson); font-weight: 700; }

/* Speed */
.speed { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.speed h2 { color: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step-no {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { font-size: 15px; color: #b8c4d2; }
.speed-cta { margin-top: 46px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.speed-note { font-size: 14px; color: #b8c4d2; font-weight: 500; }

/* Why us */
.why-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.why-copy .btn { margin-top: 28px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.why-list strong { display: block; font-size: 16px; margin-bottom: 4px; }
.why-list span { font-size: 14.5px; color: var(--muted); }

/* About */
.about { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
}
.about-card h3 { margin-bottom: 14px; }
.about-card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.about-card a { color: var(--ink); font-weight: 600; }
.about-card a:hover { color: var(--crimson); }
.about-map {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--crimson) !important;
  border-bottom: 1.5px solid rgba(200, 16, 46, 0.3);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}
.cform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.req { color: var(--crimson); margin-left: 3px; }
.cform input, .cform textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--crimson); }
.cform textarea { resize: vertical; }
.cform-status { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.cform-status.ok { color: #0e9f5d; }
.cform-status.err { color: var(--crimson); }
.cinfo { display: flex; flex-direction: column; gap: 14px; }
.cinfo-block {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
}
.cinfo-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.cinfo-block p { font-size: 15px; color: var(--ink); }
.cinfo-block a { font-weight: 600; }
.cinfo-block a:hover { color: var(--crimson); }
.cinfo-big { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; display: inline-block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: #b8c4d2; padding: 46px 0; }
.foot-in { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; color: #fff; font-size: 15px; }
.foot-brand span { font-size: 13px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: #b8c4d2; }
.foot-links a:hover { color: #fff; }
.foot-copy { width: 100%; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 6px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip-a, .chip-b, .hero-badge .dot, .pulse { animation: none; }
}

/* ---------- Interactive layer (v2) ---------- */

/* Scroll progress bar */
.scrollbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--crimson), #ff5470);
  z-index: 60;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Hero network canvas */
.hero { position: relative; overflow: hidden; }
#heroNet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; }

/* Typing caret */
.caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  background: var(--crimson);
  vertical-align: -0.08em;
  animation: caretblink 1s steps(1) infinite;
}
@keyframes caretblink { 50% { opacity: 0; } }

/* Ticket: pending / done / active icon states */
.tstep-ico .tick, .tstep-ico .pulse { display: none; }
.tstep.done .tstep-ico .tick { display: block; }
.tstep.active .tstep-ico .pulse { display: block; }
.tstep, .tstep-ico { transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease; }
.tstep { opacity: 0.55; }
.tstep.done, .tstep.active { opacity: 1; }
.ticket { will-change: transform; transition: box-shadow 0.25s ease; }
.hero-visual { perspective: 1000px; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee-track i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.45);
  flex: 0 0 auto;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Card cursor spotlight */
.card, .why-list li, .step {
  position: relative;
  overflow: hidden;
}
.card::before, .why-list li::before, .step::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 16, 46, 0.07), transparent 65%);
}
.step::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 65%);
}
.card:hover::before, .why-list li:hover::before, .step:hover::before { opacity: 1; }
.why-list li { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.why-list li:hover { transform: translateX(4px); }
.step { transition: transform 0.2s ease, border-color 0.2s ease; }
.step:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); }

/* Scroll-spy nav */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--crimson);
  transition: right 0.22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }

/* Staggered reveals handled inline by JS (transition-delay) */

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .caret { animation: none; }
  .scrollbar { display: none; }
  #heroNet { display: none; }
  .tstep { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding-top: 130px; }
  .hero-visual { min-height: 0; margin-top: 10px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .why-in, .about-in, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16,24,40,0.08);
  }
  .nav-links.open a { padding: 15px 24px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
}
@media (max-width: 640px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 72px 0; }
  .hero { padding: 116px 0 64px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta .btn-sm { width: auto; }
  .hero-actions { flex-direction: column; }
  .foot-links { margin-left: 0; }
}
