/* ============================================
   LOGICNODE — Main Stylesheet
   logicnode.ca
   ============================================ */

/* --- VARIABLES --- */
:root {
  --blue: #2563eb;
  --blue-light: #38bdf8;
  --blue-mid: #1d4ed8;
  --dark: #080d1a;
  --dark-2: #0d1526;
  --dark-3: #111827;
  --white: #ffffff;
  --gray-1: #f8fafc;
  --gray-2: #f1f5f9;
  --gray-3: #e2e8f0;
  --gray-4: #94a3b8;
  --gray-5: #64748b;
  --gray-6: #334155;
  --text-dark: #0f172a;
  --text-mid: #475569;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-logo-text span {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

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

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-mid) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 0.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--blue-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 800px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 span {
  color: var(--blue-light);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  position: relative;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeUp 0.6s 0.3s ease both;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  position: relative;
  animation: fadeUp 0.6s 0.4s ease both;
  padding-top: 48px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-num span {
  color: var(--blue-light);
}

.hero-stat-num--sm {
  font-size: 22px;
  padding-top: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s, color 0.2s;
}

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

/* ============================================
   DIFFERENTIATOR BAND
   ============================================ */
.diff-band {
  background: var(--blue);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.diff-band p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-align: center;
}

.diff-band strong {
  color: var(--white);
  font-weight: 500;
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
section {
  padding: 96px 48px;
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--dark);
}

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

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  background: var(--gray-1);
}

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

.service-card {
  background: var(--white);
  border: 0.5px solid var(--gray-3);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  border: 0.5px solid var(--gray-3);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  background: var(--white);
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card--featured {
  background: var(--dark);
  border-color: var(--blue);
}

.pricing-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.pricing-card--featured .pricing-name {
  color: var(--white);
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--blue-light);
}

.pricing-price sup {
  font-size: 20px;
  font-weight: 500;
  vertical-align: super;
}

.pricing-price sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-4);
}

.pricing-desc {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 20px;
  font-weight: 300;
  color: var(--text-mid);
}

.pricing-card--featured .pricing-desc {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-divider {
  height: 0.5px;
  background: var(--gray-3);
  margin-bottom: 20px;
}

.pricing-card--featured .pricing-divider {
  background: rgba(255, 255, 255, 0.1);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
  font-weight: 400;
  color: var(--text-mid);
}

.pricing-card--featured .pricing-feature {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-check {
  width: 16px;
  height: 16px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-card--featured .pricing-check {
  background: rgba(56, 189, 248, 0.15);
}

.pricing-check svg {
  width: 9px;
  height: 9px;
  color: var(--blue);
}

.pricing-card--featured .pricing-check svg {
  color: var(--blue-light);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray-4);
  margin-top: 24px;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  background: var(--gray-1);
}

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

.about-avatar {
  width: 80px;
  height: 80px;
  background: var(--blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.about-name {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.about-role {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-highlight {
  background: var(--white);
  border: 0.5px solid var(--gray-3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s;
}

.about-highlight:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.about-highlight h4 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.about-highlight p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

/* ============================================
   CREDENTIALS
   ============================================ */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.cred-card {
  background: var(--gray-1);
  border: 0.5px solid var(--gray-3);
  border-radius: 12px;
  padding: 20px 18px;
  transition: border-color 0.2s;
}

.cred-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.cred-name {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cred-issuer {
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cred-desc {
  font-size: 11px;
  color: var(--gray-4);
  line-height: 1.4;
  font-weight: 300;
}

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

.edu-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.edu-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
}

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.edu-school {
  font-size: 12px;
  color: var(--blue-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.edu-detail {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ============================================
   CONTACT
   ============================================ */
#contact .section-title {
  color: var(--white);
}

#contact .section-label {
  color: var(--blue-light);
}

#contact .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

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

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
}

.contact-item-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 32px;
}

.contact-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 300;
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.area-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.12);
  border: 0.5px solid rgba(56, 189, 248, 0.2);
  color: var(--blue-light);
  font-weight: 400;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  color: rgba(255, 255, 255, 0.45);
}

.hours-time {
  color: var(--white);
  font-weight: 500;
}

.hours-time--highlight {
  color: var(--blue-light);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark-2);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

.footer-logo span {
  color: var(--blue-light);
}

footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   SCROLL REVEAL (applied via JS)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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