/* ==========================================================================
   nord BLUE PRINT - Design System & Technical Blueprint Stylesheet
   Identity: Classic Manual Blueprint / Technical Drafting (Blue & White)
   Domain: nordblueprint.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Classic Blueprint Spectrum */
  --bp-navy-darker: #040c17;
  --bp-navy-dark: #07162c;
  --bp-navy-base: #0a1f3d;
  --bp-navy-light: #0d2a52;
  --bp-navy-card: #0c2447;
  
  /* Accents & Blueprint Lines */
  --bp-white: #ffffff;
  --bp-white-90: rgba(255, 255, 255, 0.90);
  --bp-white-70: rgba(255, 255, 255, 0.70);
  --bp-white-50: rgba(255, 255, 255, 0.50);
  --bp-white-30: rgba(255, 255, 255, 0.30);
  --bp-white-15: rgba(255, 255, 255, 0.15);
  --bp-white-08: rgba(255, 255, 255, 0.08);
  --bp-white-04: rgba(255, 255, 255, 0.04);
  
  /* Technical Electric Blueprint Highlights */
  --bp-cyan: #00d2ff;
  --bp-cyan-glow: rgba(0, 210, 255, 0.3);
  --bp-cyan-muted: rgba(0, 210, 255, 0.15);
  --bp-green: #00f098;
  --bp-yellow: #ffd000;
  
  /* Typography */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dimensions & Spacing */
  --container-max: 1280px;
  --header-height: 76px;
  --border-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bp-navy-darker);
  color: var(--bp-white-90);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bp-navy-darker);
  /* Classic Architectural Blueprint Grid */
  background-image: 
    linear-gradient(var(--bp-white-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-white-08) 1px, transparent 1px),
    linear-gradient(var(--bp-white-04) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-white-04) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  min-height: 100vh;
  position: relative;
}

/* Blueprint Ruler Guides Top/Bottom */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--bp-cyan),
    var(--bp-cyan) 2px,
    transparent 2px,
    transparent 10px
  );
  z-index: 9999;
  opacity: 0.8;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--bp-white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
}

.text-cyan {
  color: var(--bp-cyan) !important;
}

.text-dim {
  color: var(--bp-white-50);
}

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

.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px dashed var(--bp-white-15);
}

/* Technical Blueprint Cards */
.bp-card {
  background: var(--bp-navy-card);
  border: 1px solid var(--bp-white-30);
  border-radius: var(--border-radius);
  position: relative;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

/* Blueprint Card Corner Markers '+' */
.bp-card::before, .bp-card::after {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bp-cyan);
  position: absolute;
  opacity: 0.6;
}

.bp-card::before {
  content: '+';
  top: -6px;
  left: -4px;
}

.bp-card::after {
  content: '+';
  bottom: -6px;
  right: -4px;
}

.bp-card:hover {
  border-color: var(--bp-cyan);
  box-shadow: 0 12px 40px var(--bp-cyan-glow);
  transform: translateY(-2px);
}

/* Technical Label Badge */
.bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bp-navy-dark);
  border: 1px solid var(--bp-white-30);
  color: var(--bp-white-90);
  border-radius: 2px;
}

.bp-badge.cyan {
  border-color: var(--bp-cyan);
  color: var(--bp-cyan);
  background: var(--bp-cyan-muted);
}

/* Custom Blueprint Buttons */
.btn-bp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bp-white);
}

.btn-bp-primary {
  background: var(--bp-white);
  color: var(--bp-navy-darker);
  border-color: var(--bp-white);
}

.btn-bp-primary:hover {
  background: var(--bp-cyan);
  color: var(--bp-navy-darker);
  border-color: var(--bp-cyan);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
}

.btn-bp-secondary {
  background: transparent;
  color: var(--bp-white);
  border-color: var(--bp-white-50);
}

.btn-bp-secondary:hover {
  border-color: var(--bp-cyan);
  color: var(--bp-cyan);
  background: var(--bp-cyan-muted);
}

/* ==========================================================================
   Header & Brand Identity
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 22, 44, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bp-white-15);
  z-index: 1000;
}

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

/* Brand Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon-svg {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-nord {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--bp-white-50);
  line-height: 1;
  margin-bottom: 3px;
}

.brand-blueprint {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bp-white);
  line-height: 1;
}

/* Domain Badge */
.header-domain-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bp-navy-base);
  border: 1px solid var(--bp-white-15);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bp-white-70);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--bp-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--bp-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Header Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-white-70);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--bp-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--bp-cyan);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bp-cyan);
  border: 1px solid var(--bp-cyan-muted);
  padding: 6px 14px;
  background: rgba(0, 210, 255, 0.05);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--bp-cyan);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--bp-white-70);
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interactive Blueprint Showcase Card (Right Column) */
.blueprint-schematic-card {
  background: var(--bp-navy-base);
  border: 1px solid var(--bp-white-30);
  border-radius: var(--border-radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.schematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--bp-white-15);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bp-white-50);
}

.schematic-body {
  position: relative;
  background: var(--bp-navy-darker);
  border: 1px solid var(--bp-white-15);
  padding: 30px 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.schematic-diagram-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
}

.schematic-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bp-white-50);
}

/* ==========================================================================
   Services & Features Section
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bp-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--bp-white-70);
}

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

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bp-cyan);
  margin-bottom: 16px;
  display: block;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--bp-cyan);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--bp-white-70);
  line-height: 1.6;
}

.feature-spec-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bp-cyan);
  text-decoration: none;
  text-transform: uppercase;
}

.feature-spec-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Security Blueprint Diagram Section
   ========================================================================== */

.security-blueprint-box {
  background: var(--bp-navy-base);
  border: 1px solid var(--bp-white-30);
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.pipeline-node {
  background: var(--bp-navy-card);
  border: 1px solid var(--bp-white-15);
  padding: 20px;
  position: relative;
  text-align: center;
}

.pipeline-node.active {
  border-color: var(--bp-cyan);
  box-shadow: 0 0 15px var(--bp-cyan-muted);
}

.node-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bp-cyan);
  display: block;
  margin-bottom: 8px;
}

.node-title {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.node-desc {
  font-size: 0.8rem;
  color: var(--bp-white-50);
}

/* ==========================================================================
   Pricing & Plans Section
   ========================================================================== */

.pricing-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.switch-label {
  color: var(--bp-white-70);
  cursor: pointer;
}

.switch-label.active {
  color: var(--bp-white);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 54px;
  height: 28px;
  background: var(--bp-navy-card);
  border: 1px solid var(--bp-white-30);
  border-radius: 14px;
  cursor: pointer;
  padding: 2px;
}

.toggle-slider {
  width: 22px;
  height: 22px;
  background: var(--bp-cyan);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.toggle-switch.annual .toggle-slider {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.featured {
  border-color: var(--bp-cyan);
  background: linear-gradient(180deg, rgba(0,210,255,0.08) 0%, var(--bp-navy-card) 100%);
  transform: scale(1.03);
}

.featured-stamp {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--bp-cyan);
  color: var(--bp-navy-darker);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.plan-header {
  border-bottom: 1px dashed var(--bp-white-15);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--bp-white);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--bp-white-50);
}

.plan-features-list {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features-list li {
  font-size: 0.875rem;
  color: var(--bp-white-70);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-list li::before {
  content: '✓';
  color: var(--bp-cyan);
  font-weight: bold;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--bp-white-70);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bp-navy-darker);
  border: 1px solid var(--bp-white-30);
  color: var(--bp-white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--bp-cyan);
  box-shadow: 0 0 10px var(--bp-cyan-muted);
}

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

/* ==========================================================================
   Footer Component & Coordinates Bar
   ========================================================================== */

.site-footer {
  background: var(--bp-navy-darker);
  border-top: 1px solid var(--bp-white-15);
  padding: 60px 0 30px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bp-white-50);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-info p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--bp-white-70);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col-title {
  color: var(--bp-white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--bp-white-50);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--bp-cyan);
}

.footer-bottom {
  border-top: 1px dashed var(--bp-white-15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coords-tracker {
  display: inline-flex;
  gap: 16px;
  color: var(--bp-cyan);
}

/* Modal Overlay Styles */
.bp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 12, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-modal-box {
  background: var(--bp-navy-base);
  border: 1px solid var(--bp-cyan);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 30px var(--bp-cyan-muted);
  width: 100%;
  max-width: 800px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.bp-modal-header {
  padding: 16px 24px;
  background: var(--bp-navy-dark);
  border-bottom: 1px solid var(--bp-white-15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-modal-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--bp-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--bp-white-50);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--bp-cyan);
}

.bp-modal-body {
  padding: 28px;
  overflow-y: auto;
}

/* Toast Notifications */
.bp-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bp-navy-dark);
  border: 1px solid var(--bp-cyan);
  color: var(--bp-white);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.bp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .plan-card.featured {
    transform: none;
  }
  .pipeline-flow {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none; /* Can be toggled for mobile */
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
