/* RACE IT TECH — same theme as raceitsolution.co.in */
:root {
  --c1: #fa4b37;
  --c2: #6c3483;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --grad-h: linear-gradient(90deg, var(--c1) 0%, var(--c2) 100%);
  --ink: #1f1d2b;
  --muted: #5d5b6b;
  --line: #ece8f1;
  --soft: #fdf6f5;
  --soft2: #f7f2fa;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(108, 52, 131, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Outfit", sans-serif; line-height: 1.2; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad-text {
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 46px; height: 46px; flex: none; }

/* Header logo intro: RACE zooms out, RACE IT TECH zooms in */
.brand-swap { display: grid; }
.brand-swap > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; transform-origin: 23px 50%; }
.brand-old { opacity: 0; }
.brand-swap.play .brand-old { animation: logo-out 3s ease forwards; }
.brand-swap.play .brand-new { animation: logo-in 3s ease forwards; }
@keyframes logo-out {
  0%   { opacity: 0; transform: scale(.6); }
  12%  { opacity: 1; transform: scale(1); }
  50%  { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(.25); }
}
@keyframes logo-in {
  0%, 62% { opacity: 0; transform: scale(.25); }
  85%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-swap.play .brand-old, .brand-swap.play .brand-new { animation: none; }
}
.brand-name { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 21px; line-height: 1; white-space: nowrap; }
/* "RACE" set like the parent RACE logo: serif, RA purple + CE orange */
.wm-race { font-family: "Playfair Display", Georgia, serif; font-size: 1.08em; letter-spacing: .5px; }
.wm-race .p { color: #8e44ad; }
.wm-race .o { color: #f26a3d; }
.wm-tech {
  background: var(--grad-h); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .5px;
}
.brand-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .4px; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 6px; font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 8px 12px; border-radius: 6px; color: #2e3d49; transition: .2s; }
.nav-links a:hover { color: var(--c2); background: var(--soft2); }
.nav-links a.active { background: var(--c2); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(250, 75, 55, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(108, 52, 131, .3); }
.btn-outline { border: 1.5px solid var(--c2); color: var(--c2); background: #fff; }
.btn-outline:hover { background: var(--soft2); }
.btn-sm { padding: 9px 18px; border-radius: 6px; }

.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--c2); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; padding: 90px 0 80px;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(250, 75, 55, .10), transparent 70%),
    radial-gradient(600px 300px at 85% 30%, rgba(108, 52, 131, .10), transparent 70%);
}
/* RACE IT + flipping "Tech" word */
.flip-title {
  display: flex; justify-content: center; align-items: baseline; gap: .3em;
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: clamp(27px, 7vw, 72px); line-height: 1.15;
  margin-bottom: 26px;
}
.flip-fixed { color: var(--ink); }
.flip-box {
  display: inline-block; perspective: 600px; text-align: left;
  transition: width .45s ease;
}
.flip-word {
  display: inline-block; white-space: nowrap; padding-bottom: .08em;
  transform-origin: 50% 50% -0.4em;
  transition: transform .45s ease, opacity .45s ease;
}
.flip-word.out { transform: rotateX(90deg); opacity: 0; }
.flip-word.in-start { transform: rotateX(-90deg); opacity: 0; transition: none; }

.pill {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  background: #fde9e6; color: #c0392b;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; margin: 22px auto 18px; max-width: 900px; }
.hero p { max-width: 720px; margin: 0 auto 32px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-note a { color: var(--c2); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--soft) 0%, var(--soft2) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--c1); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.about-card {
  background: var(--grad); color: #fff; border-radius: 22px; padding: 36px;
  box-shadow: var(--shadow);
}
.about-card h3 { font-size: 24px; margin-bottom: 18px; }
.about-card ul { list-style: none; display: grid; gap: 12px; }
.about-card li { display: flex; gap: 10px; align-items: flex-start; }
.about-card li::before { content: "✓"; font-weight: 800; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--soft2); font-size: 26px; margin-bottom: 18px;
}
.card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--c1); text-transform: uppercase; }
.card h3 { font-size: 20px; margin: 4px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { text-align: center; padding: 26px 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.why-item .num { font-family: "Outfit", sans-serif; font-size: 38px; font-weight: 800; }
.why-item h4 { font-size: 17px; margin: 6px 0; }
.why-item p { font-size: 14px; color: var(--muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 34px;
  background: var(--grad-h); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { font-size: 18px; margin: 8px 0; }
.step p { font-size: 14.5px; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--grad); color: #fff; border-radius: 24px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { opacity: .9; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--c2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-box { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-box .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; }
.info-box h4 { font-size: 16px; }
.info-box p, .info-box a { font-size: 14.5px; color: var(--muted); word-break: break-word; }
.info-box a:hover { color: var(--c2); }

.form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fcfbfd; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c2); }
.form textarea { min-height: 110px; resize: vertical; }
.form-msg { font-size: 14px; color: #1e8449; display: none; }

/* Footer */
.footer { background: #17141f; color: #cfcadb; padding: 56px 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .wm-race .p { color: #c39bd3; }
.footer .wm-tech { background: linear-gradient(90deg, #ff7a66, #c39bd3); -webkit-background-clip: text; background-clip: text; }
.footer .brand-name small { color: #a39fb3; }
.footer-bottom { border-top: 1px solid #2c2838; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8f8aa1; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 4px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .cards, .why, .steps, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .cta-band, .form { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
