/* Nantasket Analytics — Design System */

:root {
  --navy: #002040;
  --navy-light: #103858;
  --teal: #4a708b;
  --teal-bright: #a8c4d4;
  --coral: #2c5570;
  --sand: #dfe8ee;
  --cream: #f4f7f9;
  --white: #ffffff;
  --text: #001c38;
  --text-muted: #4a5f73;
  --border: rgba(0, 32, 64, 0.10);
  --shadow: 0 4px 24px rgba(0, 32, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 32, 64, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--teal-bright);
}

ul {
  list-style: none;
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Layout */

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header .lead {
  margin: 1rem auto 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 32, 64, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--navy-light);
  box-shadow: 0 8px 30px rgba(0, 32, 64, 0.35);
}

.hero .btn-primary,
.cta .btn-primary {
  background: var(--sand);
  color: var(--navy);
}

.hero .btn-primary:hover,
.cta .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.7rem 0;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--border);
}

.nav.scrolled {
  background: rgba(244, 247, 249, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0, 32, 64, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: clamp(4.5rem, 8.5vw, 6.5rem);
  width: auto;
  max-width: min(22rem, 58vw);
  border-radius: 8px;
  background: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--navy);
}

.nav-links a:not(.btn).active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-links .btn-primary {
  color: var(--white);
}

.nav-links .btn-primary:hover,
.nav-links .btn-primary:focus-visible {
  color: var(--white);
  background: var(--navy-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10.5rem;
  padding-bottom: 8rem;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(74, 112, 139, 0.38) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 196, 212, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 60% 60%, rgba(16, 56, 88, 0.28) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
}

.hero-wave path {
  fill: var(--cream);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .highlight,
.page-hero h1 .highlight {
  color: var(--teal-bright);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal-bright);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 112, 139, 0.28);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon.teal { background: rgba(74, 112, 139, 0.14); }
.card-icon.coral { background: rgba(44, 85, 112, 0.14); }
.card-icon.navy { background: rgba(0, 32, 64, 0.10); }

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--sand);
  color: var(--text-muted);
}

/* Feature band */

.band {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.band-dark {
  background: var(--navy);
  color: var(--white);
}

.band-dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.band-dark h2 {
  color: var(--white);
}

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.4;
  line-height: 1;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

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

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-avatar {
  height: 200px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
}

.team-avatar.a1 { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.team-avatar.a2 { background: linear-gradient(135deg, var(--navy-light), #7a9bb0); }
.team-avatar.a3 { background: linear-gradient(135deg, var(--coral), var(--teal)); }
.team-avatar.a4 { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.team-avatar.a5 { background: linear-gradient(135deg, #5a849c, var(--sand)); }
.team-avatar.a6 { background: linear-gradient(135deg, var(--navy), var(--teal)); }

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.team-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.expertise-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Partnerships */

.partner-tier {
  margin-bottom: 4rem;
}

.partner-tier h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.partner-tier > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover {
  border-color: rgba(74, 112, 139, 0.35);
  box-shadow: var(--shadow);
}

.partner-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
}

.partner-logo.aws { background: #ff9900; color: #232f3e; }
.partner-logo.azure { background: #0078d4; }
.partner-logo.snow { background: #29b5e8; color: #0d2137; }
.partner-logo.dbt { background: #ff694a; }
.partner-logo.tableau { background: #e97627; }
.partner-logo.custom { background: var(--navy); }

.partner-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.partner-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Featured products */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.featured-product {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.featured-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-product.featured-primary {
  border-color: rgba(74, 112, 139, 0.35);
  box-shadow: 0 8px 40px rgba(0, 32, 64, 0.10);
}

.featured-product-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.featured-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: rgba(74, 112, 139, 0.14);
  color: var(--teal);
  margin-bottom: 1rem;
}

.featured-badge.flagship {
  background: linear-gradient(135deg, rgba(74, 112, 139, 0.18), rgba(168, 196, 212, 0.28));
  color: var(--navy);
}

.featured-product h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.featured-product .product-url {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
}

.featured-product-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-product-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.featured-product-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.featured-product-body ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.featured-product-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.featured-product-accent {
  height: 4px;
}

.featured-product-accent.teal { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.featured-product-accent.coral { background: linear-gradient(90deg, var(--coral), var(--teal)); }
.featured-product-accent.navy { background: linear-gradient(90deg, var(--navy), var(--navy-light)); }
.featured-product-accent.violet { background: linear-gradient(90deg, var(--navy-light), var(--teal)); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
  transition: gap var(--transition);
}

.product-link:hover {
  gap: 0.65rem;
}

/* Product detail */

.product-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: var(--navy);
  color: var(--white);
}

.product-hero .lead {
  color: rgba(255, 255, 255, 0.75);
}

.use-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.use-case:last-child {
  border-bottom: none;
}

.use-case:nth-child(even) .use-case-visual {
  order: -1;
}

.use-case-visual {
  background: linear-gradient(135deg, var(--sand), var(--white));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-bar {
  flex: 1;
  max-width: 200px;
  height: 8px;
  background: var(--sand);
  border-radius: 4px;
  margin-left: 1rem;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  border-radius: 4px;
}

.use-case h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.use-case p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.use-case ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.use-case ul li {
  margin-bottom: 0.5rem;
}

/* CTA */

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(168, 196, 212, 0.18), transparent);
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta .lead {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2rem;
}

/* Footer */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

/* Page header (inner pages) */

.page-hero {
  padding: 12.5rem 0 4.5rem;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.75);
  margin: 1rem auto 0;
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Growth metrics */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.metric-card .stat-number {
  color: var(--teal);
}

.metric-card .stat-label {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .use-case {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .use-case:nth-child(even) .use-case-visual {
    order: 0;
  }

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

  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 4rem;
    max-width: min(15.5rem, 64vw);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
