:root {
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --bg: #020617;
  --bg-soft: #020617;
  --text: #e5e7eb;
  --muted: #64748b;
  --border: rgba(148,163,184,0.3);
  --card-bg: rgba(15,23,42,0.9);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 60px rgba(15,23,42,0.65);
}

/* Animations */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34,197,94,0);
  }
}

@keyframes nl-loader-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37,99,235,0.65);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 20px rgba(37,99,235,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37,99,235,0);
  }
}

@keyframes nl-loader-fade {
  0% {
    opacity: 0.55;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nl-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.25), transparent 55%),
    #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

.nl-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nl-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.nl-loader-logo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #2563eb, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(191,219,254,0.5);
  animation: nl-loader-pulse 1.6s ease-out infinite;
}

.nl-loader-label {
  font-size: 0.8rem;
  color: #cbd5f5;
  opacity: 0.9;
  animation: nl-loader-fade 1.2s ease-out infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: fade-up 0.7s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

.float-soft.is-visible {
  animation: fade-up 0.7s ease both, float-soft 8s ease-in-out 0.8s infinite;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

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

/* Layout */

.nl-login-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #0f172a 0, #020617 55%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.nl-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.nl-login-card {
  max-width: 360px;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.6);
  background:
    radial-gradient(circle at 0 0, rgba(56,189,248,0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(129,140,248,0.22), transparent 55%),
    rgba(15,23,42,0.96);
  box-shadow: 0 24px 70px rgba(15,23,42,0.95);
  padding: 1.6rem 1.5rem 1.5rem;
  animation: nl-login-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-login-logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #2563eb, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(191,219,254,0.4),
              0 18px 40px rgba(37,99,235,0.7);
  margin-bottom: 1rem;
  animation: nl-loader-pulse 1.8s ease-out infinite;
}

.nl-login-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
}

.nl-login-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.nl-login-error {
  font-size: 0.78rem;
  color: #fecaca;
  background: rgba(248,113,113,0.08);
  border-radius: 0.6rem;
  border: 1px solid rgba(248,113,113,0.35);
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.9rem;
}

.nl-login-button {
  width: 100%;
  justify-content: center;
  margin-top: 0.8rem;
}

.nl-login-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 30px rgba(37,99,235,0.6);
}

@keyframes nl-login-pop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.96), rgba(15,23,42,0.82), transparent);
  border-bottom: 1px solid rgba(148,163,184,0.2);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .nav {
  opacity: 0;
  transform: translateY(-8px);
}

.nav.nav-loaded {
  opacity: 1;
  transform: translateY(0);
  animation: fade-in 0.6s ease both;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  animation: nav-drop 0.6s ease-out both;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #1d4ed8, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  box-shadow: 0 0 0 1px rgba(191,219,254,0.2), 0 12px 40px rgba(37,99,235,0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav-links a {
  padding: 0.35rem 0.1rem;
  color: #cbd5f5;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  border-color: rgba(129,140,248,0.7);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.16s ease-out;
}

.btn-ghost {
  border-color: rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.6);
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.8);
  transform: translateY(-1px);
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #60a5fa, #2563eb);
  border-color: rgba(191,219,254,0.7);
  box-shadow: 0 12px 40px rgba(37,99,235,0.72);
}

.btn-primary:hover {
  box-shadow: 0 18px 60px rgba(37,99,235,0.95);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn span {
  font-size: 0.7rem;
}

/* Hero */

.hero {
  padding: 2.75rem 1.5rem 3.5rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.35);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
}

.hero-title span {
  background: linear-gradient(to right, #93c5fd, #e5e7eb);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta strong {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-right {
  position: relative;
}

.hero-card {
  border-radius: 26px;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.35), transparent 55%), radial-gradient(circle at 100% 0, rgba(59,130,246,0.45), transparent 55%), var(--card-bg);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dbeafe;
}

.hero-card-chip {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(191,219,254,0.9);
  background: rgba(15,23,42,0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-card-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.metric-card {
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  font-size: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(191,219,254,0.7);
  box-shadow: 0 12px 32px rgba(15,23,42,0.55);
}

.metric-label {
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.metric-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.metric-pill {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #a5b4fc;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.hero-card-footer small {
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-card-footer strong {
  font-size: 0.75rem;
}

/* Sections */

.section {
  padding: 0 1.5rem 3.2rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 26rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.9);
  padding: 1.1rem 1rem;
  font-size: 0.82rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(191,219,254,0.65);
  box-shadow: 0 14px 40px rgba(15,23,42,0.5);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.card-title {
  font-weight: 550;
  font-size: 0.85rem;
}

.chip {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.7rem;
  color: var(--muted);
}

.card-body {
  color: var(--muted);
  line-height: 1.5;
}

.card-body p {
  margin: 0 0 0.6rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #a5b4fc;
}

/* Timeline */

.timeline {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.9);
  padding: 1.3rem 1.2rem;
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.timeline-line {
  width: 1px;
  background: linear-gradient(to bottom, rgba(148,163,184,0.7), transparent);
  margin: 0.25rem 0 0.4rem;
}

.timeline-item {
  padding-bottom: 0.9rem;
}

.timeline-label {
  font-size: 0.75rem;
  color: #a5b4fc;
  margin-bottom: 0.15rem;
}

.timeline-title {
  font-size: 0.85rem;
  font-weight: 550;
  margin-bottom: 0.15rem;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.6rem;
}

.form-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.95);
  padding: 1.3rem 1.2rem 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.form-label {
  font-size: 0.78rem;
  color: #cbd5f5;
}

.form-control, .form-textarea, .form-select {
  border-radius: 0.7rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus, .form-textarea:focus, .form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 6px 16px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Sidebar card */

.contact-meta {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.9);
  padding: 1.2rem 1.1rem;
  font-size: 0.8rem;
}

/* Console */

.nl-console-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.nl-console-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.nl-console-link {
  color: #a5b4fc;
  cursor: pointer;
}

.nl-console-link:hover {
  text-decoration: underline;
}

.nl-console-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nl-console-filter-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nl-console-filter-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  cursor: pointer;
  text-decoration: none;
}

.nl-console-filter-pill.is-active {
  border-color: #60a5fa;
  background: rgba(37,99,235,0.25);
}

.nl-console-search {
  min-width: 180px;
}

.nl-console-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.nl-console-table th,
.nl-console-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(30,41,59,0.9);
}

.nl-console-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
}

.nl-console-table tr:hover td {
  background: rgba(15,23,42,0.9);
}

.nl-console-star {
  font-size: 0.9rem;
  color: #64748b;
}

.nl-console-star.is-on {
  color: #facc15;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float-soft.is-visible,
  .badge-dot,
  .hero-card-chip-dot,
  .nav,
  .js-enabled .nav {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }

  .metric-card,
  .card,
  .btn,
  .nav-links a,
  .footer-links a {
    transition: none !important;
  }
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(51,65,85,0.9);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  font-weight: 500;
}

.meta-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Comparison table */

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15,23,42,0.92);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(51,65,85,0.8);
}

.compare-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5f5;
  background: rgba(15,23,42,0.98);
}

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

/* Footer */

.footer {
  padding: 1.5rem 1.5rem 1.6rem;
  border-top: 1px solid rgba(15,23,42,0.9);
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-links a {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Utilities */

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
  will-change: opacity, transform, filter;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-3, .grid-2, .contact-layout, .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-inner {
    padding-inline: 1rem;
  }
  .hero, .section, .footer {
    padding-inline: 1rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .card:hover,
  .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.45);
    border-color: rgba(96,165,250,0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-inner,
  .hero-card {
    animation: none;
  }

  .js .reveal {
    transition: none;
  }
}
