/* ============================================================
   SmartClinity — Components
   ============================================================ */

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), border-bottom var(--transition-slow);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-thin);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav.nav--dark {
  background: transparent;
}

.nav.nav--dark.scrolled {
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-shrink: 0;
}

.nav__logo img {
  height: 32px;
  width: auto;
  /* transparent PNG — no blend mode needed on light nav */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-40);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--grey-700);
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.nav__link:hover { color: var(--grey-900); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.active { color: var(--grey-900); }
.nav__link.active::after { transform: scaleX(1); }

.nav--dark-text .nav__link { color: rgba(255,255,255,0.7); }
.nav--dark-text .nav__link:hover { color: var(--white); }

/* Platform page: white nav when over dark hero */
.nav--on-dark .nav__link { color: rgba(255,255,255,0.65); }
.nav--on-dark .nav__link:hover { color: var(--white); }
.nav--on-dark .nav__link.active { color: var(--white); }
.nav--on-dark .nav__link.active::after { background: rgba(255,255,255,0.5); }
.nav--on-dark .nav__logo img {
  filter: invert(1); /* black symbol → white on dark hero */
  /* no blend mode needed: PNG background is transparent */
}
.nav--on-dark .nav__hamburger span { background: var(--white); }

.nav__cta {
  margin-left: var(--space-24);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-8);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--grey-900);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-40);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile .nav__link {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}


/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Primary */
.btn--primary {
  background: var(--grey-900);
  color: var(--white);
  border-color: var(--grey-900);
}
.btn--primary:hover {
  background: var(--grey-700);
  border-color: var(--grey-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--grey-900);
  border-color: var(--grey-100);
}
.btn--ghost:hover {
  border-color: var(--grey-900);
  transform: translateY(-1px);
}

/* Ghost white (on dark) */
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-white:hover {
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* Gradient */
.btn--gradient {
  background: var(--gradient-green);
  color: var(--grey-900);
  border-color: transparent;
}
.btn--gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(137, 217, 87, 0.35);
}

/* Arrow */
.btn__arrow {
  display: inline-flex;
  transition: transform var(--transition-base);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Link style */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--grey-700);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: color var(--transition-base), gap var(--transition-base);
}
.link-arrow:hover { color: var(--grey-900); gap: var(--space-12); }
.link-arrow .arrow { transition: transform var(--transition-base); }
.link-arrow:hover .arrow { transform: translateX(4px); }


/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */

.card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
}

.card:hover {
  border-color: var(--grey-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Stat card */
.stat-card {
  padding: var(--space-40) var(--space-32);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.stat-card__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--grey-900);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-8);
}

.stat-card__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--grey-300);
  margin-bottom: var(--space-16);
}

.stat-card__desc {
  font-size: var(--fs-body);
  color: var(--grey-500);
  line-height: var(--lh-relaxed);
}

/* Application card */
.app-card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-40);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-slow);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.app-card:hover {
  border-color: var(--grey-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.app-card:hover::before { opacity: 1; }

.app-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-32);
}

.app-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--grey-900);
  margin-bottom: var(--space-12);
}

.app-card__desc {
  font-size: var(--fs-body);
  color: var(--grey-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-32);
}

/* Value props */
.value-item {
  padding: var(--space-32);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.value-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-20);
  color: var(--grey-300);
}

.value-item__title {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: var(--space-8);
}

.value-item__desc {
  font-size: var(--fs-small);
  color: var(--grey-500);
  line-height: var(--lh-relaxed);
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  font-size: var(--fs-body);
  color: var(--grey-600, #4a4a4a);
  line-height: var(--lh-normal);
}

.feature-item__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-green);
  margin-top: 9px;
}


/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero--compact {
  min-height: 56vh;
  padding-block: calc(var(--nav-height) + var(--space-64)) var(--space-80);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-green);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.hero__eyebrow-text {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--grey-300);
}

.hero__headline {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--grey-900);
  line-height: 1.08;
  margin-bottom: var(--space-24);
  max-width: 14ch;
}

.hero__sub {
  font-size: var(--fs-body-lg);
  color: var(--grey-500);
  line-height: var(--lh-relaxed);
  max-width: 48ch;
  margin-bottom: var(--space-48);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════
   DIAGRAMS
   ══════════════════════════════════════════════ */

.diagram-container {
  width: 100%;
  position: relative;
}

.diagram-container svg {
  width: 100%;
  height: auto;
}


/* ══════════════════════════════════════════════
   TECH LAYER STACK
   ══════════════════════════════════════════════ */

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.layer-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-32) var(--space-40);
  background: var(--grey-50);
  border-left: 3px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.layer-item:hover {
  background: var(--white);
  border-left-color: #89d957;
}

.layer-item__num {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--grey-200);
  letter-spacing: var(--ls-wider);
  min-width: 24px;
}

.layer-item__content {}
.layer-item__title {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: var(--space-4);
}
.layer-item__desc {
  font-size: var(--fs-small);
  color: var(--grey-300);
  line-height: var(--lh-normal);
}

.layer-item__badge {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--grey-100);
  color: var(--grey-500);
  white-space: nowrap;
}

.layer-item--accent .layer-item__badge {
  background: linear-gradient(135deg, rgba(137,217,87,0.15), rgba(246,230,88,0.15));
  color: #5a8a20;
}


/* ══════════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-20) var(--space-24);
  text-align: left;
  border-bottom: var(--border-thin);
  font-size: var(--fs-body);
}

.comparison-table th {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--grey-300);
  background: var(--grey-50);
}

.comparison-table th:first-child { color: var(--grey-500); background: transparent; }
.comparison-table td:first-child {
  font-weight: var(--fw-medium);
  color: var(--grey-700);
}

.comparison-table tr:last-child td { border-bottom: none; }

.check-yes {
  color: #5a8a20;
  font-weight: var(--fw-semibold);
}
.check-no {
  color: var(--grey-200);
}

/* ══════════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════════ */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-40);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 180px;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grey-100);
  margin-bottom: var(--space-20);
  border: 2px solid var(--grey-100);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.team-card__avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gradient-green);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.team-card:hover .team-card__avatar::after { opacity: 1; }

.team-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--grey-300);
  letter-spacing: 0.05em;
}

.team-card__name {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: var(--space-4);
}

.team-card__role {
  font-size: var(--fs-small);
  color: var(--grey-300);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.form-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--grey-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-16) var(--space-20);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-900);
  font-size: var(--fs-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--grey-300);
  box-shadow: 0 0 0 3px rgba(137, 217, 87, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-200);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

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


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.5);
  padding-block: var(--space-64);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-64);
  margin-bottom: var(--space-64);
}

.footer__logo img {
  height: 56px;   /* 2x larger */
  width: auto;
  filter: invert(1); /* dark text → white, light bg → near-black */
  mix-blend-mode: screen; /* near-black bg disappears on dark footer, white logo shows */
  margin-bottom: var(--space-16);
}

.footer__tagline {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.35);
  line-height: var(--lh-relaxed);
  max-width: 36ch;
}

.footer__col-title {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: var(--space-20);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.footer__link {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-base);
}
.footer__link:hover { color: rgba(255,255,255,0.85); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-32);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > *:first-child { grid-column: 1 / -1; }
}

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


/* ══════════════════════════════════════════════
   ROADMAP / TIMELINE
   ══════════════════════════════════════════════ */

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-green);
  z-index: 0;
}

.roadmap-phase {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-inline: var(--space-16);
  text-align: center;
}

.roadmap-phase__dot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--grey-100);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-phase__dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-200);
  transition: background var(--transition-base);
}

.roadmap-phase:hover .roadmap-phase__dot-inner {
  background: var(--grad-green-start);
}

.roadmap-phase__num {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--grey-200);
  margin-bottom: var(--space-8);
}

.roadmap-phase__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--grey-900);
  margin-bottom: var(--space-8);
}

.roadmap-phase__desc {
  font-size: 12px;
  color: var(--grey-300);
  line-height: var(--lh-normal);
}

@media (max-width: 640px) {
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap::before { display: none; }
}

/* ══════════════════════════════════════════════
   MISC
   ══════════════════════════════════════════════ */

/* Tag / badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  background: var(--grey-50);
  color: var(--grey-500);
  border: var(--border-thin);
}

/* Metric row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric-cell {
  background: var(--white);
  padding: var(--space-40) var(--space-32);
  text-align: center;
}

.metric-cell__value {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--grey-900);
  line-height: 1;
  margin-bottom: var(--space-8);
}

.metric-cell__label {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--grey-300);
}

@media (max-width: 640px) {
  .metrics-row { grid-template-columns: 1fr; }
}

/* Quote / callout */
.callout {
  border-left: 2px solid var(--grey-900);
  padding: var(--space-24) var(--space-32);
  background: var(--grey-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout p {
  font-size: var(--fs-body-lg);
  color: var(--grey-700);
  line-height: var(--lh-relaxed);
  font-style: italic;
}

/* Pill tag tech */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: var(--border-thin);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--grey-500);
  background: var(--white);
}

.tech-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grey-200);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding-block: var(--space-120);
}

.cta-section__headline {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--grey-900);
  margin-bottom: var(--space-20);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-section__sub {
  font-size: var(--fs-body-lg);
  color: var(--grey-300);
  margin-bottom: var(--space-40);
  max-width: 44ch;
  margin-inline: auto;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}
