:root {
  --bg-page: #f7f8fa;
  --bg-white: #ffffff;
  --bg-card: #f2f4f7;
  --bg-dark: #111318;
  --text-main: #111827;
  --text-muted: #525866;
  --text-light: #8a909e;
  --red-primary: #d91b24;
  --red-hover: #b8141c;
  --red-soft: rgba(217, 27, 36, 0.08);
  --border-light: #e5e7eb;
  --shadow-sm: 0 4px 16px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 12px 32px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --container-max: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-page);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER / NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-title span {
  color: var(--red-primary);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--red-primary);
  border-radius: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #e5252e 0%, #c4121a 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(217, 27, 36, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d11922 0%, #a80d14 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(217, 27, 36, 0.36);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: #f9fafb;
  transform: translateY(-1px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #ffffff 0%, #f3f4f7 58%, #e9ecf2 100%);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border-light);
}

/* Diagonal graphic accent matching mockup */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(135deg, rgba(209, 213, 219, 0.35) 0%, rgba(156, 163, 175, 0.15) 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24%;
  height: 100%;
  background: linear-gradient(160deg, #dc2626 0%, #991b1b 100%);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 5% 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 36px;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title .accent-red {
  color: var(--red-primary);
  display: block;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 490px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.stat-item {
  padding-right: 28px;
  border-right: 1px solid #d1d5db;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-render-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: #0b0e14;
}

.hero-render-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.hero-render-frame:hover img {
  transform: scale(1.04);
}

.hero-play-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(17, 24, 39, 0.84);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-play-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.handwritten-note {
  align-self: flex-end;
  margin-top: 14px;
  margin-right: 16px;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2937;
  transform: rotate(-3deg);
  text-align: center;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* ==================== SECTION HEADERS ==================== */
.section-block {
  padding: 76px 0;
}

.section-block.bg-white {
  background: var(--bg-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red-primary);
}

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-main);
}

.section-desc-right {
  max-width: 440px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 10px;
}

/* ==================== SERVICES 4-CARD GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: rgba(217, 27, 36, 0.35);
  box-shadow: var(--shadow-md);
}

.service-thumb {
  height: 148px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card .card-arrow {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== FEATURED WORK / PROJECTS ==================== */
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background: #e5e7eb;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--red-primary);
  color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1117;
  overflow: hidden;
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.06);
}

.play-overlay-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease;
}

.project-card:hover .play-overlay-btn {
  background: rgba(0, 0, 0, 0.12);
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-card:hover .play-circle {
  transform: scale(1.1);
  background: var(--red-primary);
}

.duration-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.project-meta {
  padding: 16px 18px 20px;
}

.project-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==================== WHY CHOOSE US + CAD PIPELINE EXPLAINER ==================== */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: #0f172a;
}

.why-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.why-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.why-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.why-feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pipeline-callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  border-left: 4px solid var(--red-primary);
}

.pipeline-callout h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f9fafb;
}

.pipeline-callout p {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* ==================== OUR PROCESS (5 STEPS) ==================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.process-step:hover {
  border-color: var(--red-primary);
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(217, 27, 36, 0.3);
}

.step-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text-main);
}

.process-step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-mark {
  color: #fca5a5;
  font-size: 2rem;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.client-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text-main);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-avatar.red {
  background: var(--red-primary);
}

.client-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.client-info span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-light);
}

.stars {
  color: #dc2626;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ==================== CTA BANNER ==================== */
.cta-banner-section {
  background: linear-gradient(120deg, #eef0f5 0%, #e2e6ef 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
}

.cta-banner-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-banner-title span {
  color: var(--red-primary);
}

.cta-banner-visual {
  display: flex;
  justify-content: flex-end;
}

.cta-banner-visual img {
  max-height: 220px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-white);
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--red-primary);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: var(--red-primary);
  color: #ffffff;
}

/* ==================== DIALOG MODALS (LIGHT DISMISS) ==================== */
dialog {
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 920px;
  width: calc(100% - 32px);
  background: #111827;
  color: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

dialog::backdrop {
  background-color: rgba(10, 14, 23, 0.76);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  padding: 24px 28px 28px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dialog-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.dialog-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close-btn:hover {
  background: var(--red-primary);
}

.video-aspect-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.video-aspect-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.dialog-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* Quote Modal Light Theme */
dialog.quote-dialog {
  max-width: 620px;
  background: #ffffff;
  color: var(--text-main);
}

.quote-form {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--red-primary);
  background: #ffffff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-grid,
  .why-grid,
  .cta-banner-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .services-grid,
  .projects-grid,
  .process-steps,
  .why-features-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
