/* ============================================
   NIA Landing Page — Brand & Layout
   ============================================ */

:root {
  --color-bg: #060b14;
  --color-bg-elevated: #0c1424;
  --color-bg-card: #111b2e;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text: #e8edf5;
  --color-text-muted: #8b9cb8;
  --color-text-dim: #5a6a85;

  --color-navy: #001d61;
  --color-primary: #2563eb;
  --color-primary-light: #29abe2;
  --color-accent: #1da1f2;
  --color-accent-cyan: #38bdf8;

  --gradient-brand: linear-gradient(135deg, #001d61 0%, #2563eb 45%, #29abe2 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(41, 171, 226, 0.2), transparent);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(41, 171, 226, 0.15);

  --header-height: 72px;
  --container-max: 1140px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-border-hover);
}

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

/* ============================================
   Header / Nav
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(6, 11, 20, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(6, 11, 20, 0.95);
}

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

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

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link--cta {
  padding: 10px 20px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.nav__link--cta:hover {
  background: rgba(37, 99, 235, 0.25);
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 64px) 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
}

.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% 60% at 50% 30%, black, transparent);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* Dashboard preview */
.hero__visual {
  position: relative;
  margin-top: 64px;
}

.dashboard-preview {
  display: flex;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-preview__sidebar {
  flex-shrink: 0;
  width: 168px;
  padding: 20px 16px;
  background: #f8fafc;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-preview__logo {
  display: block;
  height: 28px;
  width: auto;
  aspect-ratio: 268 / 147;
  margin-bottom: 24px;
}

.dashboard-preview__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-preview__nav span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.dashboard-preview__nav-active {
  background: var(--gradient-brand);
  color: #fff !important;
}

.dashboard-preview__main {
  flex: 1;
  min-width: 0;
  background: var(--color-navy);
}

.dashboard-preview__header {
  padding: 18px 24px 0;
}

.dashboard-preview__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-preview__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 28px;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 12px;
}

.kpi-row__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  line-height: 1.3;
}

.kpi-row__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.kpi-row__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
}

.section__header {
  margin-bottom: 56px;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Problem section */
.problem {
  background: var(--color-bg-elevated);
}

.problem__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.problem__card {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.problem__card--before {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.problem__card--after {
  background: rgba(41, 171, 226, 0.08);
  border: 1px solid rgba(41, 171, 226, 0.2);
}

.problem__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.problem__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.problem__arrow {
  color: var(--color-text-dim);
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Steps */
.steps {
  background: var(--color-bg-elevated);
}

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

.step {
  position: relative;
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step__number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.step__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Benefits */
.benefits__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.benefits__list {
  margin-top: 32px;
}

.benefits__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.benefits__list li svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.benefits__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-metric {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.benefit-metric:first-child {
  grid-column: 1 / -1;
}

.benefit-metric__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.benefit-metric__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-bg-elevated);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__social,
.contact__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.contact__social:hover {
  color: var(--color-primary-light);
}

.contact__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 16px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__brand img {
  height: 40px;
  width: auto;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  margin-top: 12px;
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   Animations on scroll
   ============================================ */

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

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .steps__timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 11, 20, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 24px;
  }

  .nav__link--cta {
    margin: 8px 24px 0;
    text-align: center;
  }

  .hero {
    padding-bottom: 48px;
    min-height: auto;
  }

  .dashboard-preview {
    flex-direction: column;
    max-width: 100%;
  }

  .dashboard-preview__sidebar {
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .dashboard-preview__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dashboard-preview__nav span {
    font-size: 0.65rem;
    padding: 6px 8px;
  }

  .dashboard-preview__logo {
    margin-bottom: 12px;
  }

  .kpi-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .kpi-row__label {
    text-align: left;
  }

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

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

  .problem__arrow {
    transform: rotate(90deg);
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact__form {
    padding: 24px;
  }
}
