/* ==========================================================================
   SessionOps Global - Mobile-First Enterprise Dark Theme & Responsive Engine
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f9fafb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Mobile Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  z-index: 110;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; stroke: #fff; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: #fff; }

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

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  z-index: 110;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 0 20px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 25px rgba(99, 102, 241, 0.55); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  max-width: 100%;
}
.badge-live { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.25); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } 100% { opacity: 1; transform: scale(1); } }

/* Hero */
.hero-section { padding: 70px 0 40px; text-align: center; position: relative; }
.hero-content { max-width: 900px; margin: 0 auto; }
.hero-title { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; margin: 18px 0; }
.text-gradient { background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem); color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-cta-group { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

/* Dashboard Mockup Responsive */
.dashboard-mockup {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.18);
  overflow: hidden;
  backdrop-filter: blur(20px);
  text-align: left;
  margin-top: 30px;
  width: 100%;
}
.mockup-header { background: rgba(10, 14, 23, 0.95); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 8px; }
.window-dots { display: flex; gap: 8px; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; } .dot-yellow { background: #f59e0b; } .dot-green { background: #10b981; }
.mockup-title { font-size: 0.8rem; font-family: var(--font-mono); color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }

.mockup-top-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-color); border-bottom: 1px solid var(--border-color); }
.mockup-metric-cell { background: var(--bg-secondary); padding: 14px 18px; }
.mockup-metric-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.mockup-metric-val { font-size: 1.2rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }

.mockup-body { display: grid; grid-template-columns: 1.2fr 1fr; padding: 20px; gap: 20px; background: rgba(15, 23, 42, 0.6); }

.terminal-box {
  background: #070a11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
}
.term-line { display: flex; gap: 10px; color: #cbd5e1; flex-wrap: wrap; word-break: break-word; }
.term-time { color: #64748b; font-size: 0.72rem; }
.term-tag-ok { color: #34d399; font-weight: 600; }
.term-tag-info { color: #818cf8; font-weight: 600; }
.term-tag-warn { color: #fbbf24; font-weight: 600; }

.chart-visual-box { background: #070a11; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chart-title { font-size: 0.8rem; font-weight: 600; color: #fff; }

/* Micro-visual UI Cards */
.card-visual-wrapper { margin: 16px 0 10px; background: #080c14; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--radius-md); padding: 12px; }
.chat-sim { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; }
.chat-bubble { padding: 8px 12px; border-radius: 10px; max-width: 92%; line-height: 1.4; word-break: break-word; }
.chat-bubble.inbound { background: #1e293b; color: #e2e8f0; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-bubble.outbound { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-time { font-size: 0.68rem; opacity: 0.7; margin-top: 4px; display: block; }

.profile-sim-grid { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 0.75rem; }
.profile-sim-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.05); gap: 6px; }
.profile-sim-name { color: #93c5fd; display: flex; align-items: center; gap: 6px; }

/* Toolstack Badges */
.toolstack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.tool-badge { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; display: flex; align-items: center; gap: 12px; }
.tool-badge-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(99, 102, 241, 0.15); display: flex; align-items: center; justify-content: center; color: #818cf8; flex-shrink: 0; }
.tool-badge-name { font-size: 0.88rem; font-weight: 600; color: #fff; }
.tool-badge-desc { font-size: 0.74rem; color: var(--text-muted); }

/* Guide Cards */
.guide-step-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.guide-step-num { font-size: 0.78rem; font-weight: 700; color: var(--accent-indigo); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

/* Grids & Cards */
.section { padding: 60px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin: 10px 0; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); }

.card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #818cf8; flex-shrink: 0; }
.card-icon svg { width: 22px; height: 22px; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.card-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* Callout */
.hiring-callout-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.15);
}
.hiring-callout-text h3 { font-size: 1.45rem; font-weight: 700; color: #fff; margin: 6px 0; }
.hiring-callout-text p { color: var(--text-secondary); font-size: 0.95rem; max-width: 600px; }

/* Forms (Crucial font-size 16px to prevent iOS auto-zoom) */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 16px; /* Prevents iOS Safari input zooming */
  transition: all 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--accent-indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); background: rgba(10, 14, 23, 0.98); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Job Details */
.job-header-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 24px; }
.job-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.job-meta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-secondary); }

.job-content-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 24px; }
.job-content-box h2 { font-size: 1.3rem; margin: 24px 0 14px; color: #fff; }
.job-content-box h2:first-child { margin-top: 0; }
.job-content-box ul, .job-content-box ol { padding-left: 20px; margin-bottom: 20px; }
.job-content-box ul li { list-style-type: disc; color: var(--text-secondary); margin-bottom: 8px; font-size: 0.92rem; }
.job-content-box ol li { list-style-type: decimal; color: var(--text-secondary); margin-bottom: 8px; font-size: 0.92rem; }

/* Footer */
.site-footer { margin-top: auto; background: #070a10; border-top: 1px solid var(--border-color); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 10px; max-width: 320px; }
.footer-heading { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; max-width: calc(100vw - 40px); }
.toast { background: #1e1b4b; border: 1px solid rgba(99, 102, 241, 0.5); color: #fff; padding: 14px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.9rem; transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   MOBILE BREAKPOINTS & RESPONSIVENESS (<960px & <640px)
   ========================================================================== */

@media (max-width: 960px) {
  .container { padding: 0 16px; }
  
  /* Mobile Navigation Drawer */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    z-index: 105;
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .mobile-toggle { display: block; }
  
  /* Grids & Cards */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .mockup-top-metrics { grid-template-columns: repeat(2, 1fr); }
  .mockup-body { grid-template-columns: 1fr; }
  .toolstack-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hiring-callout-card { flex-direction: column; text-align: center; }
  
  /* Form Sidebar un-stick on mobile */
  .card[style*="position: sticky"] { position: static !important; }
}

@media (max-width: 600px) {
  .hero-section { padding: 45px 0 30px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
  
  .mockup-top-metrics { grid-template-columns: 1fr; }
  .toolstack-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .card { padding: 20px; }
  .job-header-card, .job-content-box, .guide-step-card { padding: 20px; }
}
