/* assets/css/marketing.css */
/* InboxCMD — Marketing / Landing Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy:          #07091A;
  --navy-2:        #0D1130;
  --navy-3:        #141840;
  --cyan:          #00C8F0;
  --cyan-dim:      #008AAD;
  --cyan-glow:     rgba(0,200,240,0.12);
  --slate:         #7A8CAA;
  --slate-light:   #B0BDCE;
  --white:         #F0F5FF;
  --white-dim:     rgba(240,245,255,0.7);
  --white-faint:   rgba(240,245,255,0.08);
  --border:        rgba(0,200,240,0.15);
  --border-subtle: rgba(240,245,255,0.07);
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:   var(--navy);
  color:        var(--white);
  font-family:  var(--font-body);
  font-size:    16px;
  line-height:  1.6;
  overflow-x:   hidden;
}

/* ── GRID BACKGROUND ──────────────────────────────────────── */
.grid-bg {
  position:       fixed;
  inset:          0;
  pointer-events: none;
  z-index:        0;
  background-image:
    linear-gradient(rgba(240,245,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,245,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  z-index:         9999;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0 5%;
  height:          68px;
  background:      rgba(7,9,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom:   1px solid var(--border-subtle);
}

.nav-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  text-decoration: none;
}

.nav-logo-mark { width: 36px; height: 36px; }

.nav-brand {
  font-family:    var(--font-display);
  font-size:      18px;
  font-weight:    600;
  color:          var(--white);
  letter-spacing: -0.3px;
}

.nav-brand span { color: var(--cyan); }

.nav-links {
  display:     flex;
  align-items: center;
  gap:         32px;
  list-style:  none;
}

.nav-links a {
  color:           var(--slate-light);
  text-decoration: none;
  font-size:       14px;
  font-weight:     400;
  transition:      color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-login {
  background:    var(--cyan) !important;
  color:         var(--navy) !important;
  font-weight:   600 !important;
  padding:       8px 22px !important;
  border-radius: 6px;
  font-size:     14px !important;
  transition:    opacity 0.2s !important;
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
}

.nav-login:hover { opacity: 0.88; color: var(--navy) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height:     100vh;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  text-align:     center;
  padding:        120px 5% 80px;
  position:       relative;
  z-index:        1;
  overflow:       hidden;
}

.hero::before {
  content:    '';
  position:   absolute;
  top:        -200px;
  left:       50%;
  transform:  translateX(-50%);
  width:      800px;
  height:     800px;
  background: radial-gradient(ellipse, rgba(0,200,240,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index:    0;
}

.hero-eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  background:    var(--white-faint);
  border:        1px solid var(--border);
  border-radius: 100px;
  padding:       6px 16px;
  font-size:     12px;
  font-weight:   500;
  color:         var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  position:      relative;
  z-index:       1;
}

.hero-eyebrow::before {
  content:       '';
  width:         6px;
  height:        6px;
  background:    var(--cyan);
  border-radius: 50%;
  animation:     pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-family:    var(--font-display);
  font-size:      clamp(42px, 6vw, 76px);
  font-weight:    700;
  line-height:    1.05;
  letter-spacing: -2px;
  color:          var(--white);
  max-width:      900px;
  margin-bottom:  24px;
  position:       relative;
  z-index:        1;
}

.hero h1 em { font-style: normal; color: var(--cyan); }

.hero-sub {
  font-size:     clamp(16px, 2vw, 20px);
  color:         var(--slate-light);
  max-width:     560px;
  line-height:   1.7;
  margin-bottom: 44px;
  font-weight:   300;
  position:      relative;
  z-index:       1;
}

.hero-actions {
  display:         flex;
  gap:             14px;
  align-items:     center;
  flex-wrap:       wrap;
  justify-content: center;
  margin-bottom:   80px;
  position:        relative;
  z-index:         1;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background:      var(--cyan);
  color:           var(--navy);
  font-family:     var(--font-display);
  font-size:       15px;
  font-weight:     600;
  padding:         14px 32px;
  border-radius:   8px;
  border:          none;
  cursor:          pointer;
  text-decoration: none;
  transition:      opacity 0.2s, transform 0.15s;
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background:      transparent;
  color:           var(--white-dim);
  font-family:     var(--font-display);
  font-size:       15px;
  font-weight:     500;
  padding:         14px 32px;
  border-radius:   8px;
  border:          1px solid var(--border);
  cursor:          pointer;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s;
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
}

.btn-ghost:hover { border-color: var(--cyan-dim); color: var(--white); }

.btn-login-hero {
  background:      transparent;
  color:           var(--cyan);
  font-family:     var(--font-display);
  font-size:       15px;
  font-weight:     600;
  padding:         14px 32px;
  border-radius:   8px;
  border:          1px solid var(--cyan);
  cursor:          pointer;
  text-decoration: none;
  transition:      background 0.2s, color 0.2s;
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
}

.btn-login-hero:hover {
  background: var(--cyan);
  color:      var(--navy);
}

/* ── HERO VISUAL ──────────────────────────────────────────── */
.hero-visual {
  position:  relative;
  width:     100%;
  max-width: 860px;
  margin:    0 auto;
  z-index:   1;
}

.inbox-ui {
  background:    var(--navy-2);
  border:        1px solid var(--border);
  border-radius: 16px;
  overflow:      hidden;
  box-shadow:    0 0 80px rgba(0,200,240,0.07), 0 40px 80px rgba(0,0,0,0.6);
  display:       grid;
  grid-template-columns: 200px 1fr 1fr;
  min-height:    380px;
  position:      relative;
  z-index:       1;
}

/* ── INBOX UI — SIDEBAR ───────────────────────────────────── */
.ib-sidebar {
  background:     #0D1130;
  border-right:   1px solid var(--border-subtle);
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
}

/* Brand row */
.ib-sidebar-brand {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       0 14px;
  height:        48px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink:   0;
}

.ib-brand-text {
  font-family:    var(--font-display);
  font-size:      13px;
  font-weight:    700;
  color:          var(--white);
  letter-spacing: -0.3px;
  white-space:    nowrap;
}
.ib-brand-text span { color: var(--cyan); }

/* Workspace */
.ib-workspace {
  padding:    6px 14px 8px;
}
.ib-workspace-label {
  font-family:    var(--font-mono);
  font-size:      9px;
  color:          #4A5568;
  letter-spacing: 0.08em;
}
.ib-workspace-name {
  font-family:  var(--font-mono);
  font-size:    10px;
  color:        var(--cyan);
  white-space:  nowrap;
  overflow:     hidden;
  text-overflow: ellipsis;
}

/* Nav */
.ib-nav { padding: 6px 0; flex: 1; overflow: hidden; }

.ib-section-label {
  font-size:      9px;
  font-weight:    600;
  color:          #4A5568;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        10px 14px 3px;
  white-space:    nowrap;
}

.ib-nav-item {
  display:     flex;
  align-items: center;
  gap:         9px;
  padding:     7px 14px;
  font-size:   12px;
  color:       #7A8CAA;
  cursor:      default;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.ib-nav-item.active {
  background:        rgba(0,200,240,0.08);
  color:             var(--white);
  border-left-color: var(--cyan);
}

.ib-nav-item svg {
  width:       14px;
  height:      14px;
  stroke:      currentColor;
  fill:        none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.ib-badge {
  margin-left:   auto;
  background:    var(--cyan);
  color:         var(--navy);
  font-size:     10px;
  font-weight:   700;
  min-width:     18px;
  height:        18px;
  border-radius: 9px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  padding:       0 5px;
}

.ib-sidebar-footer {
  padding:     10px 14px;
  border-top:  1px solid var(--border-subtle);
  display:     flex;
  align-items: center;
  gap:         8px;
}

.ib-avatar {
  width:         28px;
  height:        28px;
  border-radius: 50%;
  background:    rgba(0,200,240,0.15);
  border:        1px solid var(--border);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     10px;
  font-weight:   700;
  color:         var(--cyan);
  flex-shrink:   0;
}

.ib-user-info { flex: 1; }
.ib-user-name { font-size: 11px; color: var(--white); font-weight: 500; }
.ib-user-role { font-size: 10px; color: var(--slate); }

/* ── INBOX UI — THREAD LIST ───────────────────────────────── */
.ib-list { border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; }

.ib-list-header {
  padding:       14px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display:       flex;
  align-items:   center;
  justify-content: space-between;
}

.ib-list-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--white); }
.ib-list-count { font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.ib-threads    { flex: 1; overflow: hidden; }

.ib-thread {
  padding:       12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor:        default;
  transition:    background 0.15s;
  border-left:   2px solid transparent;
}

.ib-thread.selected { background: rgba(0,200,240,0.07); border-left-color: var(--cyan); }

.ib-thread-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ib-thread-from { font-size: 12px; font-weight: 600; color: var(--white); }
.ib-thread.unread .ib-thread-from { color: var(--cyan); }
.ib-thread-time { font-family: var(--font-mono); font-size: 10px; color: var(--slate); flex-shrink: 0; }
.ib-thread-subj { font-size: 12px; color: var(--slate-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ib-thread-meta { display: flex; align-items: center; gap: 6px; }

.ib-tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; font-weight: 500; }
.ib-tag.open     { background: rgba(0,200,240,0.1);   color: var(--cyan); }
.ib-tag.waiting  { background: rgba(240,160,48,0.12); color: #F0A030; }
.ib-tag.resolved { background: rgba(61,190,116,0.1);  color: #3DBE74; }
.ib-tag.urgent   { background: rgba(220,80,80,0.12);  color: #E05050; }

.ib-assignee { font-size: 10px; color: var(--slate); margin-left: auto; }

/* ── INBOX UI — THREAD PANE ───────────────────────────────── */
.ib-thread-pane { display: flex; flex-direction: column; }

.ib-pane-header { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.ib-pane-from   { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.ib-pane-subj   { font-size: 11px; color: var(--slate); font-family: var(--font-mono); }
.ib-pane-tags   { display: flex; gap: 6px; margin-top: 8px; }

.ib-messages { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }

.ib-msg { background: var(--navy-3); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px 14px; }
.ib-msg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.ib-msg-from   { font-size: 11px; font-weight: 600; color: var(--slate-light); }
.ib-msg-time   { font-family: var(--font-mono); font-size: 10px; color: var(--slate); }
.ib-msg-body   { font-size: 11px; color: var(--slate); line-height: 1.6; }
.ib-msg-body strong { color: var(--slate-light); }

.ib-msg.note { background: rgba(240,160,48,0.05); border-color: rgba(240,160,48,0.15); }
.ib-note-label { font-size: 10px; font-weight: 700; color: #F0A030; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }

.ib-pane-footer { padding: 12px 18px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 10px; }
.ib-reply-box   { flex: 1; background: var(--navy-3); border: 1px solid var(--border-subtle); border-radius: 7px; padding: 9px 14px; font-size: 12px; color: var(--slate); font-family: var(--font-body); }
.ib-send-btn    { background: var(--cyan); color: var(--navy); border: none; border-radius: 7px; padding: 9px 16px; font-size: 12px; font-weight: 700; cursor: default; white-space: nowrap; }

/* ── INBOX UI — STATUS BAR ────────────────────────────────── */
.ib-statusbar {
  background:  var(--navy-3);
  border-top:  1px solid var(--border-subtle);
  padding:     9px 18px;
  display:     flex;
  align-items: center;
  gap:         18px;
  grid-column: 1 / -1;
}

.ib-status-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.ib-status-item strong { color: var(--white); }
.ib-status-dot  { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; flex-shrink: 0; }
.ib-status-sep  { color: var(--border-subtle); }

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: 100px 5%; }

.section-label {
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    500;
  color:          var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom:  16px;
}

.section-heading {
  font-family:    var(--font-display);
  font-size:      clamp(30px, 4vw, 48px);
  font-weight:    700;
  line-height:    1.1;
  letter-spacing: -1.2px;
  color:          var(--white);
  margin-bottom:  16px;
}

.section-sub { font-size: 17px; color: var(--slate-light); max-width: 520px; line-height: 1.7; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-section { background: var(--navy-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.how-inner   { max-width: 1100px; margin: 0 auto; }
.how-header  { text-align: center; margin-bottom: 72px; }

.steps-grid {
  display:               grid;
  /* 300px (not 220px) deliberately forces 3 columns instead of 4 within
     .how-inner's 1100px width — with 6 step-cards, 3-per-row divides evenly
     into 2 full rows; 4-per-row left 2 empty trailing cells in the last row,
     which showed this grid's own background (used for the hairline dividers
     between cards) as a stray blank box. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:                   2px;
  background:            var(--border-subtle);
  border-radius:         12px;
  overflow:              hidden;
}

.step-card { background: var(--navy-2); padding: 40px 32px; }

.step-icon {
  width:         44px;
  height:        44px;
  background:    var(--cyan-glow);
  border:        1px solid var(--border);
  border-radius: 10px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.step-title    { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.step-desc     { font-size: 14px; color: var(--slate); line-height: 1.65; }

/* ── FEATURES ─────────────────────────────────────────────── */
.features-section { max-width: 1100px; margin: 0 auto; }

.features-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:                   24px;
  margin-top:            64px;
}

.feat-card {
  background:    var(--navy-2);
  border:        1px solid var(--border-subtle);
  border-radius: 14px;
  padding:       32px;
  transition:    border-color 0.25s;
  position:      relative;
  overflow:      hidden;
}

.feat-card::before {
  content:    '';
  position:   absolute;
  top:        0; left: 0; right: 0;
  height:     1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity:    0;
  transition: opacity 0.3s;
}

.feat-card:hover { border-color: var(--border); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width:         48px;
  height:        48px;
  background:    var(--cyan-glow);
  border:        1px solid var(--border);
  border-radius: 12px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 22px;
}

.feat-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.7; }
.feat-title    { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.feat-desc     { font-size: 14px; color: var(--slate); line-height: 1.7; }

/* ── ALERTS SECTION ───────────────────────────────────────── */
.alert-section {
  max-width:             1100px;
  margin:                0 auto;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   64px;
  align-items:           center;
}

.alert-visual { background: var(--navy-2); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }

.alert-visual-header {
  background:    var(--navy-3);
  border-bottom: 1px solid var(--border-subtle);
  padding:       14px 20px;
  display:       flex;
  align-items:   center;
  gap:           10px;
  font-family:   var(--font-mono);
  font-size:     12px;
  color:         var(--slate);
}

.alert-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
.alert-list { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

.alert-item {
  background:    var(--navy-3);
  border:        1px solid var(--border-subtle);
  border-radius: 10px;
  padding:       14px 18px;
  display:       flex;
  align-items:   center;
  gap:           14px;
}

.alert-item-icon {
  width:         36px;
  height:        36px;
  border-radius: 8px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

.alert-item-icon.urgent  { background: rgba(220,60,60,0.15);  border: 1px solid rgba(220,60,60,0.3); }
.alert-item-icon.info    { background: var(--cyan-glow);       border: 1px solid var(--border); }
.alert-item-icon.success { background: rgba(40,180,100,0.12); border: 1px solid rgba(40,180,100,0.3); }

.alert-item-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 2; }
.alert-item-icon.urgent svg  { stroke: #E05050; }
.alert-item-icon.info svg    { stroke: var(--cyan); }
.alert-item-icon.success svg { stroke: #3DBE74; }

.alert-item-text  { flex: 1; }
.alert-item-title { font-size: 13px; font-weight: 500; color: var(--white); }
.alert-item-meta  { font-size: 11px; color: var(--slate); margin-top: 2px; }
.alert-item-time  { font-family: var(--font-mono); font-size: 11px; color: var(--slate); }

/* ── AUDIENCE ─────────────────────────────────────────────── */
.audience-section { background: var(--navy-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); text-align: center; }
.audience-inner   { max-width: 900px; margin: 0 auto; }

.audience-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 48px; }

.audience-pill {
  background:    var(--white-faint);
  border:        1px solid var(--border-subtle);
  border-radius: 100px;
  padding:       10px 22px;
  font-size:     14px;
  color:         var(--slate-light);
  transition:    border-color 0.2s, color 0.2s;
}

.audience-pill:hover { border-color: var(--border); color: var(--white); }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { text-align: center; max-width: 700px; margin: 0 auto; }

/* ── DEMO REQUEST FORM ───────────────────────────────────── */
.demo-form {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            14px;
  margin-top:     32px;
  margin-bottom:  8px;
}

.demo-form-honeypot {
  position: absolute;
  left:     -9999px;
  width:    1px;
  height:   1px;
  opacity:  0;
}

.demo-form-input {
  width:           100%;
  max-width:       360px;
  padding:         13px 18px;
  font-size:       15px;
  font-family:     inherit;
  color:           var(--white);
  background:      var(--white-faint);
  border:          1px solid var(--border);
  border-radius:   8px;
  outline:         none;
  transition:      border-color 0.15s;
}

.demo-form-input::placeholder { color: var(--slate); }
.demo-form-input:focus        { border-color: var(--cyan); }
.demo-form-input:invalid:not(:placeholder-shown) { border-color: #E05050; }

.demo-form-submit {
  border:  none;
  cursor:  pointer;
  display: inline-flex;
  align-items: center;
  gap:     8px;
}

.demo-form-submit:disabled { opacity: 0.6; cursor: default; }

.demo-form-message {
  font-size:  14px;
  min-height: 20px;
}

.demo-form-message.error { color: #E05050; margin-top: 4px; }

.demo-form-message.success {
  color:         #3DBE74;
  font-size:     17px;
  font-weight:   600;
  margin-top:    12px;
  padding:       14px 24px;
  background:    rgba(61,190,116,0.1);
  border:        1px solid rgba(61,190,116,0.25);
  border-radius: 8px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top:      1px solid var(--border-subtle);
  padding:         40px 5%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             16px;
}

.footer-brand { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--white); }
.footer-brand span { color: var(--cyan); }
.footer-copy  { font-size: 13px; color: var(--slate); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav .nav-links { display: none; }
  .alert-section       { grid-template-columns: 1fr; }
  .alert-section .alert-content { order: -1; }
  footer               { flex-direction: column; text-align: center; }
}