:root {
  --ink: #0b0f19;
  --navy: #111827;
  --slate: #0f172a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --dim: #64748b;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --border: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.045);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(249, 115, 22, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--ink), var(--navy) 48%, var(--ink));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: var(--border);
  background: rgba(11, 15, 25, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.site-header.menu-active {
  z-index: 200;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

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

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.brand-mark span {
  position: absolute;
  right: -2px;
  top: 9px;
  width: 19px;
  height: 19px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-radius: 999px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.brand-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer .brand-logo {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.nav-close {
  display: none;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
}

.brand-copy small {
  color: var(--soft);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  box-shadow: 0 0 48px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: var(--orange-soft);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

body.light-mode {
  --ink: #0f172a;
  --navy: #f8fafc;
  --slate: #e2e8f0;
  --text: #0f172a;
  --muted: #1e293b;
  --soft: #334155;
  --dim: #475569;
  --orange: #ea580c;
  --orange-soft: #fb923c;
  --border: rgba(15, 23, 42, 0.12);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 18% 6%, rgba(249, 115, 22, 0.12), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fafc, #e2e8f0 48%, #f8fafc);
}

body.light-mode .site-header.scrolled,
body.light-mode .site-header.menu-active {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

body.light-mode .nav-toggle {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.08);
}

body.light-mode .nav-toggle span {
  background: var(--orange);
}

body.light-mode .nav-links a {
  color: var(--muted);
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
}

body.light-mode .btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .brand-mark {
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}

body.light-mode .section-grid::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

body.light-mode .hero-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 62%);
}

body.light-mode .hero h1,
body.light-mode .section-head h2,
body.light-mode .about h2,
body.light-mode .contact h2,
body.light-mode .cta h2,
body.light-mode .service-card h3,
body.light-mode .product-card h3,
body.light-mode .timeline h3,
body.light-mode .tech-grid h3,
body.light-mode .industry-grid article,
body.light-mode .why-grid article,
body.light-mode .footer h3 {
  color: var(--ink);
}

body.light-mode .hero-text,
body.light-mode .service-card p,
body.light-mode .product-card p,
body.light-mode .about p,
body.light-mode .contact p,
body.light-mode .cta span,
body.light-mode .footer p,
body.light-mode .footer a,
body.light-mode .copyright,
body.light-mode .stats span,
body.light-mode .dash-head span,
body.light-mode .mini-card small,
body.light-mode .product-card small,
body.light-mode .contact-form label {
  color: var(--dim);
}

body.light-mode .hero-tags span,
body.light-mode .chips span,
body.light-mode .eyebrow,
body.light-mode .contact-info a,
body.light-mode .contact-info span,
body.light-mode .dash-metrics article,
body.light-mode .workflow-list p,
body.light-mode .stats article,
body.light-mode .card-grid article,
body.light-mode .service-card,
body.light-mode .product-card,
body.light-mode .timeline article,
body.light-mode .industry-grid article,
body.light-mode .why-grid article,
body.light-mode .contact-form,
body.light-mode .dashboard-main,
body.light-mode .mini-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.78));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

body.light-mode .nav-links,
body.light-mode .nav-links.open {
  background: rgba(248, 250, 252, 0.92);
}

body.light-mode .hero-tags span,
body.light-mode .chips span {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  color: var(--dim);
}

body.light-mode .dash-head strong,
body.light-mode .dash-metrics strong,
body.light-mode .workflow-list b,
body.light-mode .product-card a {
  color: var(--ink);
}

body.light-mode .dash-metrics article,
body.light-mode .workflow-list p {
  background: rgba(15, 23, 42, 0.04);
}

body.light-mode .product-visual {
  background:
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.2), transparent 40%),
    rgba(248, 250, 252, 0.82);
}

body.light-mode .product-visual b,
body.light-mode .product-visual i,
body.light-mode .product-visual em {
  color: var(--ink);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea,
body.light-mode .contact-form select {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
  color: #94a3b8;
}

body.light-mode .cta {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(248, 250, 252, 0.95) 48%, rgba(56, 189, 248, 0.08));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
}

body.light-mode .footer {
  background: rgba(248, 250, 252, 0.94);
}

body.light-mode .footer a {
  color: var(--dim);
}

body.light-mode .copyright {
  color: var(--soft);
}

body.light-mode .stats strong,
body.light-mode .dash-head strong,
body.light-mode .service-card span,
body.light-mode .badge,
body.light-mode .mini-icon {
  color: var(--orange);
}

body.light-mode .mini-icon {
  background: rgba(249, 115, 22, 0.12);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 110px;
  overflow: hidden;
}

.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 110px;
  left: 50%;
  width: 640px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 62%);
  filter: blur(20px);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  color: var(--orange-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.spark {
  width: 9px;
  height: 9px;
  background: var(--orange);
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
}

.hero h1,
.section-head h2,
.about h2,
.contact h2,
.cta h2 {
  margin: 0;
  color: #fff;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 76px);
}

.hero-text {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-tags span,
.chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 12px;
  padding: 7px 11px;
}

.dashboard-wrap {
  position: relative;
  min-height: 540px;
}

.dashboard-wrap::before {
  content: "";
  position: absolute;
  inset: 4% 2%;
  border-radius: 42px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 58%);
  filter: blur(28px);
}

.glass,
.service-card,
.product-card,
.timeline article,
.industry-grid article,
.why-grid article,
.contact-form,
.dashboard-main,
.mini-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-main {
  position: absolute;
  right: 0;
  top: 82px;
  width: 86%;
  border-radius: 24px;
  padding: 26px;
}

.dash-head,
.dash-metrics,
.workflow-list p {
  display: flex;
}

.dash-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.dash-head span,
.mini-card small,
.product-card small {
  display: block;
  color: var(--dim);
  font-size: 12px;
}

.dash-head strong,
.mini-card strong {
  display: block;
  margin-top: 5px;
  color: #fff;
}

.dash-head em {
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #86efac;
  font-size: 12px;
  font-style: normal;
  padding: 7px 13px;
}

.dash-metrics {
  gap: 12px;
}

.dash-metrics article {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.dash-metrics i {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--orange);
}

.dash-metrics span,
.workflow-list {
  color: var(--soft);
  font-size: 12px;
}

.dash-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.workflow-list p {
  align-items: center;
  gap: 15px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 14px;
}

.workflow-list b {
  color: var(--orange);
}

.workflow-list span {
  margin-left: auto;
  color: #6ee7b7;
}

.mini-card {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  padding: 22px;
}

.automation-card {
  top: 20px;
  left: 0;
  width: 70%;
}

.mini-icon {
  float: left;
  display: grid;
  width: 44px;
  height: 44px;
  margin-right: 13px;
  place-items: center;
  border-radius: 13px;
  background: rgba(249, 115, 22, 0.13);
  color: var(--orange);
}

.bars {
  clear: both;
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.bars i,
.product-visual span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.bars i,
.product-visual em {
  background: linear-gradient(90deg, var(--orange), #67e8f9);
}

.cloud-card {
  right: 0;
  bottom: 74px;
  width: 224px;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.cloud-grid span {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.cloud-grid span:nth-child(1),
.cloud-grid span:nth-child(4),
.cloud-grid span:nth-child(7),
.cloud-grid span:nth-child(10) {
  background: rgba(249, 115, 22, 0.28);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-slow {
  animation: float 7s ease-in-out infinite;
}

.floating-alt {
  animation: float-alt 5.5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-alt {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, -8px);
  }
}

.stats {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stats article {
  border-radius: 20px;
  padding: 22px;
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 30px;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 14px;
}

.section {
  padding-block: 105px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p,
.cta p {
  margin: 0 0 16px;
  color: var(--orange-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head h2,
.about h2,
.contact h2,
.cta h2 {
  font-size: clamp(32px, 5vw, 54px);
}

.card-grid,
.industry-grid,
.tech-grid,
.why-grid {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 260px;
  border-radius: 18px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.34);
  box-shadow: 0 0 50px rgba(249, 115, 22, 0.18);
}

.service-card span {
  display: grid;
  width: 49px;
  height: 49px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 13px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}

.service-card h3,
.product-card h3,
.timeline h3,
.tech-grid h3 {
  margin: 0;
  color: #fff;
}

.service-card p,
.product-card p,
.about p,
.contact p,
.tech-grid p,
.footer p {
  color: var(--soft);
  line-height: 1.65;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-wide {
  grid-column: 1 / -1;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.product-card h3 {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.product-card a {
  color: var(--orange-soft);
  font-weight: 800;
}

.product-visual {
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.2), transparent 40%),
    rgba(15, 23, 42, 0.78);
  padding: 26px 18px;
}

.product-visual b {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-visual i {
  color: var(--orange-soft);
  font-style: normal;
}

.product-visual em {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.industry-grid,
.tech-grid {
  grid-template-columns: repeat(4, 1fr);
}

.industry-grid article,
.why-grid article {
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--orange), rgba(255, 255, 255, 0.12), transparent);
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  margin-left: 28px;
  border-radius: 18px;
  padding: 22px;
}

.timeline b {
  color: var(--orange-soft);
}

.tech-grid article {
  border-radius: 18px;
  padding: 26px;
}

.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 1041px) {
  .why-grid article:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.why-grid article::before {
  content: "✓";
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  color: var(--orange);
}

.about,
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about article,
.contact-form {
  border-radius: 22px;
  padding: 34px;
}

.cta {
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(15, 23, 42, 0.92) 48%, rgba(34, 211, 238, 0.11));
  box-shadow: 0 0 55px rgba(249, 115, 22, 0.18);
  padding: 64px;
}

.cta span {
  display: block;
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-info {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-info a,
.contact-info span {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-form .full,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  outline: none;
  padding: 14px 16px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: #86efac;
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
  gap: 38px;
}

.footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
}

.footer a {
  display: block;
  margin: 0 0 11px;
  color: var(--soft);
  font-size: 14px;
}

.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li {
  position: relative;
  padding-left: 18px;
}

.footer-services li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--orange-soft);
  font-size: 16px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}

.footer-contact a {
  display: inline;
  margin: 0;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-soft);
}

.footer .brand {
  display: inline-flex;
}

.footer .brand strong {
  color: #fff;
}

.copyright {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--dim);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {

  .hero-layout,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .dashboard-wrap {
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  .stats-grid,
  .service-grid,
  .industry-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .product-wide {
    grid-column: auto;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }

  .brand-logo {
    height: 80px;
  }

  .footer .brand {
    justify-content: center;
    width: 100%;
  }

  .footer .brand-logo {
    height: 110px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 80px 14px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: rgba(11, 15, 25, 0.97);
    padding: 90px 16px 32px;
    box-shadow: -12px 0 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(24px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 320ms;
    /* overflow-y: auto; */
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Close "×" button inside sidebar */
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--soft);
    font-size: 14px;
    cursor: pointer;
    border: none;
  }

  body.light-mode .nav-close {
    background: rgba(15, 23, 42, 0.08);
    color: var(--ink);
  }

  .nav-links a {
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Dim overlay behind the sidebar */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.55);
    animation: fadeIn 250ms ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-text {
    font-size: 17px;
  }

  .dashboard-wrap {
    min-height: 500px;
  }

  .dashboard-main,
  .automation-card,
  .cloud-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 16px;
  }

  .dash-metrics,
  .product-card,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-services,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid>div:first-child p {
    text-align: center;
  }

  .stats-grid,
  .service-grid,
  .industry-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 76px;
  }

  .section-head {
    margin-bottom: 38px;
    text-align: left;
  }

  .cta {
    padding: 34px 22px;
  }

  .contact-form button {
    width: 100%;
  }
}

@media (max-width: 767px) {

  .automation-card,
  .cloud-card {
    display: none !important;
  }

  .dashboard-wrap {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    height: 75px;
  }

  .footer .brand {
    justify-content: center;
    width: 100%;
  }

  .footer .brand-logo {
    height: 120px;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .cta div {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .dash-head {
    gap: 12px;
    flex-direction: column;
  }

  /* Sidebar slightly narrower on very small screens */
  .nav-links {
    width: 88vw;
    padding-top: 80px;
  }
}

/* Floating Actions Styling */
.whatsapp-btn,
.back-to-top-btn {
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

/* WhatsApp button specific styling */
.whatsapp-btn {
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

/* Pulse animation for WhatsApp */
.whatsapp-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: wa-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Back to Top button specific styling */
.back-to-top-btn {
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
}

.back-to-top-btn.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

/* On hover active state override to prevent conflict */
.back-to-top-btn.active:hover {
  transform: scale(1.1) translateY(-4px);
}

.top-icon {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments */
@media (max-width: 520px) {
  .whatsapp-btn {
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .top-icon {
    width: 18px;
    height: 18px;
  }
}

/* Product Details Expand/Collapse */
.btn-product-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  margin-top: 14px;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-product-details:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--orange-soft);
}

.btn-product-details .chevron-icon {
  transition: transform 250ms ease;
}

.btn-product-details[aria-expanded="true"] {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--orange);
  color: var(--orange-soft);
}

.btn-product-details[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.product-details-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: grid-template-rows 250ms ease, opacity 250ms ease, visibility 250ms ease, margin-top 250ms ease;
  margin-top: 0;
}

.product-details-content.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  margin-top: 18px;
}

.product-details-inner {
  min-height: 0;
  overflow: hidden;
}

/* Light mode specific styling */
body.light-mode .btn-product-details {
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}

body.light-mode .btn-product-details:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--orange);
}

body.light-mode .btn-product-details[aria-expanded="true"] {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--orange);
  color: var(--orange);
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}