/* ============================================
   AcuGIS Agent — Landing Page Styles
   ============================================ */

:root {
  --primary: #1565C0;
  --accent: #1976D2;
  --success: #43A047;
  --bg-light: #F8FAFC;
  --text-dark: #1F2937;
  --text-gray: #64748B;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --purple: #7C3AED;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --header-height: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  box-shadow: var(--shadow-md);
}

.btn .material-icons {
  font-size: 20px;
  margin-right: 8px;
}

.btn .material-icons.left {
  margin-right: 8px;
  margin-left: 0;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(21, 101, 192, 0.06);
  color: var(--primary);
  border-color: var(--accent);
}

/* ---------- Navigation ---------- */
.navbar-fixed {
  height: var(--header-height);
}

.navbar-fixed nav {
  height: var(--header-height);
  line-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-nav .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1180px;
  position: relative;
}

.site-nav .brand-logo {
  position: relative;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  height: var(--header-height);
  font-size: 0;
  color: var(--primary);
  float: none;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  height: var(--header-height);
}

.nav-links li {
  float: none;
  line-height: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 14px;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  margin-left: 12px;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.nav-cta .material-icons {
  font-size: 18px;
}

.sidenav-trigger {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  height: var(--header-height);
  margin: 0;
}

.sidenav {
  width: 280px;
  padding-top: 8px;
}

.sidenav-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.sidenav li > a {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  height: 48px;
  line-height: 48px;
}

.sidenav-cta {
  padding: 24px 20px;
}

.sidenav-cta .btn {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Fade-in on scroll */
.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(25, 118, 210, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(67, 160, 71, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-light) 0%, #EEF2F7 100%);
}

.hero-row {
  margin-bottom: 0;
  align-items: center;
}

.hero-content {
  padding-right: 24px !important;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.product-badge-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-badge-name .accent {
  color: var(--success);
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.highlight-icon {
  font-size: 22px !important;
}

.highlight-green { color: var(--success); }
.highlight-blue { color: var(--primary); }
.highlight-purple { color: var(--purple); }

.hero-visual {
  padding-left: 16px !important;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  /* Static — no float / parallax / continuous motion */
}

.hero-dashboard {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ---------- Features ---------- */
.features {
  background: var(--white);
}

.feature-grid {
  margin-bottom: 0;
}

.feature-card {
  height: 100%;
  margin-bottom: 24px;
  padding: 36px 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 14px;
}

.feature-icon .material-icons {
  font-size: 32px;
  color: var(--white);
}

.feature-icon-blue { background: linear-gradient(135deg, #1565C0, #1976D2); }
.feature-icon-green { background: linear-gradient(135deg, #388E3C, #43A047); }
.feature-icon-purple { background: linear-gradient(135deg, #6D28D9, #7C3AED); }

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.55;
}

/* ---------- Products ---------- */
.products {
  background: var(--bg-light);
}

.products-grid {
  margin-bottom: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 148px;
  margin-bottom: 24px;
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 56px;
  height: 56px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-card-soon {
  background: #F1F5F9;
  border-style: dashed;
}

.product-card-soon .product-name {
  color: var(--text-gray);
}

/* ---------- Architecture Hub ---------- */
.how-it-works {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(25, 118, 210, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(67, 160, 71, 0.06), transparent 55%),
    linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 55%, #EEF4FB 100%);
}

.hub-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    ".        monitor  ."
    "install  hub      manage"
    "download services updates";
  gap: 28px 36px;
  align-items: center;
  justify-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 0 8px;
}

.hub-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hub-connector-line {
  fill: none;
  stroke: #90CAF9;
  stroke-width: 1.75;
  stroke-linecap: round;
  opacity: 0.85;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-connector-dot {
  fill: #64B5F6;
  opacity: 0;
  transition: opacity 0.4s ease 0.7s;
}

.hub-diagram.is-drawn .hub-connector-dot {
  opacity: 1;
}

.hub-center,
.hub-node {
  position: relative;
  z-index: 1;
}

.hub-node--monitor { grid-area: monitor; }
.hub-node--install { grid-area: install; }
.hub-node--manage { grid-area: manage; }
.hub-node--download { grid-area: download; }
.hub-node--services { grid-area: services; }
.hub-node--updates { grid-area: updates; }
.hub-center { grid-area: hub; justify-self: center; }

.hub-center-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(21, 101, 192, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(25, 118, 210, 0.06),
    0 16px 40px rgba(15, 23, 42, 0.1);
}

.hub-center-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 14px;
}

.hub-center-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hub-center-label .accent {
  color: var(--success);
}

.hub-center-tagline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hub-node {
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hub-node:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.hub-node:hover .hub-node-icon {
  transform: scale(1.08);
}

.hub-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.hub-node-icon .material-icons {
  font-size: 24px;
  color: var(--white);
}

.hub-node-icon--blue { background: linear-gradient(135deg, #1565C0, #1976D2); }
.hub-node-icon--green { background: linear-gradient(135deg, #388E3C, #43A047); }
.hub-node-icon--purple { background: linear-gradient(135deg, #6D28D9, #7C3AED); }

.hub-node-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hub-node-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ---------- Capabilities ---------- */
.capabilities {
  background: var(--bg-light);
}

.capabilities-grid {
  margin-bottom: 0;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.capability-item .material-icons {
  font-size: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- CTA ---------- */
.cta {
  padding: 88px 0;
  background: linear-gradient(105deg, #1565C0 0%, #1E88E5 45%, #43A047 100%);
  color: var(--white);
}

.cta-icon {
  margin: 0 auto 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-cta-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-cta-primary:hover,
.btn-cta-primary:focus {
  background: #F8FAFC;
  color: var(--primary);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.btn-cta-outline:hover,
.btn-cta-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 64px 0 0;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 15px;
  font-weight: 400;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
}

.footer-bottom {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #64748B;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 992px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-content {
    padding-right: 0.75rem !important;
    margin-bottom: 40px;
    text-align: center;
  }

  .product-badge {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    padding-left: 0.75rem !important;
  }

  .section-title {
    font-size: 34px;
  }

  .cta-title {
    font-size: 32px;
  }

  .hub-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
    grid-template-rows: none;
    gap: 16px;
    padding: 0;
  }

  .hub-connectors {
    display: none;
  }

  .hub-center {
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 8px;
  }

  .hub-center-inner {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hub-node--monitor,
  .hub-node--install,
  .hub-node--manage,
  .hub-node--download,
  .hub-node--services,
  .hub-node--updates {
    grid-area: auto;
  }
}

@media only screen and (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta {
    padding: 64px 0;
  }

  .cta-title {
    font-size: 26px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hub-center-inner {
    width: 160px;
    height: 160px;
    padding: 20px;
  }

  .hub-center-icon {
    width: 48px;
    height: 48px;
  }

  .hub-center-label {
    font-size: 16px;
  }

  .hub-node {
    padding: 18px 14px;
  }

  .hub-node-title {
    font-size: 15px;
  }

  .hub-node-text {
    font-size: 13px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .nav-wrapper .brand-logo {
    left: 0;
    transform: none;
  }
}

/* Materialize overrides */
nav ul a:hover {
  background-color: transparent;
}

.btn:focus,
.btn-large:focus,
.btn-small:focus,
.btn-floating:focus {
  background-color: inherit;
}

.waves-effect {
  display: inline-flex;
}
