/* ========================================
   Nexorant LLC — Global Styles
   ======================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary: #0f4c9a;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #002a6b;
  --color-accent: #3ca9e8;

  /* Background */
  --color-bg-light: #f6f7f8;
  --color-bg-dark: #101922;
  --color-surface-light: #ffffff;
  --color-surface-dark: #1a2632;

  /* Text */
  --color-text-main: #0d141b;
  --color-text-muted: #4c739a;
  --color-text-secondary: #64748b;

  /* Borders */
  --color-border-light: #e2e8f0;
  --color-border-dark: #334155;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #002a6b 0%, #0f4c9a 50%, #3ca9e8 100%);
  --gradient-brand-br: linear-gradient(to bottom right, #0f2d6b, #1366c5, #4faaff);

  /* Fonts */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(15, 76, 154, 0.2);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* --- Material Symbols Defaults --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.bg-gradient-nexorant {
  background: var(--gradient-brand-br);
}

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

/* --- Shared Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 2.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.site-header .logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo-area img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-header .logo-area h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.015em;
}

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

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--color-primary);
}

.site-header nav a.active {
  font-weight: 700;
}

.site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header .nav-cta {
  display: flex;
  gap: 0.5rem;
}

.site-header .mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--color-text-main);
}

@media (max-width: 767px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header .nav-right {
    display: none;
  }

  .site-header .mobile-menu-btn {
    display: block;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  padding: 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-panel .close-btn {
  align-self: flex-end;
  padding: 0.5rem;
  color: var(--color-text-main);
}

.mobile-menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-panel nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-panel nav a:hover,
.mobile-menu-panel nav a.active {
  background: rgba(15, 76, 154, 0.06);
  color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  height: 40px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 154, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 76, 154, 0.3);
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background: #f8fafc;
}

.btn-lg {
  height: 48px;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Shared Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface-light);
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

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

.footer-brand .brand-row img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand .brand-row span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links ul a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links ul a:hover {
  color: var(--color-primary);
}

.footer-links ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-links ul li .material-symbols-outlined {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.footer-bottom-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
}

/* --- Main Content Area --- */
main {
  flex-grow: 1;
}

/* --- Section Titles --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-text-main);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Cards --- */
.card {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 76, 154, 0.08);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(15, 76, 154, 0.08);
  color: var(--color-primary);
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: var(--color-primary);
  color: #fff;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

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

/* --- Grids --- */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

/* --- Forms --- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-main);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(15, 76, 154, 0.15);
}

.form-input::placeholder {
  color: #94a3b8;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Scroll-based visibility (for JS to toggle) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

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

/* --- Page Transitions --- */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-wrapper {
  animation: pageEnter 0.4s ease-out forwards;
}

.page-wrapper.page-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}