:root {
  --primary: #ff7722;
  --primary-dark: #e95f0b;
  --ink: #111318;
  --muted: #68707c;
  --line: #e8e8e8;
  --soft: #f7f7f5;
  --white: #fff;
  --dark: #151719;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(17, 19, 24, 0.08);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.logo,
.nav-link,
.service-title {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 19, 24, 0.07);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  font-size: 21px;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a,
.nav-trigger {
  padding: 11px 13px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: #353a42;
  cursor: pointer;
}
.nav-links > a:hover,
.nav-trigger:hover {
  color: var(--primary);
}
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
}
.menu-wrap {
  position: relative;
}
.mega {
  position: absolute;
  right: 0;
  top: 40px;
  width: min(760px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.menu-wrap:hover .mega,
.menu-wrap:focus-within .mega {
  display: grid;
}
.mega a {
  padding: 16px;
  border-radius: 14px;
  background: #fafafa;
  transition: 0.2s;
}
.mega a:hover {
  background: #fff2ea;
  transform: translateY(-2px);
}
.mega strong {
  display: block;
}
.mega span {
  font-size: 12px;
  color: var(--muted);
}
.mobile-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}
.hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 85% 15%, #ffe7d7 0, transparent 32%),
    linear-gradient(180deg, #fff 0, #fffaf7 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(45px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 16px 0 22px;
  max-width: 760px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--ink);
  transition: 0.2s;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: #fff;
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.float-card {
  position: absolute;
  bottom: 22px;
  left: 20px;
  background: #fff;
  padding: 17px 19px;
  border-radius: 17px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  max-width: 230px;
  transition: all 0.3s ease;
}
.float-card:hover {
  border-color: var(--primary);
  transform: scale(1.03);
}
.float-card b {
  font-size: 24px;
}
.section {
  padding: 92px 0;
}
.section.soft {
  background: var(--soft);
}
.section.dark {
  background: var(--dark);
  color: #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 38px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 8px 0 0;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
  margin: 0;
}
.dark .section-head p {
  color: #aeb4bc;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card,
.info-card {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(17, 19, 24, 0.04);
}
.dark .service-card {
  background: #1d1f22;
  border-color: transparent;
  box-shadow: none;
}
.service-card:hover,
.info-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.icon {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #fff0e8;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 24px;
}
.service-card h3,
.info-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
}
.service-card p,
.info-card p {
  color: var(--muted);
  font-size: 14px;
}
.dark .service-card p {
  color: #aeb4bc;
}
.service-link {
  font-size: 13px;
  font-weight: 850;
  color: var(--primary-dark);
  display: inline-flex;
  margin-top: 12px;
}

/* ── Shared click-ripple for all cards ── */
.service-card .ripple,
.info-card .ripple,
.platform .ripple,
.step .ripple,
.stat .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 119, 34, 0.15);
  pointer-events: none;
  animation: rippleWave 0.55s linear forwards;
}
@keyframes rippleWave {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Technology Ecosystem platform cards ── */
.platform {
  border-radius: 26px;
  padding: 34px;
  background: #fff;
  color: var(--ink);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(17, 19, 24, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.platform:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(255, 119, 34, 0.15);
  transform: scale(1.03);
}


.platform .badge {
  background: rgba(255, 119, 34, 0.10);
  color: #e95f0b;
  border: 1px solid rgba(255, 119, 34, 0.25);
  transition: background 0.25s ease;
}
.platform:hover .badge {
  background: rgba(255, 119, 34, 0.18);
}
.platform h3 {
  margin: 10px 0 6px;
  color: var(--ink);
}
.platform p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.platform a {
  font-size: 14px;
  font-weight: 600;
  color: #ff7722;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  width: fit-content;
}
.platform a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff7722;
  border-radius: 2px;
  transition: width 0.28s ease;
}
.platform:hover a::after {
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  display: block;
  font-size: 36px;
  letter-spacing: -0.05em;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.detail-hero {
  padding: 78px 0 64px;
  background: #fff7f2;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 55px;
  align-items: center;
}
.detail-hero h1 {
  font-size: clamp(45px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 12px 0 20px;
}
.detail-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}
.detail-art {
  height: 420px;
  border-radius: 30px;
  overflow: hidden;
}
.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checklist {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.check i {
  font-style: normal;
  color: var(--primary);
  font-weight: 900;
}
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.step {
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(17, 19, 24, 0.04);
  transition: all 0.3s ease;
}
.step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.step b {
  color: var(--primary);
  font-size: 12px;
}
.step h3 {
  margin: 9px 0 6px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
}
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.contact-panel {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(17, 19, 24, 0.04);
  transition: all 0.3s ease;
}
.contact-panel:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.01);
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}
.field label {
  font-size: 13px;
  font-weight: 800;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9dce0;
  border-radius: 12px;
  font: inherit;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #ff77221c;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.footer {
  background: #111318;
  color: #fff;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  margin: 0 0 14px;
}
.footer a,
.footer p {
  color: #aeb4bc;
  font-size: 13px;
}
.footer a {
  display: block;
  margin: 8px 0;
}
.footer-bottom {
  border-top: 1px solid #2b2f34;
  margin-top: 35px;
  padding-top: 18px;
  color: #777e88;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.badge {
  display: inline-flex;
  padding: 7px 10px;
  background: #fff0e8;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-grid,
  .detail-grid,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero-media img {
    height: 390px;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat {
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mega {
    right: -10px;
  }
  .mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-open .nav-links .menu-wrap .mega {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    display: grid;
    margin-top: 5px;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    display: none;
  }
  .hero {
    padding: 58px 0;
  }
  .section {
    padding: 65px 0;
  }
  .grid-4,
  .process,
  .stats,
  .faq,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-media img {
    height: 330px;
  }
  .float-card {
    left: 12px;
  }
  .section-head {
    display: block;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin-top: 7px;
  }
}

/* Theme Toggle Styles */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s;
}
.theme-toggle:hover {
  transform: scale(1.1);
}
.mobile-actions {
  display: none;
}
@media (max-width: 900px) {
  .mobile-toggle {
    display: block !important;
  }
  .mobile-actions {
    display: flex !important;
  }
  .theme-toggle-desktop {
    display: none !important;
  }
}

/* Dark Mode Overrides */
html[data-theme="dark"] {
  --ink: #f4f6f8;
  --muted: #aeb4bc;
  --line: #2b2f34;
  --soft: #1d1f22;
  --white: #111318;
  --dark: #0a0b0d;
}
html[data-theme="dark"] body {
  background: #111318;
  color: #f4f6f8;
}
html[data-theme="dark"] .site-header {
  background: rgba(17, 19, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
html[data-theme="dark"] .nav-links > a,
html[data-theme="dark"] .nav-trigger {
  color: #e2e8f0;
}
html[data-theme="dark"] .nav-links > a:hover,
html[data-theme="dark"] .nav-trigger:hover {
  color: var(--primary);
}
html[data-theme="dark"] .nav-cta {
  background: #fff !important;
  color: #111318 !important;
}
html[data-theme="dark"] .mega {
  background: #1d1f22;
  border-color: #2b2f34;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .mega a {
  background: #151719;
}
html[data-theme="dark"] .mega a:hover {
  background: #2b2f34;
}
html[data-theme="dark"] .mega span {
  color: #aeb4bc;
}
html[data-theme="dark"] .mobile-open .nav-links {
  background: #111318;
  border-bottom-color: #2b2f34;
}
html[data-theme="dark"] .hero {
  background: radial-gradient(circle at 85% 15%, rgba(255, 119, 34, 0.15) 0, transparent 32%), linear-gradient(180deg, #111318 0, #151719 100%);
}
html[data-theme="dark"] .btn-dark {
  background: #fff;
  color: #111318;
}
html[data-theme="dark"] .btn-light {
  background: #1d1f22;
  color: #fff;
  border-color: #2b2f34;
}
html[data-theme="dark"] .float-card {
  background: #1d1f22;
  border-color: #2b2f34;
}
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .info-card {
  background: #1d1f22;
  border-color: transparent;
}
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .info-card:hover {
  border-color: var(--primary);
}
html[data-theme="dark"] .icon {
  background: #2a201a;
}
html[data-theme="dark"] .platform {
  background: #1d1f22;
  border-color: transparent;
  color: #f4f6f8;
}
html[data-theme="dark"] .platform:hover {
  border-color: var(--primary);
}
html[data-theme="dark"] .platform h3 {
  color: #f4f6f8;
}
html[data-theme="dark"] .platform .badge {
  color: #ff8b42;
}
html[data-theme="dark"] .detail-hero {
  background: #151719;
}
html[data-theme="dark"] .step {
  background: #1d1f22;
  border-color: transparent;
}
html[data-theme="dark"] .step:hover {
  border-color: var(--primary);
}
html[data-theme="dark"] .contact-panel {
  background: #1d1f22;
  border-color: transparent;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea {
  background: #111318;
  color: #f4f6f8;
  border-color: #2b2f34;
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus {
  border-color: var(--primary);
}
html[data-theme="dark"] .brand-img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .topbar {
  background: #1d1f22;
  color: #f4f6f8;
}
