:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --card: #111;
  --card-2: #161616;
  --line: #222;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #ef2b2d;
  --accent-2: #ff5a5c;
  --radius: 18px;
  --max: 1200px;
  --display: "M PLUS Rounded 1c", "Nunito", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark, .footer-logo { mix-blend-mode: lighten; }
.logo-mark { width: auto; height: 40px; }
.logo-text { font-family: var(--body); font-weight: 700; font-size: 1.3rem; line-height: 1; color: #fff; }
.logo-text small { font-size: 1.3rem; font-weight: 700; margin-left: 6px; }
.footer-logo { width: 200px; height: auto; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-weight: 600; font-size: .95rem; color: #d4d4d4; position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
  font-family: var(--body);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(239, 43, 45, .35); }
.btn-ghost { border-color: #3a3a3a; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 43, 45, .18), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero:hover { cursor: crosshair; }
.hero-inner { position: relative; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.est-badge {
  display: inline-block; margin-bottom: 22px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(239, 43, 45, .45); background: rgba(239, 43, 45, .08);
  color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1.08; letter-spacing: -.01em;
}
.hero h1 .red { color: var(--accent); display: block; }
.hero p { color: #cfcfcf; font-size: clamp(1rem, 2vw, 1.3rem); margin: 22px auto 38px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid #444; border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Sub-page hero */
.page-hero { padding: 170px 0 90px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 43, 45, .16), transparent 65%);
  top: 0; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.page-hero h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; position: relative; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 1.1rem; position: relative; }
.crumbs { color: var(--muted); font-size: .85rem; margin-bottom: 14px; position: relative; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.15; }
.section-sub { color: var(--muted); margin-top: 14px; max-width: 600px; font-size: 1.05rem; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.link-arrow { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow:hover { gap: 12px; }
.link-arrow { transition: gap .2s; }

/* ---------- Marquee ---------- */
.marquee-section { padding: 70px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-section .eyebrow { display: block; text-align: center; }
.marquee-section h2 { text-align: center; font-family: var(--display); font-size: 1.5rem; margin-bottom: 36px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #6b6b6b;
  letter-spacing: .08em; white-space: nowrap; transition: color .2s;
}
.logo-pill i {
  width: 46px; height: 46px; border-radius: 12px; background: #f4f4f5; display: grid; place-items: center;
  flex: 0 0 auto; transition: transform .25s, box-shadow .25s;
}
.logo-pill img { width: 30px; height: 30px; object-fit: contain; }
.logo-pill:hover { color: var(--text); }
.logo-pill:hover i { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(239, 43, 45, .3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(239, 43, 45, .14), transparent 45%);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(239, 43, 45, .5); }
.service-card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.card-num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: #262626; line-height: 1; transition: color .3s; }
.service-card:hover .card-num { color: var(--accent); }
.card-tag { font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: var(--accent); border: 1px solid rgba(239,43,45,.4); padding: 5px 12px; border-radius: 999px; }
.service-card h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .97rem; margin-bottom: 22px; }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(239, 43, 45, .1); color: var(--accent); margin-bottom: 20px;
}
.icon-box svg { width: 26px; height: 26px; }

/* ---------- Tech stack ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tech-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: border-color .25s, transform .25s;
}
.tech-card:hover { border-color: rgba(239, 43, 45, .5); transform: translateY(-4px); }
.tech-card .badge {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--display); font-weight: 800; font-size: .9rem; color: #fff; background: #1f1f1f; border: 1px solid #2c2c2c;
}
.tech-card:hover .badge { background: var(--accent); border-color: var(--accent); }
.tech-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tech-card p { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Why us ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: left; }
.why-card h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.stat { text-align: center; padding: 26px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat .label { color: var(--muted); margin-top: 10px; font-weight: 600; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 800; color: var(--accent); font-size: .9rem; letter-spacing: .1em;
  display: block; margin-bottom: 14px;
}
.step h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }
.visual-card {
  aspect-ratio: 1 / 1; border-radius: 26px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(239,43,45,.35), transparent 50%), linear-gradient(160deg, #141414, #060606);
  display: grid; place-items: center;
}
.visual-card .about-logo { width: 66%; height: auto; mix-blend-mode: lighten; }
.visual-card .float-chip {
  position: absolute; background: rgba(17,17,17,.9); border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 10px 14px; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
  animation: float 5s ease-in-out infinite;
}
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.float-chip.c1 { top: 12%; left: 8%; }
.float-chip.c2 { bottom: 14%; right: 8%; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #d4d4d4; }
.check-list li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

/* ---------- Service detail rows ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; padding: 60px 0; border-bottom: 1px solid var(--line); }
.detail:last-child { border-bottom: 0; }
.detail .card-num { font-size: 4rem; color: #1f1f1f; }
.detail h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 14px; }
.detail p { color: var(--muted); }
.detail ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail ul li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: .95rem;
}
.detail ul li::before { content: "→ "; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px;
}
.info-card .icon-box { margin: 0; flex: 0 0 48px; width: 48px; height: 48px; }
.info-card h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-card a:hover { color: var(--accent); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 700; color: #d4d4d4; }
.field input, .field select, .field textarea {
  background: #0b0b0b; border: 1px solid #2a2a2a; border-radius: 12px; padding: 14px 16px;
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 700; color: #22c55e; display: none; }

/* ---------- CTA + Footer ---------- */
.cta {
  border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0606, #0d0d0d 60%); border: 1px solid #2a1212;
}
.cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,43,45,.3), transparent 65%); right: -120px; top: -160px;
}
.cta h2 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; z-index: 1; }
.cta p { color: var(--muted); margin: 12px 0 30px; position: relative; z-index: 1; font-size: 1.1rem; }
.cta .btn { position: relative; z-index: 1; }

.site-footer { border-top: 1px solid var(--line); padding: 70px 0 30px; margin-top: 100px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid p { color: var(--muted); font-size: .95rem; margin-top: 18px; max-width: 320px; }
.footer-grid h5 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; color: var(--accent); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid li, .footer-grid li a { color: var(--muted); font-size: .95rem; }
.footer-grid li a:hover { color: var(--text); }
.social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  color: var(--muted); font-size: .95rem; font-weight: 600; transition: color .2s;
}
.social svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #1a1a1a; border: 1px solid #2a2a2a; color: #fff; transition: background .2s, border-color .2s; }
.social:hover { color: var(--text); }
.social:hover svg { background: #0a66c2; border-color: #0a66c2; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #6b6b6b; font-size: .88rem;
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .float-chip, .scroll-cue::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid, .detail { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li a { display: block; padding: 16px 20px; }
  .nav-links a::after { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-row, .detail ul { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 22px; }
}
