:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --text: #0b0b0d;
  --muted: #68686d;
  --border: #e5e5e7;
  --primary: #e50914;
  --primary-dark: #b80710;
  --accent: #ff1f2d;
  --nav-bg: rgba(255,255,255,.86);
  --shadow: 0 20px 60px rgba(0,0,0,.08);
}

[data-theme="dark"] {
  --bg: #080809;
  --bg-soft: #101012;
  --surface: #111113;
  --surface-2: #171719;
  --text: #f7f7f7;
  --muted: #a3a3a8;
  --border: rgba(255,255,255,.10);
  --primary: #ff1f2d;
  --primary-dark: #d90f1b;
  --accent: #ff3b46;
  --nav-bg: rgba(8,8,9,.88);
  --shadow: 0 20px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }

.navbar {
  padding: 18px 0;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: .25s ease;
}
.navbar.scrolled { border-color: var(--border); padding: 13px 0; }
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.navbar-brand > span:last-child span { color: var(--primary); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  font-size: .82rem;
}
.nav-link {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  margin: 0 8px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.theme-toggle {
  width: 39px;
  height: 39px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  transition: .2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.navbar-toggler { border: 0; color: var(--text); font-size: 1.1rem; padding: 7px; }
.navbar-toggler:focus { box-shadow: none; }

.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 11px 18px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 10px 25px rgba(8,127,115,.22); }
.btn-outline-secondary { color: var(--text); border-color: var(--border); background: transparent; }
.btn-outline-secondary:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 145px 0 90px;
  background: var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .14; pointer-events: none; }
.hero-glow-one { width: 400px; height: 400px; background: var(--primary); right: 8%; top: 20%; }
.hero-glow-two { width: 250px; height: 250px; background: var(--primary); left: 0; bottom: 0; }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pulse-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(32,183,165,.1); }
.hero-section h1 {
  max-width: 820px;
  margin: 22px 0 20px;
  font-size: clamp(3rem, 6.2vw, 6.1rem);
  line-height: .99;
  letter-spacing: -.075em;
  font-weight: 800;
}
.hero-section h1 span, h2 span { color: var(--primary); }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 35px; }
.trust-item { color: var(--muted); font-size: .78rem; }
.trust-item i { color: var(--primary); margin-right: 5px; }

.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid var(--border); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 350px; height: 470px; }
.orbit-two { width: 470px; height: 350px; transform: rotate(28deg); }
.visual-core {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 45px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.core-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 17px; background: var(--primary); color: white; margin-bottom: 12px;
}
.visual-core strong { font-size: 1.05rem; }
.visual-core small { color: var(--muted); font-size: .6rem; margin-top: 3px; }
.floating-card {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 11px;
  min-width: 145px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.floating-card i { color: var(--primary); }
.floating-card strong, .floating-card small { display: block; line-height: 1.25; }
.floating-card strong { font-size: .75rem; }
.floating-card small { color: var(--muted); font-size: .58rem; margin-top: 3px; }
.card-top { top: 12%; right: 7%; }
.card-right { right: -1%; top: 52%; animation-delay: -1.2s; }
.card-bottom { bottom: 9%; left: 4%; animation-delay: -2.1s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.section-padding { padding: 115px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 55px; }
.section-heading h2, .solutions-section h2, .about-panel h2, .cta-box h2 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.06em;
  font-weight: 800;
}
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); }

.service-card {
  position: relative;
  height: 100%;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
.service-icon { width: 47px; height: 47px; display: grid; place-items: center; color: var(--primary); background: var(--surface-2); border-radius: 13px; }
.service-number { position: absolute; top: 30px; right: 30px; color: var(--muted); font-size: .7rem; }
.service-card h3 { margin: 28px 0 10px; font-size: 1.1rem; letter-spacing: -.025em; }
.service-card p { color: var(--muted); font-size: .88rem; margin-bottom: 25px; }
.service-card a, .text-link { color: var(--primary); font-size: .78rem; font-weight: 700; }
.service-card a i, .text-link i { margin-left: 6px; transition: .2s; }
.service-card a:hover i, .text-link:hover i { transform: translateX(4px); }

.solutions-section { background: var(--bg-soft); }
.section-intro { color: var(--muted); }
.process-grid { border-top: 1px solid var(--border); }
.process-item { display: grid; grid-template-columns: 100px 1fr; gap: 25px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.process-item > span { color: var(--primary); font-size: .75rem; font-weight: 700; }
.process-item h3 { font-size: 1.15rem; margin: 0 0 5px; }
.process-item p { color: var(--muted); font-size: .86rem; max-width: 650px; margin: 0; }

.about-panel {
  padding: 70px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-2);
}
.about-panel p { color: var(--muted); max-width: 590px; }
.about-panel .text-link { display: inline-block; margin-top: 15px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { min-height: 150px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.stat-box strong { color: var(--primary); font-size: 1.7rem; }
.stat-box span { color: var(--muted); font-size: .78rem; }

.tech-strip { padding: 38px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-label { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-align: center; margin-bottom: 20px; }
.tech-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; }
.tech-list span { color: var(--muted); font-size: .88rem; font-weight: 600; }

.cta-section { padding: 110px 0; }
.cta-box {
  display: flex; align-items: end; justify-content: space-between; gap: 50px;
  padding: 70px;
  border-radius: 27px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cta-box p { max-width: 570px; color: var(--muted); margin: 20px 0 0; }
.cta-box .btn { flex-shrink: 0; }

.footer { padding: 75px 0 25px; border-top: 1px solid var(--border); }
.footer-copy { max-width: 330px; color: var(--muted); font-size: .8rem; margin-top: 20px; }
.footer h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer a:not(.navbar-brand) { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.footer a:hover { color: var(--primary); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; display: grid !important; place-items: center; border: 1px solid var(--border); border-radius: 50%; margin: 0 !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); margin-top: 55px; padding-top: 20px; color: var(--muted); font-size: .7rem; }

.scroll-indicator { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .65rem; }
.scroll-indicator i { color: var(--primary); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 18px 0 5px; }
  .nav-link { margin: 4px 0; }
  .hero-section { padding-top: 125px; }
  .hero-visual { min-height: 430px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 25px; }
  .about-panel, .cta-box { padding: 45px; }
}
@media (max-width: 767.98px) {
  .navbar { padding: 13px 0; }
  .nav-cta { display: none !important; }
  .hero-section { min-height: auto; padding: 120px 0 80px; }
  .hero-section h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-copy { font-size: .95rem; }
  .hero-trust { gap: 10px 17px; }
  .hero-visual { min-height: 350px; margin-top: 15px; transform: scale(.85); }
  .section-padding { padding: 80px 0; }
  .section-heading h2, .solutions-section h2, .about-panel h2, .cta-box h2 { font-size: 2.5rem; }
  .process-item { grid-template-columns: 50px 1fr; gap: 10px; }
  .about-panel { padding: 30px; border-radius: 20px; }
  .stats-grid { margin-top: 25px; }
  .stat-box { min-height: 120px; padding: 18px; }
  .cta-section { padding: 80px 0; }
  .cta-box { display: block; padding: 35px 28px; }
  .cta-box .btn { margin-top: 28px; width: 100%; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 5px; }
  .scroll-indicator { display: none; }
}

/* Portfolio / Projects */
.portfolio-section { background: var(--bg-soft); }
.project-card { height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(229,9,20,.35); box-shadow: var(--shadow); }
.project-image { position: relative; height: 245px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--bg-soft)); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover .project-image img { transform: scale(1.04); }
.image-placeholder { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--muted); font-size: .8rem; background: repeating-linear-gradient(135deg, transparent 0, transparent 10px, rgba(128,128,128,.04) 10px, rgba(128,128,128,.04) 20px); }
.image-placeholder i { color: var(--primary); font-size: 1.7rem; }
.project-tag { position: absolute; left: 16px; top: 16px; padding: 7px 11px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-content { padding: 25px; }
.project-content h3 { margin: 0 0 8px; font-size: 1.15rem; }
.project-content p { color: var(--muted); font-size: .83rem; line-height: 1.7; margin-bottom: 18px; }
.project-content a { color: var(--text); font-size: .75rem; font-weight: 700; }
.project-content a i { color: var(--primary); margin-left: 6px; }
.portfolio-note { margin-top: 25px; padding: 15px 18px; border: 1px dashed var(--border); border-radius: 13px; color: var(--muted); font-size: .76rem; }
.portfolio-note i { color: var(--primary); margin-right: 7px; }
.portfolio-note code { color: var(--primary); }

/* Testimonials */
.testimonials-section { background: var(--bg); }
.review-card { height: 100%; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.review-stars { color: var(--primary); font-size: .7rem; letter-spacing: 3px; margin-bottom: 22px; }
.review-card > p { color: var(--muted); font-size: .9rem; line-height: 1.8; min-height: 110px; margin-bottom: 25px; }
.review-person { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.review-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; }
.review-person strong, .review-person span { display: block; }
.review-person strong { font-size: .8rem; }
.review-person span { color: var(--muted); font-size: .68rem; margin-top: 3px; }

/* CEO */
.ceo-section { background: var(--bg-soft); }
.ceo-panel { padding: 65px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.ceo-photo-wrap { position: relative; max-width: 430px; margin: 0 auto; }
.ceo-photo-wrap > img, .ceo-placeholder { width: 100%; aspect-ratio: 4 / 5; border-radius: 25px; object-fit: cover; }
.ceo-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.ceo-placeholder i { color: var(--primary); font-size: 3rem; }
.ceo-placeholder span { color: var(--text); font-weight: 700; }
.ceo-placeholder small { font-size: .65rem; }
.ceo-badge { position: absolute; bottom: 18px; left: 18px; padding: 10px 14px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .67rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.ceo-badge i { margin-right: 5px; }
.ceo-panel h2 { margin-bottom: 22px; }
.ceo-panel p { color: var(--muted); max-width: 620px; line-height: 1.8; }
.ceo-lead { font-size: 1rem; }
.ceo-signature { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.ceo-signature strong, .ceo-signature span { display: block; }
.ceo-signature strong { font-size: .88rem; }
.ceo-signature span { color: var(--primary); font-size: .7rem; margin-top: 4px; }

@media (max-width: 767.98px) {
  .project-image { height: 210px; }
  .review-card > p { min-height: 0; }
  .ceo-panel { padding: 30px; border-radius: 20px; }
}

/* SEO capability content */
.seo-content-section { border-top: 1px solid var(--border); }
.seo-mini-card { height: 100%; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.seo-mini-card > i { font-size: 24px; color: var(--primary); margin-bottom: 18px; }
.seo-mini-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.seo-mini-card p { margin: 0; color: var(--muted); line-height: 1.75; }


/* Service detail pages */
.service-hero { padding: 155px 0 90px; background: var(--bg); position: relative; overflow: hidden; }
.service-hero h1 { font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: 1.03; letter-spacing: -.06em; font-weight: 800; max-width: 900px; margin: 18px 0 24px; }
.service-hero h1 span { color: var(--primary); }
.service-hero-copy { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.service-kicker { display:inline-flex; align-items:center; gap:9px; color:var(--primary); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.14em; }
.service-kicker i { font-size:.6rem; }
.service-visual { min-height:330px; border:1px solid var(--border); border-radius:28px; background:linear-gradient(145deg,var(--surface),var(--surface-2)); display:grid; place-items:center; position:relative; overflow:hidden; }
.service-visual:before,.service-visual:after { content:""; position:absolute; border:1px solid rgba(229,9,20,.25); border-radius:50%; }
.service-visual:before { width:330px;height:330px; } .service-visual:after { width:220px;height:220px; }
.service-visual-icon { width:90px;height:90px;border-radius:24px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:2rem;position:relative;z-index:1;box-shadow:0 20px 60px rgba(229,9,20,.28); }
.service-section { padding:90px 0; }
.service-section.alt { background:var(--bg-soft); }
.service-section h2 { font-size:clamp(2rem,4vw,3.4rem); line-height:1.1; letter-spacing:-.045em; font-weight:800; margin-bottom:20px; }
.service-section h2 span { color:var(--primary); }
.service-lead { color:var(--muted); max-width:720px; }
.service-feature { height:100%; padding:28px; border:1px solid var(--border); border-radius:20px; background:var(--surface); }
.service-feature i { color:var(--primary); font-size:1.25rem; margin-bottom:18px; }
.service-feature h3 { font-size:1.05rem; margin-bottom:9px; }
.service-feature p { color:var(--muted); font-size:.84rem; margin:0; }
.service-list { list-style:none; padding:0; margin:28px 0 0; }
.service-list li { display:flex; gap:12px; margin:13px 0; color:var(--muted); }
.service-list i { color:var(--primary); margin-top:5px; }
.service-cta { padding:85px 0; background:var(--bg); }
.service-cta-box { border:1px solid var(--border); border-radius:28px; padding:50px; background:var(--surface); display:flex; align-items:center; justify-content:space-between; gap:30px; }
.service-cta-box h2 { margin:0 0 10px; font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.045em; }
.service-cta-box p { margin:0; color:var(--muted); }
@media(max-width:767.98px){.service-hero{padding:125px 0 70px}.service-section{padding:70px 0}.service-cta-box{display:block;padding:32px}.service-cta-box .btn{width:100%;margin-top:25px}.service-visual{min-height:260px}}
