/* ==========================================================================
   Nestio.ca — Marketing site styles
   ========================================================================== */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

/* Design tokens */
:root {
  --color-primary-dark: #0f1b2d;
  --color-primary-blue: #2e9bd6;
  --color-primary-blue-dark: #1f7fb8;
  --color-indigo: #5b6cf0;
  --color-violet: #6c5cf0;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f7fc;
  --color-text: #41505f;
  --color-text-muted: #6b7a8d;
  --color-success: #19b97e;
  --color-border: #e6edf4;

  --gradient-brand: linear-gradient(120deg, #2e9bd6 0%, #4f8bef 55%, #6c5cf0 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(46, 155, 214, 0.14), rgba(108, 92, 240, 0.14));

  --font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(15, 27, 45, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(15, 27, 45, 0.28);
  --shadow-glow: 0 16px 40px -12px rgba(79, 139, 239, 0.5);

  --maxw: 1180px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-primary-blue-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head p {
  color: var(--color-text-muted);
  font-size: 18px;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-blue);
  margin-bottom: 16px;
}

.muted {
  color: var(--color-text-muted);
}

.center {
  text-align: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, background-position 0.4s ease,
    color 0.15s ease, border-color 0.15s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  background-position: 0 0;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 22px 46px -12px rgba(79, 139, 239, 0.62);
}

.btn--outline {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #c4d2e0;
}

.btn--outline:hover {
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn--dark:hover {
  background: #1b2c44;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--light {
  background: #fff;
  color: var(--color-primary-blue);
}

.btn--light:hover {
  background: #f0f6fb;
  color: var(--color-primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 16px;
}

/* Scroll-reveal (class applied by JS so no-JS shows everything) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 64px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}

.nav__links > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary-dark);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__links > li > a:hover,
.nav__links > li > a:focus-visible,
.nav__links > li > a[aria-current="page"] {
  color: var(--color-primary-blue);
  background: var(--gradient-brand-soft);
}

/* Features dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__caret {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret {
  transform: rotate(180deg);
}

/* invisible bridge so hover survives the gap to the menu */
.nav__item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
}

.nav__dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 290px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 120;
}

/* gradient accent strip along the top of the panel */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient-brand);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown li {
  width: 100%;
}

.nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.nav__dropdown a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.16s ease, transform 0.16s ease;
  flex-shrink: 0;
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible {
  background: var(--gradient-brand-soft);
  color: var(--color-primary-blue);
  padding-left: 15px;
}

.nav__dropdown a:hover::before,
.nav__dropdown a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary-dark);
}

.nav__toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 60px;
  color: #fff;
  background:
    radial-gradient(820px 500px at 86% -16%, rgba(108, 92, 240, 0.46), transparent 60%),
    radial-gradient(720px 580px at -8% 120%, rgba(46, 155, 214, 0.4), transparent 58%),
    linear-gradient(142deg, #0b1424 0%, #142544 46%, #1c3f6e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Homepage-only larger immersive hero */
.hero--home {
  padding: 80px 0 72px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__badge svg {
  width: 15px;
  height: 15px;
  color: #ff5a4d;
}

.hero .eyebrow {
  color: #6cd0ff;
}

.hero h1 {
  margin-bottom: 20px;
  color: #fff;
}

.hero--home h1 {
  font-size: clamp(32px, 3.5vw, 42px);
  letter-spacing: -0.025em;
  color: #fff;
}

.hero h1 .accent {
  background: linear-gradient(95deg, #6cd0ff, #9b8cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero--home .hero__sub {
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero__cta .btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

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

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.hero__note svg {
  width: 16px;
  height: 16px;
  color: #4fd394;
  flex-shrink: 0;
}

.hero .btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* Hero entrance animation */
.hero__copy > * {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.14s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.2s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.26s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Product mockup placeholder */
.mockup {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.mockup__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cdd8e0;
}

.mockup__body {
  padding: 22px;
  display: grid;
  gap: 16px;
}

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

.mockup__stat {
  min-width: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.mockup__stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(16px, 4.6vw, 22px);
  color: var(--color-primary-dark);
}

.mockup__stat small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.mockup__chart i {
  flex: 1;
  background: linear-gradient(
    180deg,
    var(--color-primary-blue),
    #7bc4ea
  );
  border-radius: 4px 4px 0 0;
}

.mockup__line {
  height: 12px;
  border-radius: 6px;
  background: var(--color-bg-alt);
}

.mockup__line--short {
  width: 55%;
}

/* Markets hub hero visual: property-type tiles */
.market-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.market-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}

.market-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--gradient-brand);
}

.market-tile__icon svg {
  width: 20px;
  height: 20px;
}

.market-tile b {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Hero visual: glow, float cards, motion */
.hero__visual {
  position: relative;
}

.hero__glow {
  position: absolute;
  inset: 6% -6% -10% 8%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(86, 192, 245, 0.55), transparent 72%);
  filter: blur(30px);
  border-radius: 50%;
  pointer-events: none;
}

.hero--home .mockup {
  position: relative;
  z-index: 1;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-lg);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hero__float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.hero__float-icon svg {
  width: 18px;
  height: 18px;
}

.hero__float-icon--ok {
  background: rgba(47, 168, 106, 0.12);
  color: var(--color-success);
}

.hero__float-icon--ai {
  background: rgba(46, 155, 214, 0.12);
  color: var(--color-primary-blue);
}

.hero__float-text {
  display: grid;
  line-height: 1.25;
}

.hero__float-text b {
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: var(--color-primary-dark);
}

.hero__float-text small {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.hero__float--tr {
  top: 30px;
  right: -18px;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero__float--bl {
  bottom: 26px;
  left: -26px;
  animation: heroFloat 6.5s ease-in-out 0.4s infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .hero__visual .mockup,
  .hero__visual .hero__img,
  .hero__float--tr,
  .hero__float--bl {
    animation: none;
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trustbar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 28px 0;
}

.trustbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-primary-dark);
}

.trustbar__item svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 999px;
  background: var(--gradient-brand-soft);
  color: var(--color-primary-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Cards / feature grid
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #d4e4f5;
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 26px -10px rgba(46, 155, 214, 0.55);
}

.card__icon svg {
  width: 27px;
  height: 27px;
  color: #fff;
}

/* Per-card accent variety so the grid isn't a wall of identical chips */
.grid--3 .card:nth-child(6n + 1) .card__icon {
  background: linear-gradient(135deg, #2e9bd6, #4f8bef);
  box-shadow: 0 12px 26px -10px rgba(46, 155, 214, 0.55);
}
.grid--3 .card:nth-child(6n + 2) .card__icon {
  background: linear-gradient(135deg, #19b97e, #2bb6c4);
  box-shadow: 0 12px 26px -10px rgba(25, 185, 126, 0.5);
}
.grid--3 .card:nth-child(6n + 3) .card__icon {
  background: linear-gradient(135deg, #5b6cf0, #6c5cf0);
  box-shadow: 0 12px 26px -10px rgba(91, 108, 240, 0.55);
}
.grid--3 .card:nth-child(6n + 4) .card__icon {
  background: linear-gradient(135deg, #8a5cf0, #c45cf0);
  box-shadow: 0 12px 26px -10px rgba(160, 92, 240, 0.5);
}
.grid--3 .card:nth-child(6n + 5) .card__icon {
  background: linear-gradient(135deg, #f0995b, #f06c8a);
  box-shadow: 0 12px 26px -10px rgba(240, 130, 110, 0.5);
}
.grid--3 .card:nth-child(6n + 6) .card__icon {
  background: linear-gradient(135deg, #2e9bd6, #6c5cf0);
  box-shadow: 0 12px 26px -10px rgba(108, 92, 240, 0.5);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.card__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card:hover .card__link {
  transform: translateX(3px);
  opacity: 0.88;
}

/* ==========================================================================
   AI spotlight
   ========================================================================== */
.ai-card {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(91, 108, 240, 0.45), transparent 65%),
    radial-gradient(360px 240px at 0% 100%, rgba(46, 155, 214, 0.38), transparent 60%),
    linear-gradient(150deg, #1d3057 0%, #182a4c 45%, #14224080 100%),
    linear-gradient(150deg, #1b2c4f, #142340);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.ai-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(91, 108, 240, 0.45);
}

.ai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  z-index: 1;
}

.ai-card .tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c9d4ff;
  background: rgba(91, 108, 240, 0.18);
  border: 1px solid rgba(91, 108, 240, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ai-card h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-bottom: 8px;
}

.ai-card p {
  position: relative;
  z-index: 1;
  color: rgba(226, 234, 245, 0.78);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   Built for Canada
   ========================================================================== */
.canada-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.canada-item svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.canada-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.canada-item p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--featured {
  border-color: var(--color-primary-blue);
  box-shadow: var(--shadow-md);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.price-card__price {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.price-card__price b {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.price-card__price span {
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
}

.price-card__min {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.price-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 12px;
}

.price-card li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  align-items: flex-start;
}

.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 28px;
}

/* Add-ons */
.addons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.addon {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.addon h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.addon p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Pricing teaser (home)
   ========================================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teaser {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfe3f1;
}

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

.teaser__price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary-blue);
  margin-bottom: 6px;
}

.teaser p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px 28px;
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  background: none;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--color-primary-dark);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__q svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__q[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq__a-inner {
  padding: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(700px 420px at 82% -45%, rgba(108, 92, 240, 0.5), transparent 60%),
    linear-gradient(120deg, #0b1424 0%, #1c3f6e 68%, #2e9bd6 130%);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 22px;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-head {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(820px 460px at 86% -16%, rgba(108, 92, 240, 0.46), transparent 60%),
    radial-gradient(720px 520px at -8% 120%, rgba(46, 155, 214, 0.4), transparent 58%),
    linear-gradient(142deg, #0b1424 0%, #142544 46%, #1c3f6e 100%);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head .eyebrow {
  color: #6cd0ff;
}

.page-head h1 {
  color: #fff;
}

.page-head p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 8px auto 0;
}

/* ==========================================================================
   Features page sections
   ========================================================================== */
.feature-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-block__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.feature-block h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-block ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.feature-block li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--color-text);
}

.feature-block li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 4px;
}

.callout {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-blue);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 14.5px;
}

.callout strong {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Features page — quick links + alternating rows
   ========================================================================== */
.quick-links {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}

.quick-links__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.quick-links__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quick-links__grid a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.quick-links__grid a:hover,
.quick-links__grid a:focus-visible {
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
  transform: translateY(-1px);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.feature-row:last-of-type {
  border-bottom: none;
}

.feature-row__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-blue);
  margin-bottom: 10px;
}

.feature-row h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-row__intro {
  color: var(--color-text-muted);
  font-size: 17px;
}

.feature-row ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.feature-row li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--color-text);
}

.feature-row li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-row--reverse .feature-row__media {
  order: -1;
}

.feature-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, #eaf5fc 0%, #f4f8fb 100%);
}

/* Feature detail "what's included" checklist */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  max-width: 820px;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--color-text);
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* "What's included" card grid */
.incl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}

.incl-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.incl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4e2f0;
}

.incl-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gradient-brand);
  color: #fff;
  flex-shrink: 0;
}

.incl-card__icon svg {
  width: 22px;
  height: 22px;
}

.incl-card__body h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.incl-card__body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* varied accent chips so the grid isn't monotone */
.incl-grid .incl-card:nth-child(5n + 1) .incl-card__icon { background: linear-gradient(135deg, #2e9bd6, #5b6cf0); }
.incl-grid .incl-card:nth-child(5n + 2) .incl-card__icon { background: linear-gradient(135deg, #19b97e, #2e9bd6); }
.incl-grid .incl-card:nth-child(5n + 3) .incl-card__icon { background: linear-gradient(135deg, #5b6cf0, #6c5cf0); }
.incl-grid .incl-card:nth-child(5n + 4) .incl-card__icon { background: linear-gradient(135deg, #6c5cf0, #c44fe0); }
.incl-grid .incl-card:nth-child(5n + 5) .incl-card__icon { background: linear-gradient(135deg, #2e9bd6, #6c5cf0); }

@media (max-width: 768px) {
  .incl-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   About page
   ========================================================================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 8px;
}

.principle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.principle:last-child {
  border-bottom: none;
}

.principle svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.principle h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.principle p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-aside {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-aside h3 {
  margin-bottom: 10px;
}

.contact-aside .info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
}

.contact-aside .info svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-aside .info b {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-primary-dark);
}

.contact-aside .info span {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-success {
  display: none;
  background: #e9f7f0;
  border: 1px solid #b9e6cf;
  color: #1f6f47;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.form-success.is-visible {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #c3cdd6;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 1.1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
  margin: 0;
  color: #9fadb8;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #c3cdd6;
  font-size: 14.5px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #9fadb8;
}

.footer-bottom a {
  color: #9fadb8;
}

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

.footer-bottom__links {
  display: flex;
  gap: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__sub {
    max-width: none;
  }

  .hero__float--tr {
    right: 0;
  }

  .hero__float--bl {
    left: 0;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .feature-row--reverse .feature-row__media {
    order: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }

  .hero--home h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .nav__links,
  .nav__cta .btn {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  /* Mobile menu */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
  }

  .nav__links.is-open li {
    width: 100%;
  }

  .nav__links.is-open a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links.is-open .nav__mobile-cta {
    border-bottom: none;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav__links.is-open .btn {
    display: inline-flex;
    width: 100%;
  }

  /* Features dropdown shown inline on mobile */
  .nav__caret {
    display: none;
  }

  .nav__links.is-open .nav__item--dropdown {
    position: static;
  }

  .nav__links.is-open .nav__item--dropdown::after {
    display: none;
  }

  .nav__links.is-open .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav__links.is-open .nav__dropdown::before {
    display: none;
  }

  .nav__links.is-open .nav__dropdown a {
    padding: 11px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    white-space: normal;
  }

  .nav__links.is-open .nav__dropdown a::before {
    display: none;
  }

  .grid--3,
  .grid--2,
  .pricing-grid,
  .teaser-grid,
  .trustbar__grid,
  .addons,
  .field-row,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trustbar__grid {
    gap: 16px;
  }

  .trustbar__item {
    justify-content: flex-start;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .btn--lg {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* Default: hide mobile-only nav cta on desktop */
.nav__mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .nav__mobile-cta {
    display: block;
  }

  .hero__float {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
