/* =========================================================
   MIBI AI — DataPulse inspired visual system
   ========================================================= */
:root {
  --blue: #0080ff;
  --blue-strong: #0066cc;
  --blue-soft: #eff6ff;
  --purple: #8b00ff;
  --purple-soft: #f8f0ff;
  --green: #22c55e;
  --green-strong: #15803d;
  --green-soft: #ecfdf3;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --page: #ffffff;
  --surface: #ffffff;
  --border: #d9e3ef;
  --dark: #0f172a;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --radius-card: 20px;
  --radius-large: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px -18px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 18px 36px -24px rgba(15, 23, 42, 0.22), 0 4px 10px -5px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 32px 70px -32px rgba(13, 45, 105, 0.28), 0 12px 28px -20px rgba(139, 0, 255, 0.14);
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 128, 255, 0.03), transparent 26rem),
    radial-gradient(circle at 92% 48%, rgba(139, 0, 255, 0.025), transparent 30rem),
    var(--page);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

ul {
  list-style: none;
}

::selection {
  color: #fff;
  background: var(--purple);
}

:where(a, button):focus-visible {
  outline: 3px solid rgba(0, 128, 255, 0.5);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(0, 128, 255, 0.5);
}

/* ===== Floating navigation ===== */
.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 0;
  width: 100%;
  padding-inline: 24px;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  min-height: 68px;
  padding: 10px 12px 10px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 34px -18px rgba(15, 23, 42, 0.24), 0 2px 6px rgba(15, 23, 42, 0.03);
  pointer-events: auto;
  transition: min-height 0.25s, box-shadow 0.25s, background 0.25s;
}

.site-header.scrolled .nav-shell {
  min-height: 62px;
  background: #ffffff;
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.38);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 128, 255, 0.12));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

.nav-links a {
  position: relative;
  padding: 9px 15px;
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: #f2f7fd;
}

.nav-links a.active {
  color: var(--blue-strong);
  background: var(--blue-soft);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  box-shadow: 0 7px 18px -10px rgba(15, 23, 42, 0.7);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.nav-contact svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.nav-contact:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
}

.nav-contact:hover svg {
  transform: translateX(2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 10px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Shared type and actions ===== */
.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--blue-strong);
  background: #f5faff;
  border: 1px solid #cfe2f7;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.eyebrow {
  padding: 7px 14px;
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 50%;
  animation: livePulse 2.2s ease-out infinite;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, var(--blue) 5%, var(--purple) 70%, #bd5cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

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

.section-head .section-tag {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.hero h1 {
  letter-spacing: -0.045em;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 800;
}

.section-head h2 .gradient-text {
  display: inline-block;
  white-space: nowrap;
}

.section-head p {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s;
}

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

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 26px -14px rgba(34, 197, 94, 0.76);
}

.btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 17px 30px -14px rgba(34, 197, 94, 0.86);
}

.btn-secondary,
.btn-ghost {
  color: var(--blue-strong);
  background: #ffffff;
  border-color: #9ac7f4;
  box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.35);
}

.btn-secondary:hover,
.btn-ghost:hover {
  color: var(--blue-strong);
  background: var(--blue-soft);
  border-color: rgba(0, 128, 255, 0.56);
}

.btn-dark {
  color: #fff;
  background: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 700;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ===== Home hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 168px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 42% at 52% -8%, rgba(0, 128, 255, 0.1), transparent 68%),
    radial-gradient(ellipse 32% 28% at 88% 30%, rgba(139, 0, 255, 0.07), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #fbf8ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 128, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 77%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 77%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 130px;
  left: 50%;
  width: min(1100px, 92vw);
  height: 580px;
  border: 1px solid rgba(0, 128, 255, 0.1);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: 0 0 0 100px rgba(0, 128, 255, 0.012), 0 0 0 220px rgba(139, 0, 255, 0.008);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  filter: blur(20px);
  border-radius: 50%;
  opacity: 0.22;
  animation: drift 10s ease-in-out infinite alternate;
}

.hero-glow.one {
  top: 80px;
  left: -90px;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.35), transparent 68%);
}

.hero-glow.two {
  top: 300px;
  right: -110px;
  background: radial-gradient(circle, rgba(139, 0, 255, 0.25), transparent 68%);
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
  text-align: center;
}

.hero-content .eyebrow {
  animation: fadeUp 0.75s 0.08s var(--ease) both;
}

.hero h1 {
  max-width: 960px;
  margin: 25px auto 0;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 800;
  line-height: 1.04;
  animation: fadeUp 0.85s 0.16s var(--ease) both;
}

.hero h1 span {
  display: inline-block;
  position: relative;
}

.hero-copy {
  max-width: 720px;
  margin: 23px auto 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  animation: fadeUp 0.85s 0.24s var(--ease) both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  animation: fadeUp 0.85s 0.32s var(--ease) both;
}

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 12px;
  animation: fadeUp 0.85s 0.4s var(--ease) both;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* ===== Dashboard preview ===== */
.dashboard-stage {
  position: relative;
  z-index: 3;
  margin-top: 70px;
}

.dashboard-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 8% -14%;
  background: radial-gradient(ellipse, rgba(0, 128, 255, 0.12), rgba(139, 0, 255, 0.045) 44%, transparent 72%);
  filter: blur(8px);
  opacity: 0.72;
}

.dashboard {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d9e5f2;
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 1s 0.48s var(--ease) both;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 19px;
  background: #f8fbff;
  border-bottom: 1px solid #dde7f2;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 50%;
}

.window-dots i:first-child { background: #ff8e8e; }
.window-dots i:nth-child(2) { background: #ffd166; }
.window-dots i:nth-child(3) { background: #6ee7a0; }

.dashboard-address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 999px;
  font-size: 11px;
}

.dashboard-address svg {
  width: 11px;
  height: 11px;
  color: var(--green);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.dashboard-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 10px;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 540px;
}

.dashboard-sidebar {
  padding: 25px 13px;
  background: #f8fbff;
  border-right: 1px solid #dde7f2;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.dash-brand img {
  width: 24px;
  height: 24px;
}

.dash-nav-label {
  padding: 7px 10px;
  color: #7c8ba1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  margin-bottom: 3px;
  color: #526278;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
}

.dash-nav-item.active {
  color: var(--blue-strong);
  background: #edf5ff;
}

.dash-nav-item svg {
  width: 13px;
  height: 13px;
}

.dashboard-main {
  min-width: 0;
  padding: 25px 26px 24px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.dashboard-heading h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dashboard-heading p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--green-strong);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.dash-live i {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

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

.metric-card {
  position: relative;
  padding: 14px 14px 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 13px;
  box-shadow: 0 5px 18px -12px rgba(15, 23, 42, 0.18);
}

.metric-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 700;
}

.metric-change svg {
  width: 9px;
  height: 9px;
}

.metric-spark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 46px;
  height: 24px;
  opacity: 0.95;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(190px, 0.8fr);
  gap: 12px;
}

.chart-panel,
.donut-panel {
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 14px;
  box-shadow: 0 5px 18px -12px rgba(15, 23, 42, 0.14);
}

.chart-panel {
  padding: 15px 16px 10px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading h3 {
  font-size: 12px;
}

.panel-heading p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.chart-legend {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.line-chart {
  position: relative;
  height: 178px;
  margin-top: 12px;
  background-image: linear-gradient(to bottom, #e4ebf4 1px, transparent 1px);
  background-size: 100% 25%;
}

.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  animation: drawLine 2.2s 1.2s var(--ease) forwards;
}

.chart-line-secondary {
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  animation: drawLine 2.4s 1.35s var(--ease) forwards;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #64748b;
  font-size: 10px;
}

.donut-panel {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.donut-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 19px auto 15px;
}

.donut-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: #e4ebf3;
  stroke-width: 12;
}

.donut-segment {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 20px;
  line-height: 1;
}

.donut-center span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.donut-legend {
  display: grid;
  gap: 6px;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 10px;
}

.donut-legend-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.donut-legend-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #dbe6f1;
  border-radius: 14px;
  box-shadow: 0 18px 44px -18px rgba(15, 23, 42, 0.26);
  animation: floatCard 5s ease-in-out infinite;
}

.float-card.one {
  top: 17%;
  left: -38px;
}

.float-card.two {
  right: -34px;
  bottom: 14%;
  animation-delay: -2.4s;
}

.float-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 10px;
}

.float-icon.green {
  color: var(--green-strong);
  background: var(--green-soft);
}

.float-icon svg {
  width: 16px;
  height: 16px;
}

.float-card strong {
  display: block;
  font-size: 12px;
}

.float-card span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

/* ===== Metrics strip ===== */
.stats {
  position: relative;
  padding: 30px 0 90px;
  background: linear-gradient(180deg, #f7fbff, var(--page));
}

.stats .container {
  padding: 26px 24px;
  background: #ffffff;
  border: 1px solid #d9e4f0;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

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

.stats .grid-4 > div {
  position: relative;
  padding: 4px 18px;
  text-align: center;
}

.stats .grid-4 > div + div::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 0;
  width: 1px;
  height: 70%;
  background: var(--border);
}

.stats .num {
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.stats .num em {
  color: var(--blue);
  font-style: normal;
}

.stats .label {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ===== Sections and cards ===== */
.section {
  position: relative;
  padding: 112px 0;
}

.section.gray {
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 128, 255, 0.032), transparent 25rem),
    radial-gradient(circle at 88% 72%, rgba(139, 0, 255, 0.032), transparent 24rem),
    #f7faff;
  border-block: 1px solid #dce6f1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #dce6f1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  border-color: rgba(0, 128, 255, 0.36);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.75;
}

.card ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.card ul li {
  position: relative;
  padding-left: 19px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.card ul li::before {
  content: "";
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 2px solid var(--green-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.14);
}

.card .icon,
.contact-card .icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 0 24px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(0, 128, 255, 0.1);
  border-radius: 16px;
  transition: transform 0.25s var(--ease);
}

.card:hover .icon {
  transform: rotate(-4deg) scale(1.04);
}

.card .icon svg,
.contact-card .icon svg {
  width: 28px;
  height: 28px;
}

.feature-card {
  min-height: 360px;
}

.feature-card .card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-card .card-kicker i {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.feature-ai {
  grid-column: span 6;
  min-height: 450px;
}

.feature-iot,
.feature-data {
  grid-column: span 3;
}

.feature-ai,
.feature-iot,
.feature-data {
  display: flex;
  flex-direction: column;
}

.feature-ai {
  background:
    radial-gradient(circle at 83% 9%, rgba(139, 0, 255, 0.075), transparent 40%),
    radial-gradient(circle at 20% 100%, rgba(0, 128, 255, 0.055), transparent 42%),
    #ffffff;
}

.feature-ai .icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.feature-ai p {
  max-width: 460px;
}

.ai-visual {
  position: relative;
  height: 145px;
  margin-top: auto;
  padding-top: 25px;
}

.ai-visual::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 2%;
  width: 145px;
  height: 145px;
  background: conic-gradient(from 135deg, rgba(0, 128, 255, 0.08), rgba(139, 0, 255, 0.22), rgba(34, 197, 94, 0.1), rgba(0, 128, 255, 0.08));
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.ai-graph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.ai-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: #ffffff;
  border: 1px solid #dce6f1;
  border-radius: 9px;
  box-shadow: 0 10px 25px -14px rgba(15, 23, 42, 0.25);
  font-size: 10px;
  font-weight: 700;
}

.ai-chip svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.ai-chip:nth-child(2) {
  top: 16%;
  left: 4%;
}

.ai-chip:nth-child(3) {
  top: 7%;
  left: 40%;
}

.ai-chip:nth-child(4) {
  right: 8%;
  bottom: 8%;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
  margin-top: auto;
  padding-top: 22px;
}

.mini-bars i {
  flex: 1;
  min-width: 5px;
  height: var(--h);
  background: linear-gradient(to top, rgba(0, 128, 255, 0.18), var(--blue));
  border-radius: 999px;
}

.feature-iot .mini-bars {
  opacity: 0.82;
}

.data-orbit {
  position: relative;
  width: 100%;
  height: 90px;
  margin-top: auto;
}

.data-orbit::before,
.data-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(139, 0, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.data-orbit::before {
  width: 74px;
  height: 74px;
}

.data-orbit::after {
  width: 112px;
  height: 38px;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.data-orbit i {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--purple);
  border: 3px solid #f2ddff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(139, 0, 255, 0.4);
}

.data-orbit i:nth-child(1) { top: 14px; left: 51%; }
.data-orbit i:nth-child(2) { right: 15%; bottom: 19px; background: var(--blue); border-color: #deefff; }
.data-orbit i:nth-child(3) { left: 17%; bottom: 23px; background: var(--green); border-color: #dff9e8; }

/* ===== Process ===== */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.26) 12%, rgba(139, 0, 255, 0.26) 88%, transparent);
}

.process-step {
  position: relative;
  padding: 22px 22px 26px;
  background: #ffffff;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-no {
  position: relative;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 34px;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  border: 4px solid #f5f8fd;
  border-radius: 50%;
  box-shadow: 0 7px 16px -8px rgba(0, 128, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
}

.process-step:nth-child(2) .step-no { background: var(--blue); }
.process-step:nth-child(3) .step-no { background: var(--purple); }
.process-step:nth-child(4) .step-no { background: var(--green); }

.process-step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ===== AI value / philosophy ===== */
.value-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  overflow: hidden;
  background: #101a2f;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-xl);
}

.value-copy {
  position: relative;
  padding: 60px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(0, 128, 255, 0.34), transparent 52%),
    radial-gradient(circle at 100% 0, rgba(139, 0, 255, 0.3), transparent 42%),
    #0e1830;
}

.value-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.017);
}

.value-copy .section-tag {
  color: #cddfff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.value-copy h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.17;
  letter-spacing: -0.04em;
}

.value-copy h2 span {
  color: #a995ff;
}

.value-copy p {
  max-width: 440px;
  margin-top: 20px;
  color: #aebbd0;
  font-size: 15px;
  line-height: 1.8;
}

.value-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.value-actions .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.value-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.value-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e7ecf3;
}

.value-item {
  min-height: 220px;
  padding: 34px;
  background: #fff;
  transition: background 0.25s;
}

.value-item:hover {
  background: #f8fbff;
}

.value-item .icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 0 44px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 15px;
}

.value-item:nth-child(2) .icon { color: var(--purple); background: var(--purple-soft); }
.value-item:nth-child(3) .icon { color: var(--green-strong); background: var(--green-soft); }
.value-item:nth-child(4) .icon { color: var(--blue-strong); background: #eef7ff; }

.value-item svg {
  width: 26px;
  height: 26px;
}

.value-item h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-wrap {
  padding: 0 0 112px;
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 40px;
  color: #fff;
  text-align: center;
  background: var(--gradient);
  border-radius: var(--radius-large);
  box-shadow: 0 32px 70px -34px rgba(69, 0, 167, 0.66);
}

.cta-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 78%);
}

.cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035), 0 0 0 130px rgba(255, 255, 255, 0.02);
}

.cta-panel .eyebrow {
  margin: 0 auto 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-panel h2 {
  max-width: 790px;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.cta-panel p {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.cta-panel .btn-white {
  color: var(--blue-strong);
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.42);
}

.cta-panel .btn-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.cta-note {
  margin-top: 18px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 11px !important;
}

/* ===== Inner-page hero ===== */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 170px 0 92px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 40% 72% at 50% 10%, rgba(0, 128, 255, 0.1), transparent 76%),
    radial-gradient(circle at 18% 18%, rgba(0, 128, 255, 0.045), transparent 22rem),
    radial-gradient(circle at 86% 52%, rgba(139, 0, 255, 0.055), transparent 24rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 104px;
  left: 50%;
  width: min(740px, 88vw);
  height: 360px;
  border: 1px solid rgba(0, 128, 255, 0.08);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-7deg);
  box-shadow: 0 0 0 60px rgba(0, 128, 255, 0.02), 0 0 0 130px rgba(139, 0, 255, 0.012);
}

.page-hero .eyebrow {
  margin: 0 auto 20px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
}

.page-hero p {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.page-hero .hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.hero-chip {
  padding: 7px 13px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.2);
}

/* ===== About ===== */
.about-text {
  padding: 8px 0;
}

.about-text .section-tag {
  margin-bottom: 18px;
}

.about-text h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.about-text p strong {
  color: var(--text);
  font-weight: 700;
}

.info-table {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f1;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.info-table th {
  width: 104px;
  color: var(--text);
  background: #f7faff;
  font-weight: 700;
  white-space: nowrap;
}

.info-table td {
  color: var(--text-secondary);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 25px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  opacity: 0.28;
}

.timeline-item {
  position: relative;
  padding-top: 25px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 13px;
  height: 13px;
  background: #fff;
  border: 4px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 128, 255, 0.09);
}

.timeline-item:nth-child(2)::before { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(139, 0, 255, 0.08); }
.timeline-item:nth-child(3)::before { border-color: var(--green); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1); }
.timeline-item:nth-child(4)::before { border-color: var(--blue); }

.timeline-item .year {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
}

.timeline-item h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ===== Business ===== */
.business-section .grid-3,
.business-section .grid-2 {
  gap: 20px;
}

.business-section .card {
  min-height: 210px;
}

.business-section .card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.08), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.business-section:nth-of-type(3) .card::after {
  background: radial-gradient(circle, rgba(139, 0, 255, 0.09), transparent 68%);
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
}

.news-card .section-tag {
  margin-bottom: 20px;
}

.news-card h3 {
  font-size: 21px;
  line-height: 1.45;
}

.news-card p {
  margin-top: 12px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 26px;
  color: var(--text-muted);
  font-size: 12px;
}

.news-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), color 0.2s, background 0.2s;
}

.news-card:hover .news-arrow {
  color: #fff;
  background: var(--blue);
  transform: rotate(-10deg);
}

.news-arrow svg {
  width: 15px;
  height: 15px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  position: relative;
  min-height: 230px;
  padding: 32px;
  overflow: hidden;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dce6f1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

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

.contact-card .icon {
  margin-bottom: 35px;
}

.contact-card:nth-child(2) .icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.contact-card:nth-child(3) .icon {
  color: var(--green-strong);
  background: var(--green-soft);
}

.contact-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--blue-strong);
}

.contact-business {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
}

.contact-intro {
  position: relative;
  overflow: hidden;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 100%, rgba(139, 0, 255, 0.45), transparent 44%),
    radial-gradient(circle at 0 0, rgba(0, 128, 255, 0.32), transparent 48%),
    var(--dark);
  border-radius: var(--radius-card);
}

.contact-intro::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -75px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035), 0 0 0 90px rgba(255, 255, 255, 0.02);
}

.contact-intro h2 {
  margin: 25px 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.contact-intro p {
  color: #b9c5d8;
  font-size: 14.5px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-detail {
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-detail span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-detail h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.contact-detail p {
  color: var(--text-secondary);
  font-size: 13.5px;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
  color: #94a3b8;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 128, 255, 0.12), transparent 28rem),
    #0f172a;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.5), rgba(139, 0, 255, 0.5), transparent);
  transform: translateX(-50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 0.8fr 1fr 1.15fr;
  gap: 44px;
  padding-bottom: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.site-footer h4 {
  margin-bottom: 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.site-footer p {
  max-width: 350px;
  color: #8fa0b8;
  font-size: 13px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 12.5px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 9px;
  color: #94a3b8;
  font-size: 12.5px;
}

.footer-contact li {
  padding-left: 15px;
  position: relative;
}

.footer-contact li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #75859d;
  font-size: 11px;
  text-align: center;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom .divider {
  opacity: 0.35;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .nav-links a {
    padding-inline: 10px;
  }

  .float-card.one { left: -12px; }
  .float-card.two { right: -12px; }

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before { display: none; }

  .value-copy {
    padding: 48px 40px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
  }

  .timeline::before { display: none; }

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

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 12px;
    padding-inline: 14px;
  }

  .nav-shell {
    min-height: 62px;
    padding: 8px 9px 8px 14px;
  }

  .logo-text small {
    display: none;
  }

  .nav-contact {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    border: 1px solid #d9e4f0;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    padding: 12px 15px;
  }

  .nav-links a.active::after {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 15px;
    transform: translateY(-50%);
  }

  .hero {
    padding-top: 142px;
  }

  .dashboard-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    display: none;
  }

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

  .donut-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .donut-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .donut-wrap {
    margin: 0 5px;
  }

  .donut-legend {
    width: 100%;
  }

  .float-card {
    display: none;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-ai {
    grid-column: 1 / -1;
  }

  .feature-iot,
  .feature-data {
    grid-column: span 1;
  }

  .value-layout {
    grid-template-columns: 1fr;
  }

  .value-copy {
    min-height: 390px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--max-w));
  }

  .hero {
    padding-top: 128px;
    padding-bottom: 48px;
  }

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

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 9px 15px;
  }

  .dashboard-stage {
    margin-top: 50px;
  }

  .dashboard {
    border-radius: 20px;
  }

  .dashboard-topbar {
    padding-inline: 13px;
  }

  .dashboard-address,
  .dashboard-user span {
    display: none;
  }

  .dashboard-main {
    padding: 18px 14px 16px;
  }

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

  .metric-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .metric-value {
    font-size: 20px;
  }

  .line-chart {
    height: 145px;
  }

  .donut-panel {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    margin: 8px auto 3px;
  }

  .stats {
    padding-bottom: 62px;
  }

  .stats .container {
    padding: 22px 14px;
  }

  .stats .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

  .stats .grid-4 > div:nth-child(3)::before {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

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

  .section-head h2 {
    font-size: 32px;
  }

  .section-head p {
    font-size: 15px;
  }

  .bento-grid,
  .process-grid,
  .news-grid,
  .contact-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-ai,
  .feature-iot,
  .feature-data {
    grid-column: 1;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-ai {
    min-height: 440px;
  }

  .card {
    padding: 25px;
  }

  .value-copy {
    min-height: 420px;
    padding: 40px 27px;
  }

  .value-panel {
    grid-template-columns: 1fr;
  }

  .value-item {
    min-height: 180px;
  }

  .value-item .icon {
    margin-bottom: 28px;
  }

  .cta-wrap {
    padding-bottom: 78px;
  }

  .cta-panel {
    padding: 54px 22px;
    border-radius: 24px;
  }

  .page-hero {
    padding: 132px 0 68px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 22px;
  }

  .timeline::before {
    display: block;
    top: 4px;
    bottom: 8px;
    left: 3px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-item {
    padding: 0 0 32px 0;
  }

  .timeline-item::before {
    top: 4px;
    left: -26px;
  }

  .info-table th {
    width: 85px;
  }

  .info-table th,
  .info-table td {
    padding: 13px 12px;
  }

  .contact-intro {
    padding: 34px 26px;
  }

  .contact-detail {
    padding: 24px;
  }

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

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom .divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes livePulse {
  0% { opacity: 0.7; transform: scale(0.7); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 24px, 0) scale(1.08); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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