/* =====================================================
   NoetiSys — Main Stylesheet
   Theme: Dark, modern enterprise tech (cursor.com / northbaysolutions.com inspired)
   ===================================================== */

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

:root {
  --bg-primary:    #0b0f1a;
  --bg-secondary:  #111827;
  --bg-card:       #161d2e;
  --bg-card-hover: #1c2540;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(0,196,228,0.3);

  --cyan:          #00c4e4;
  --cyan-dim:      #0096b0;
  --cyan-glow:     rgba(0,196,228,0.15);
  --purple:        #7c3aed;
  --green:         #10b981;
  --orange:        #f59e0b;

  --text-primary:  #f0f4ff;
  --text-secondary:#8b99b8;
  --text-muted:    #4b5a78;

  --nav-h:         72px;
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(0,196,228,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Utility === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,196,228,0.1); border: 1px solid var(--border-accent);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 580px; margin: 14px auto 0; font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #60a5fa 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: var(--transition);
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: #0b0f1a;
}
.btn-primary:hover { background: #00deff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,196,228,0.35); }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--cyan); padding: 0;
  font-size: 0.9rem; gap: 6px;
}
.btn-ghost:hover { gap: 10px; }
.btn-ghost svg { transition: transform var(--transition); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 58px; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--bg-primary); padding-top: var(--nav-h);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.3rem; font-weight: 600; color: var(--text-secondary);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--cyan); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}

/* Ambient gradient orbs */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,196,228,0.08) 0%, transparent 65%);
  top: -200px; right: -200px;
}
.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 65%);
  bottom: -100px; left: -100px;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; position: relative; z-index: 1;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.eyebrow-pill {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,196,228,0.1); border: 1px solid var(--border-accent);
  padding: 5px 14px; border-radius: 100px;
}

.hero h1 { margin-bottom: 24px; }
.hero p {
  font-size: 1.1rem; max-width: 500px; margin-bottom: 40px;
  color: var(--text-secondary);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-domains {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px;
}
.domain-chip {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px;
  transition: var(--transition);
}
.domain-chip:hover { color: var(--cyan); border-color: var(--border-accent); }

/* Hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }

.hero-card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%;
}
.h-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
}
.h-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.h-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 12px;
}
.h-card h4 { font-size: 0.9rem; margin-bottom: 6px; }
.h-card p { font-size: 0.78rem; color: var(--text-muted); }

.h-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0,196,228,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border-color: var(--border-accent);
}

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--cyan); display: block; line-height: 1;
}
.stat-label {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; display: block;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services { background: var(--bg-primary); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); cursor: default;
}
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; line-height: 1.65; }

/* Service icon backgrounds */
.ic-ai    { background: rgba(0,196,228,0.12); }
.ic-cloud { background: rgba(96,165,250,0.12); }
.ic-data  { background: rgba(16,185,129,0.12); }
.ic-dev   { background: rgba(245,158,11,0.12); }
.ic-int   { background: rgba(124,58,237,0.12); }
.ic-rob   { background: rgba(239,68,68,0.12); }

/* =====================================================
   PROCESS / ENGAGEMENT
   ===================================================== */
.process { background: var(--bg-secondary); }

.process-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px;
  width: 2px; background: linear-gradient(to bottom, var(--cyan), var(--purple));
  opacity: 0.3;
}
.process-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  align-items: flex-start; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--border-accent);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--cyan);
  position: relative; z-index: 1;
}
.step-body h3 { margin-bottom: 8px; font-size: 1.05rem; padding-top: 14px; }
.step-body p { font-size: 0.9rem; }

/* =====================================================
   CASE STUDIES
   ===================================================== */
.case-studies { background: var(--bg-primary); }

.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cs-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.cs-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cs-tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 4px; background: rgba(0,196,228,0.08);
  color: var(--cyan); border: 1px solid rgba(0,196,228,0.15);
}
.cs-client {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cs-card h3 { font-size: 1rem; margin-bottom: 14px; }
.cs-results { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cs-results li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.cs-results li::before {
  content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; font-size: 0.8rem; margin-top: 2px;
}

/* =====================================================
   INDUSTRIES
   ===================================================== */
.industries { background: var(--bg-secondary); }

.ind-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ind-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
}
.ind-card:hover { border-color: var(--border-accent); }
.ind-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ind-card h3 { font-size: 1rem; margin-bottom: 8px; }
.ind-card p { font-size: 0.82rem; color: var(--text-muted); }

/* =====================================================
   WHY NOETISYS
   ===================================================== */
.why { background: var(--bg-primary); }

.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: var(--transition);
}
.why-card:hover { border-color: var(--border-accent); }
.why-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: rgba(0,196,228,0.1);
}
.why-body h3 { font-size: 1rem; margin-bottom: 8px; }
.why-body p { font-size: 0.87rem; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials { background: var(--bg-secondary); }

.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.testi-card:hover { border-color: var(--border-accent); }
.testi-quote {
  font-size: 2rem; color: var(--cyan); line-height: 1; margin-bottom: 12px;
}
.testi-card blockquote {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 24px; font-style: italic;
}
.testi-author { display: flex; gap: 14px; align-items: center; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white; flex-shrink: 0;
}
.testi-name { font-size: 0.88rem; font-weight: 600; }
.testi-role { font-size: 0.78rem; color: var(--text-muted); }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,196,228,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--border-accent); color: var(--cyan); }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--bg-primary);
  text-align: center;
}
.contact-hero h1 { margin-bottom: 16px; }
.contact-hero p { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.contact-section { padding: 80px 0 100px; background: var(--bg-primary); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}

.contact-info h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { font-size: 0.92rem; margin-bottom: 36px; }

.contact-channels { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.channel-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  transition: var(--transition);
}
.channel-item:hover { border-color: var(--border-accent); }
.channel-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(0,196,228,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.channel-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.channel-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }

.next-steps h3 { font-size: 1rem; margin-bottom: 16px; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.88rem; color: var(--text-secondary);
}
.step-badge {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: rgba(0,196,228,0.15); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form-card h3 { font-size: 1.2rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; color: var(--text-primary);
  font-size: 0.92rem; font-family: inherit; outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,196,228,0.1);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; justify-content: center; margin-top: 8px; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { font-size: 0.9rem; }

/* Spinner keyframe for form loader */
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .stat-item:nth-child(2n) { border-bottom: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .services-grid { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .ind-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
