/* ═══════════════════════════════════════
   TACCAS — VisualDashboard
   Shared stylesheet
═══════════════════════════════════════ */

:root {
  --navy:        #0a1628;
  --navy-mid:    #112040;
  --blue:        #1e5fd4;
  --blue-bright: #3b82f6;
  --blue-glow:   #60a5fa;
  --accent:      #00d4ff;
  --white:       #f0f6ff;
  --white-dim:   rgba(240,246,255,0.6);
  --red:         #ef4444;
  --amber:       #f59e0b;
  --green:       #22c55e;
  --purple:      #a855f7;

  --bg:        #f7f9fc;
  --bg-alt:    #eef1f7;
  --text:      #0d1f3c;
  --text-2:    #4a5d7a;
  --border:    rgba(30,95,212,0.11);
  --card:      #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30,95,212,0.2);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--white-dim); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--accent); }
.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 8px 20px; border-radius: 7px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--blue-bright); box-shadow: 0 0 18px rgba(59,130,246,0.4); }

/* ── PAGE WRAPPER ── */
.page { padding-top: 68px; }

/* ── SECTIONS ── */
.s { padding: 80px 48px; background: var(--bg); }
.s.alt { background: var(--bg-alt); }
.s.dark { background: var(--navy); }
.inner { max-width: 1320px; margin: 0 auto; }
.inner-wide { max-width: 1600px; margin: 0 auto; }

/* ── TYPOGRAPHY ── */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.tag::before { content: ''; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; display: block; }
.tag.light { color: var(--accent); }
.tag.light::before { background: var(--accent); }

.h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.h1 em { font-style: normal; color: var(--blue); }
.h1.light { color: var(--white); }
.h1.light em { color: var(--accent); }

.h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); margin-bottom: 12px; }
.h2 em { font-style: normal; color: var(--blue); }

.lead { font-size: 1rem; color: var(--text-2); max-width: 640px; line-height: 1.78; margin-bottom: 48px; }
.lead.light { color: var(--white-dim); }
.lead.wide { max-width: 820px; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; font-family: 'Outfit', sans-serif; transition: all 0.2s; cursor: pointer; border: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-bright); box-shadow: 0 6px 20px rgba(59,130,246,0.3); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { color: var(--text); border-color: rgba(30,95,212,0.28); }
.btn-outline-light { background: transparent; color: var(--white-dim); border: 1px solid rgba(240,246,255,0.2); }
.btn-outline-light:hover { color: var(--white); border-color: rgba(240,246,255,0.4); }

/* ── SCREENSHOT ── */
.shot {
  width: 100%; display: block; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(10,22,40,0.1), 0 0 0 1px var(--border);
}

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split.wide { gap: 80px; }
.split-copy p { font-size: 0.925rem; color: var(--text-2); line-height: 1.8; margin-top: 12px; }
.split-copy p.light { color: var(--white-dim); }

/* ── CHECKLIST ── */
.checks { margin-top: 24px; display: flex; flex-direction: column; gap: 9px; }
.checks li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.855rem; color: var(--text-2); list-style: none; line-height: 1.6; }
.checks li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; font-size: 0.78rem; margin-top: 2px; }

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 22px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(30,95,212,0.22); box-shadow: 0 8px 28px rgba(30,95,212,0.07); transform: translateY(-2px); }
.card-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(30,95,212,0.07); border: 1px solid rgba(30,95,212,0.13); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card p { font-size: 0.835rem; color: var(--text-2); line-height: 1.7; }

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ── CALLOUT ── */
.callout { margin-top: 22px; padding: 16px 20px; background: rgba(30,95,212,0.05); border: 1px solid rgba(30,95,212,0.14); border-radius: 10px; }
.callout strong { font-size: 0.82rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 5px; }
.callout p { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; margin: 0; }

/* ── PAGE HERO ── */
.page-hero { padding: 60px 48px 52px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .tag { margin-bottom: 12px; }
.page-hero .h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1rem; color: var(--text-2); max-width: 640px; line-height: 1.75; }

/* ── STEP NUMBERS ── */
.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: rgba(30,95,212,0.09); border: 1px solid rgba(30,95,212,0.2); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 0.7rem; font-weight: 500; color: var(--blue); margin-top: 2px; }
.step-t h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.step-t p { font-size: 0.845rem; color: var(--text-2); line-height: 1.68; }

/* ── DIVIDER ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); margin: 0; }

/* ── REVEAL ANIMATIONS ── */
.r { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.r.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ── CTA SECTION ── */
.cta-s { background: var(--navy); padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-s::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(30,95,212,0.18) 0%, transparent 70%); }
.cta-inner { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; }
.cta-s .tag { justify-content: center; display: flex; margin-bottom: 16px; }
.cta-s h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-s p { color: var(--white-dim); font-size: 0.975rem; line-height: 1.75; margin-bottom: 32px; }

/* ── FOOTER ── */
footer { background: #060e1a; border-top: 1px solid rgba(30,95,212,0.1); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.f-logo { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--white-dim); }
.f-links { display: flex; gap: 24px; }
.f-links a { color: rgba(240,246,255,0.28); font-size: 0.78rem; text-decoration: none; transition: color 0.2s; }
.f-links a:hover { color: var(--white-dim); }
.f-copy { font-size: 0.72rem; color: rgba(240,246,255,0.18); }

/* ── ROLE CARDS ── */
.role-card { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 30px 26px; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(10,22,40,0.09); }
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.role-u::before { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.role-p::before { background: linear-gradient(90deg, #0891b2, var(--blue-glow)); }
.role-a::before { background: linear-gradient(90deg, var(--purple), var(--blue-bright)); }
.rbadge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.rb-u { background: rgba(30,95,212,0.09); color: var(--blue); border: 1px solid rgba(30,95,212,0.18); }
.rb-p { background: rgba(8,145,178,0.09); color: #0891b2; border: 1px solid rgba(8,145,178,0.2); }
.rb-a { background: rgba(168,85,247,0.09); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }
.role-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.role-card > p { font-size: 0.845rem; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.role-feats { display: flex; flex-direction: column; gap: 7px; }
.rf { font-size: 0.805rem; color: var(--text-2); display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.rf::before { content: '→'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── SCREENSHOT STACK ── */
.shot-stack { display: flex; flex-direction: column; gap: 14px; }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white-dim); border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30,95,212,0.2);
  flex-direction: column; padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--white-dim); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 14px 24px; display: block;
  border-bottom: 1px solid rgba(30,95,212,0.1);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); background: rgba(30,95,212,0.1); }
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .nav-mobile-cta {
  margin: 12px 24px 0;
  background: var(--blue); color: #fff !important;
  border-radius: 8px; text-align: center;
  padding: 12px 24px !important;
  border-bottom: none !important;
}
.nav-mobile .nav-mobile-cta:hover { background: var(--blue-bright) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .s, .page-hero, .cta-s { padding-left: 20px; padding-right: 20px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .split.flip > * { direction: ltr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
