/* ================================================
   CloudCoreSoft — Redesigned Stylesheet
   ================================================ */

/* ---------- VARIABLES ---------- */
:root {
  color-scheme: light;
  --ink: #082033;
  --muted: #5f7487;
  --line: #d7e9f6;
  --blue: #0878d7;
  --sky: #38bdf8;
  --cyan: #67e8f9;
  --navy: #031a31;
  --navy-2: #062c52;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --shadow: 0 24px 70px rgba(6, 46, 86, 0.14);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7fbff;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(103, 232, 249, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- GRADIENT TEXT ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--sky), var(--cyan), #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-dark {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(215, 233, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: padding var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(6, 46, 86, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  color: #365166;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  white-space: nowrap;
  padding: 6px 0;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e7f6ff, #dbeafe);
  color: var(--blue) !important;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 120, 215, 0.18);
}

.nav-cta svg {
  flex-shrink: 0;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 4px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: 720px;
  padding: 80px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(3, 26, 49, 0.95) 0%, rgba(5, 55, 101, 0.86) 43%, rgba(8, 120, 215, 0.38) 100%),
    url("assets/network-hero.png") center / cover no-repeat;
  color: white;
  overflow: hidden;
}

/* Floating decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation-duration: 10s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, var(--sky), transparent 70%);
  animation-duration: 12s;
  animation-delay: -3s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 25%;
  background: radial-gradient(circle, var(--indigo), transparent 70%);
  animation-duration: 9s;
  animation-delay: -5s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 35%;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

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

/* ---------- BUTTONS ---------- */
.button,
button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover,
button:hover {
  transform: translateY(-2px);
}

.button:active,
button:active {
  transform: translateY(0);
}

.button.primary,
button {
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: #05233d;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.button.primary:hover,
button:hover {
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
}

/* Pulse effect on primary CTA */
.button.pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25); }
  50% { box-shadow: 0 4px 32px rgba(56, 189, 248, 0.5), 0 0 48px rgba(103, 232, 249, 0.2); }
}

.button.secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.button.primary.dark {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  box-shadow: 0 4px 16px rgba(3, 26, 49, 0.25);
}

.button.primary.dark:hover {
  box-shadow: 0 8px 28px rgba(8, 120, 215, 0.3);
}

.button.secondary.light {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.button.secondary.light:hover {
  background: rgba(8, 120, 215, 0.06);
  box-shadow: 0 8px 28px rgba(8, 120, 215, 0.12);
}

/* ---------- HERO PANEL ---------- */
.hero-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-panel:hover {
  transform: translateY(-4px);
}

.console-card {
  border-radius: 14px;
  padding: 24px;
  background: rgba(4, 25, 47, 0.92);
  border: 1px solid rgba(103, 232, 249, 0.25);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-top span {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

.console-top strong {
  color: var(--cyan);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-grid span,
.console-status span,
.integration-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-grid span {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 0.84rem;
}

.service-grid span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.console-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.console-status span {
  min-height: 36px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--cyan);
  font-size: 0.76rem;
}

/* ---------- SECTIONS ---------- */
.section,
.contact,
.band {
  padding: 90px clamp(18px, 5vw, 72px);
}

/* ---------- INTRO ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: white;
}

.intro h2,
.section-heading h2,
.band h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.intro > p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-metrics > span {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fcff, #eef7ff);
  color: var(--muted);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.intro-metrics > span:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6, 46, 86, 0.1);
  border-color: var(--sky);
}

.intro-metrics strong {
  color: var(--blue);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
}

/* ---------- PRODUCTS ---------- */
#products {
  background: linear-gradient(180deg, #eef7ff, #ffffff 34%, #f4fbff);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 40px rgba(6, 46, 86, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(6, 46, 86, 0.14);
  border-color: var(--sky);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sky), var(--blue));
  transition: width var(--transition);
}

.product-card:hover::before {
  width: 6px;
}

.product-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  border-color: rgba(103, 232, 249, 0.2);
}

.product-card.featured:hover {
  border-color: var(--cyan);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.product-card.featured::before {
  background: linear-gradient(180deg, var(--cyan), var(--sky));
}

.product-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.icon {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e7f6ff, #dbeafe);
  color: var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover .icon {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(8, 120, 215, 0.18);
}

.featured .icon {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.15), rgba(56, 189, 248, 0.1));
  color: var(--cyan);
}

.featured:hover .icon {
  box-shadow: 0 6px 18px rgba(103, 232, 249, 0.2);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.product-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #3f5669;
}

.product-card li {
  position: relative;
  padding-left: 20px;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

/* ---------- INTEGRATION BAND ---------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #064d87);
  color: white;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
}

.integration-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.integration-list span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.integration-list span:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- PROCESS / STEPS ---------- */
.process {
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps div {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.steps div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6, 46, 86, 0.1);
  border-color: var(--sky);
}

.steps span {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7f6ff, #dbeafe);
  color: var(--blue);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(6, 46, 86, 0.08);
  transition: transform var(--transition);
}

.steps div:hover span {
  transform: scale(1.08);
}

.steps h3 {
  margin: 18px 0 10px;
  font-size: 1.16rem;
}

.steps p,
.contact p {
  margin: 0;
  color: var(--muted);
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: linear-gradient(135deg, #def4ff, #f8fcff);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 24px 70px rgba(6, 46, 86, 0.1);
  transition: box-shadow var(--transition);
}

.contact-form:hover {
  box-shadow: 0 28px 80px rgba(6, 46, 86, 0.14);
}

label {
  display: grid;
  gap: 7px;
  color: #30495d;
  font-size: 0.92rem;
  font-weight: 800;
}

.required {
  color: #ef4444;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid #c8e0f0;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  background: #fbfdff;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
  background: #fff;
}

input.error,
select.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 56px clamp(18px, 5vw, 72px) 40px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 8px;
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
  box-shadow: 0 8px 28px rgba(8, 120, 215, 0.3);
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 36px rgba(8, 120, 215, 0.4);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1080px) {
  .hero,
  .intro,
  .band,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-metrics {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(3, 26, 49, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    font-size: 1.2rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav a:not(.nav-cta)::after {
    background: var(--cyan);
  }

  .nav-cta {
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    color: #05233d !important;
  }

  .site-header {
    position: sticky;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .hero-panel {
    max-width: 100%;
  }

  .service-grid,
  .console-status,
  .product-grid,
  .steps,
  .integration-list {
    grid-template-columns: 1fr;
  }

  .product-card.featured {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .button.pulse {
    animation: none;
  }
}
