:root {
  --navy: #0b3f75;
  --navy-deep: #062a4d;
  --navy-light: #1a5a9e;
  --text: #5a7184;
  --text-light: #8fa3b5;
  --teal: #18b7a5;
  --teal-light: #3dd4c3;
  --teal-glow: rgba(24, 183, 165, 0.25);
  --mint: #e6f8f5;
  --soft: #f4f9fc;
  --surface: #ffffff;
  --line: rgba(11, 63, 117, 0.1);
  --shadow-sm: 0 2px 8px rgba(11, 63, 117, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 63, 117, 0.1);
  --shadow-lg: 0 20px 60px rgba(11, 63, 117, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--surface);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 700;
}

.section-inner {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.blob-1 {
  top: -120px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.blob-2 {
  bottom: 20%;
  left: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(24, 183, 165, 0.15) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  opacity: 0.5;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.brand-sm .brand-mark {
  width: 36px;
  height: 36px;
}

.brand-sm .brand-name {
  font-size: 0.92rem;
}

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

.site-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--soft);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--navy);
  margin-left: 8px;
}

.site-nav .nav-cta:hover {
  background: var(--navy-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 48px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 10px;
  background: var(--mint);
  border: 1px solid rgba(24, 183, 165, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  box-shadow: 0 4px 16px rgba(11, 63, 117, 0.3);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 63, 117, 0.35);
}

.button-ghost {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: var(--soft);
  border-color: rgba(11, 63, 117, 0.2);
}

.button-light {
  color: var(--navy);
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.button-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* Dashboard mockup */
.hero-visual {
  position: relative;
}

.dashboard-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.mock-url {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.mock-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 56px;
  padding: 16px 10px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-nav-item {
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-nav-item.active {
  background: var(--teal);
}

.mock-content {
  flex: 1;
  padding: 20px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mock-card {
  padding: 14px;
  background: var(--soft);
  border-radius: 10px;
}

.mock-card.accent {
  background: var(--mint);
}

.mock-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.mock-card strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
}

.mock-card em {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--teal);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 12px;
  background: var(--soft);
  border-radius: 10px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--teal), var(--teal-light));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  animation: growBar 1.2s ease-out backwards;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes growBar {
  from { height: 0; opacity: 0; }
  to { height: var(--h); opacity: 0.85; }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: -16px;
  right: -20px;
}

.floating-card.card-2 {
  bottom: 24px;
  left: -28px;
  animation-delay: -2s;
}

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

/* Logos */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.logos-label {
  text-align: center;
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logos-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.logos-track span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.7;
  transition: var(--transition);
}

.logos-track span:hover {
  opacity: 1;
  color: var(--navy);
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.0625rem;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Services */
.services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(24, 183, 165, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--mint);
  border-radius: 12px;
  color: var(--teal);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* About */
.about {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-copy p {
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.0625rem;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.about-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--teal);
}

.about-cards {
  display: grid;
  gap: 16px;
}

.about-card {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.about-card.highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: #fff;
}

.about-card.highlight strong,
.about-card.highlight span {
  color: #fff;
}

.about-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.about-card span {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

/* Process */
.process {
  background: var(--surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--teal));
  opacity: 0.4;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  position: relative;
  z-index: 1;
}

.step p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9375rem;
}

/* CTA Banner */
.cta-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal) 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info p {
  margin-bottom: 32px;
  color: var(--text);
  font-size: 1.0625rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: var(--transition);
}

a.contact-item:hover {
  color: var(--teal);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--teal);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
  background: var(--surface);
}

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

.form-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

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

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

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner p {
    max-width: none;
  }
}

@media (max-width: 680px) {
  section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 5vw;
    left: 5vw;
    flex-direction: column;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 16px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-tagline {
    display: none;
  }

  .brand-sm .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .floating-card.card-1 {
    right: 0;
    top: -12px;
  }

  .floating-card.card-2 {
    left: 0;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }

  .mock-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

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

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