/* ========================================
   PNM Styles - Consolidated Stylesheet
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  --blue: #546df9;
  --pink: #e54d8a;
  --orange: #f5a623;
  --text-dark: #1a1a2e;
  --text-muted: #4a4a6a;
  --bg-light: #fafbff;
  --gradient-main: linear-gradient(135deg, #546df9 0%, #e54d8a 50%, #f5a623 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(84,109,249,0.08) 0%, rgba(229,77,138,0.08) 50%, rgba(245,166,35,0.08) 100%);
}

/* ----- Reset ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-light);
  overflow-x: hidden;
}

body.legal-page {
  line-height: 1.7;
  overflow-x: auto;
}

/* ----- Background Effects ----- */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(84,109,249,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,166,35,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(229,77,138,0.08) 0%, transparent 50%);
}

.bg-mesh.subtle {
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(84,109,249,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,166,35,0.06) 0%, transparent 50%);
}

/* ----- Navigation ----- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,251,255,0.85);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(84,109,249,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(84,109,249,0.3);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.logo-icon img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84,109,249,0.4);
}

/* ----- Utility Classes ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(84,109,249,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(84,109,249,0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 2px solid rgba(84,109,249,0.2);
}

.btn-secondary:hover {
  border-color: var(--blue);
  background: var(--gradient-subtle);
}

/* ----- Section Headers ----- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ----- Page Header (Legal Pages) ----- */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: white;
  border-bottom: 1px solid rgba(84,109,249,0.08);
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .effective-date {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ----- Content (Legal Pages) ----- */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  color: var(--text-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
  border-image: var(--gradient-main) 1;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--gradient-main);
  border-radius: 50%;
}

.content ul li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.content a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.content a:hover {
  color: var(--pink);
}

/* ----- Info Cards (Legal Pages) ----- */
.info-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(84,109,249,0.1);
  box-shadow: 0 4px 20px rgba(84,109,249,0.08);
}

.info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--blue);
}

.info-card p {
  margin-bottom: 0.5rem;
}

.info-card a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--pink);
}

/* ----- Alert Boxes (Legal Pages) ----- */
.warning-box {
  background: linear-gradient(135deg, rgba(229,77,138,0.08) 0%, rgba(245,166,35,0.08) 100%);
  border-left: 4px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box p {
  margin-bottom: 0;
  font-weight: 500;
}

.important-text {
  background: rgba(84,109,249,0.08);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(84,109,249,0.15);
}

.important-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.disclaimer {
  background: var(--text-dark);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclaimer p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.acknowledgment {
  background: var(--gradient-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  border: 1px solid rgba(84,109,249,0.15);
}

.acknowledgment p {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-subtle);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(84,109,249,0.15);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-main);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

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

/* ----- Hero Visual ----- */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-visual-inner {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.02),
    0 12px 24px rgba(84,109,249,0.08),
    0 32px 64px rgba(84,109,249,0.12);
  border: 1px solid rgba(84,109,249,0.1);
}

.network-visualization {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.node-center {
  width: 80px;
  height: 80px;
  background: var(--gradient-main);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 32px rgba(84,109,249,0.4);
  z-index: 10;
}

.node-center svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.node-satellite {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.node-1 { top: 15%; left: 20%; border-color: var(--blue); animation-delay: 0s; }
.node-2 { top: 10%; left: 60%; border-color: var(--pink); animation-delay: 0.5s; }
.node-3 { top: 40%; left: 85%; border-color: var(--orange); animation-delay: 1s; }
.node-4 { top: 75%; left: 70%; border-color: var(--blue); animation-delay: 1.5s; }
.node-5 { top: 80%; left: 25%; border-color: var(--pink); animation-delay: 2s; }
.node-6 { top: 45%; left: 10%; border-color: var(--orange); animation-delay: 2.5s; }

.node-satellite svg {
  width: 24px;
  height: 24px;
}

.node-1 svg { fill: var(--blue); }
.node-2 svg { fill: var(--pink); }
.node-3 svg { fill: var(--orange); }
.node-4 svg { fill: var(--blue); }
.node-5 svg { fill: var(--pink); }
.node-6 svg { fill: var(--orange); }

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-lines svg {
  width: 100%;
  height: 100%;
}

.connection-lines line {
  stroke: url(#lineGradient);
  stroke-width: 2;
  stroke-dasharray: 8 4;
  animation: dash 20s linear infinite;
}

/* ----- Features Section ----- */
.features {
  padding: 6rem 2rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(84,109,249,0.2);
  box-shadow: 0 20px 40px rgba(84,109,249,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon.blue { background: rgba(84,109,249,0.1); }
.feature-icon.blue svg { fill: var(--blue); }
.feature-icon.pink { background: rgba(229,77,138,0.1); }
.feature-icon.pink svg { fill: var(--pink); }
.feature-icon.orange { background: rgba(245,166,35,0.1); }
.feature-icon.orange svg { fill: var(--orange); }

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ----- Platforms Section ----- */
.platforms {
  padding: 6rem 2rem;
  background: var(--gradient-subtle);
}

.platforms-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.platforms-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.platforms-text p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.platform-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(84,109,249,0.1);
  transition: all 0.3s ease;
}

.platform-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(84,109,249,0.15);
}

.platform-badge svg {
  width: 28px;
  height: 28px;
  fill: var(--blue);
}

.platform-badge span {
  font-weight: 600;
  color: var(--text-dark);
}

.platforms-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.device-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 350px;
}

.device {
  position: absolute;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84,109,249,0.1);
}

.device-desktop {
  width: 280px;
  height: 180px;
  top: 0;
  left: 0;
  z-index: 1;
}

.device-tablet {
  width: 160px;
  height: 220px;
  top: 80px;
  right: 20px;
  z-index: 2;
}

.device-phone {
  width: 100px;
  height: 180px;
  bottom: 0;
  left: 60px;
  z-index: 3;
}

.device svg {
  width: 48px;
  height: 48px;
  fill: var(--blue);
  opacity: 0.6;
}

/* ----- CTA Section ----- */
.cta {
  padding: 6rem 2rem;
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(84,109,249,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(245,166,35,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.cta .btn-primary {
  background: var(--gradient-main);
  box-shadow: 0 4px 24px rgba(84,109,249,0.4);
}

/* ----- Footer ----- */
footer {
  background: #0f0f1a;
  padding: 3rem 2rem;
  color: rgba(255,255,255,0.6);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand .logo-icon svg {
  width: 20px;
  height: 20px;
}

.footer-brand .logo-icon img {
  width: 42px;
  height: 42px;
}

.footer-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.875rem;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  justify-content: center;
  width: 100%;
}

.powered-by span {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.powered-by a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.powered-by a:hover {
  color: var(--pink);
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

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

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* ----- Responsive: Tablet ----- */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-description {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .platforms-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .platform-badges {
    justify-content: center;
  }

  .platforms-visual {
    order: -1;
  }
}

/* ----- Responsive: Mobile ----- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2,
  .platforms-text h2,
  .cta h2 {
    font-size: 1.75rem;
  }
}
