/* City Tech site styles */
:root {
  --red: #E6294F;
  --red-deep: #B81C3C;
  --red-soft: rgba(230, 41, 79, 0.14);
  --bg: #0B0B0F;
  --bg-alt: #111117;
  --surface: #16161D;
  --surface-2: #1E1E27;
  --line: rgba(255, 255, 255, 0.08);
  --text: #F4F4F6;
  --muted: #A3A3B1;
  --dim: #6E6E7C;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1180px, 100% - 4rem); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.accent { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 30px rgba(230, 41, 79, 0.3); }
.btn--primary:hover { background: #F0395D; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(230, 41, 79, 0.4); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.18); color: var(--text); }
.btn--ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.1rem 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 11, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 0.7rem 0; border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo__svg { height: 34px; width: auto; }
.nav__links { display: none; gap: 2rem; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 0.8rem; }
.nav__actions .btn { display: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn { padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--dim); transition: all 0.2s; }
.lang__btn.is-active { background: #fff; color: #000; }
.burger { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0.3rem;
  padding: 1rem 1rem 1.5rem; background: rgba(11,11,15,0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 0.8rem 0.5rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions .btn { display: inline-flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,41,79,0.28) 0%, rgba(230,41,79,0) 60%);
  filter: blur(40px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 1.6rem; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 560px; margin-bottom: 2rem; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; max-width: 720px; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.hero__stats li { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.hero__stats span { font-size: 0.85rem; color: var(--dim); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.8rem; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 999px; transform: translateX(-50%); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--red); animation: scrollDot 1.8s infinite; }
@media (min-width: 768px) { .hero__scroll { display: block; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt); padding: 1rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__track i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; max-width: 600px; }

/* Services */
.services { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } .card--featured { grid-column: span 2; grid-row: span 2; } }
.card {
  position: relative; padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(230,41,79,0.14), transparent 45%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230,41,79,0.4); }
.card:hover::after { opacity: 1; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 1.4rem; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__tag { position: absolute; top: 1.4rem; right: 1.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--red); color: #fff; }
.card--featured { background: linear-gradient(145deg, #1B1017 0%, var(--surface) 55%); }
.card--featured h3 { font-size: 1.8rem; }
.card--featured p { font-size: 1.02rem; }
.card__list { margin-top: 1.5rem; display: grid; gap: 0.55rem; }
.card__list li { position: relative; padding-left: 1.4rem; color: var(--text); font-size: 0.93rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Work */
.work { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work { grid-template-columns: repeat(3, 1fr); } }
.work__item { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s; }
.work__item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.work__visual { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 1.2rem; overflow: hidden; }
.work__visual span { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: rgba(255,255,255,0.9); letter-spacing: -0.04em; }
.work__visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 28px 28px; }
.work__visual::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -15%; top: -25%; filter: blur(30px); opacity: 0.8; transition: transform 0.6s var(--ease); }
.work__item:hover .work__visual::after { transform: scale(1.25); }
.work__visual--1 { background: linear-gradient(135deg, #2A0E17, #141418); } .work__visual--1::after { background: var(--red); }
.work__visual--2 { background: linear-gradient(135deg, #171226, #141418); } .work__visual--2::after { background: #7B5CFF; }
.work__visual--3 { background: linear-gradient(135deg, #0E1C26, #141418); } .work__visual--3::after { background: #2FB4FF; }
.work__visual--4 { background: linear-gradient(135deg, #0F2219, #141418); } .work__visual--4::after { background: #27D29A; }
.work__visual--5 { background: linear-gradient(135deg, #26200E, #141418); } .work__visual--5::after { background: #FFB02F; }
.work__visual--6 { background: linear-gradient(135deg, #2A0E17, #141418); } .work__visual--6::after { background: #FF5C8A; }
.work__body { padding: 1.5rem; }
.work__meta { display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.7rem; font-weight: 600; }
.work__body h3 { margin-bottom: 0.6rem; }
.work__body p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Process */
.process { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.process li { position: relative; padding: 1.8rem 1.5rem 1.8rem 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .process li { padding-right: 2rem; } .process li + li { padding-left: 2rem; border-left: 1px solid var(--line); } }
.process__n { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--red); letter-spacing: -0.04em; margin-bottom: 1rem; }
.process h3 { margin-bottom: 0.5rem; }
.process p { color: var(--muted); font-size: 0.92rem; }

/* About */
.about { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; } }
.about__text p + p { margin-top: 1.1rem; }
.about__text h2 { margin-bottom: 1.4rem; }
.about__text p { color: var(--muted); font-size: 1.04rem; }
.about__values { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .about__values { grid-template-columns: repeat(2, 1fr); } }
.about__values li { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about__values h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.about__values p { font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; left: -20vw; bottom: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(230,41,79,0.22), transparent 60%); filter: blur(40px); pointer-events: none; }
.contact__inner { position: relative; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; } }
.contact__mail { display: inline-block; margin-top: 2rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; border-bottom: 2px solid var(--red); padding-bottom: 0.2rem; transition: color 0.2s; }
.contact__mail:hover { color: var(--red); }
.contact__details { display: grid; gap: 1.8rem; margin: 0; }
.contact__details dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.4rem; }
.contact__details dd { margin: 0; color: var(--text); line-height: 1.7; }
.contact__details a { color: var(--red); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #08080B; padding: 3.5rem 0 1.5rem; font-size: 0.88rem; color: var(--muted); }
.footer__inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 1.4fr 0.8fr; gap: 3rem; } }
.footer__logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer__legal p { margin-bottom: 0.4rem; line-height: 1.6; }
.footer__legal strong { color: var(--text); }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { transition: color 0.2s; } .footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.8rem; color: var(--dim); }

/* Legal pages */
.legal { padding: 9rem 0 5rem; max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.legal .updated { color: var(--dim); font-size: 0.9rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.45rem; margin: 2.6rem 0 0.9rem; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.legal a { color: var(--red); }
.legal .back { display: inline-flex; gap: 0.4rem; margin-bottom: 2rem; color: var(--muted); font-size: 0.9rem; }
.legal .back:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.services .reveal:nth-child(2), .work .reveal:nth-child(2), .process .reveal:nth-child(2), .about__values .reveal:nth-child(2) { transition-delay: 0.08s; }
.services .reveal:nth-child(3), .work .reveal:nth-child(3), .process .reveal:nth-child(3), .about__values .reveal:nth-child(3) { transition-delay: 0.16s; }
.services .reveal:nth-child(4), .work .reveal:nth-child(4), .process .reveal:nth-child(4), .about__values .reveal:nth-child(4) { transition-delay: 0.24s; }
.services .reveal:nth-child(5), .work .reveal:nth-child(5), .process .reveal:nth-child(5) { transition-delay: 0.32s; }
.services .reveal:nth-child(6), .work .reveal:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
