/* ==========================================================================
   VERAZELL — PURPLE & BLACK CYBER-LUXURY DESIGN SYSTEM
   Palette: Obsidian Deep Black + Ultraviolet Glow + Neon Purple Accents
   ========================================================================== */

:root {
  --bg-deep: #090611;
  --bg-card: #120C22;
  --bg-card-hover: #1A1230;
  --bg-elevated: #22163F;
  --bg-input: #160F2B;
  
  --purple-glow: #A855F7;
  --purple-vibrant: #8B5CF6;
  --purple-dark: #6D28D9;
  --purple-deep: #4C1D95;
  --purple-light: #E9D5FF;
  --purple-subtle: rgba(168, 85, 247, 0.12);
  --purple-border: rgba(168, 85, 247, 0.28);
  --purple-border-hover: rgba(168, 85, 247, 0.6);

  --text-main: #FFFFFF;
  --text-soft: #D8B4FE;
  --text-muted: #948AA8;

  --verified: #10B981;
  --verified-bg: rgba(16, 185, 129, 0.15);
  --verified-border: rgba(16, 185, 129, 0.4);

  --altered: #F43F5E;
  --altered-bg: rgba(244, 63, 94, 0.15);
  --altered-border: rgba(244, 63, 94, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-purple: 0 10px 40px -10px rgba(147, 51, 234, 0.35);
  --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: #080511;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 50% 40%, rgba(109, 40, 217, 0.09) 0%, transparent 60%),
    linear-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  background-attachment: fixed;
}

/* Glowing Ambient Mesh Orbs */
.bg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-ambient-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
}
.bg-ambient-orb-2 {
  width: 600px;
  height: 600px;
  top: 900px;
  right: 5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
}
.bg-ambient-orb-3 {
  width: 550px;
  height: 550px;
  bottom: 200px;
  left: 8%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.25), transparent 70%);
}

/* SVG Vector Icon System */
.svg-icon,
.svg-icon-lg,
.svg-icon-xl,
.story-icon svg,
.pipeline-step-icon svg {
  display: inline-block;
  stroke-width: 2px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}
.svg-icon-lg {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.3em;
}
.svg-icon-xl {
  width: 1.85rem;
  height: 1.85rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 6, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--purple-border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
.wordmark {
  font-family: "Cormorant", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}
.wordmark span { color: var(--purple-glow); text-shadow: 0 0 12px var(--purple-glow); }
.brand-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-left: 1px solid var(--purple-border);
  padding-left: 12px;
}
@media (max-width: 768px) {
  .brand-tag { display: none; }
}

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--purple-border);
  background: var(--purple-subtle);
  color: var(--purple-light);
  cursor: pointer;
  transition: all 0.25s;
}
.status-pill:hover {
  border-color: var(--purple-glow);
  box-shadow: var(--shadow-glow);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 8px var(--verified);
}

/* Buttons */
.btn {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-glow), var(--purple-dark));
  color: #FFFFFF;
  box-shadow: 0 8px 24px -6px rgba(168, 85, 247, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(168, 85, 247, 0.8);
  background: linear-gradient(135deg, #C084FC, var(--purple-vibrant));
}
.btn-secondary {
  background: var(--bg-card);
  border-color: var(--purple-border);
  color: var(--text-soft);
}
.btn-secondary:hover {
  border-color: var(--purple-glow);
  color: #FFFFFF;
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  border-color: var(--purple-border);
  color: var(--text-soft);
}
.btn-ghost:hover {
  border-color: var(--purple-glow);
  color: #FFFFFF;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 0.8rem, 3.8rem);
  margin-top: 12px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #E9D5FF, var(--purple-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  margin-top: 18px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Glowing Neon Seal Graphic */
.seal-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: clamp(220px, 28vw, 320px);
  margin: 0 auto;
}
.seal-outer-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(192, 132, 252, 0.6);
  animation: spinSeal 40s linear infinite;
}
@keyframes spinSeal { to { transform: rotate(360deg); } }

.seal-core {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1C1236, #0D081D);
  border: 2px solid var(--purple-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(168, 85, 247, 0.3);
  display: grid;
  place-items: center;
}
.seal-core svg { width: 52%; height: 52%; filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6)); }

.seal-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Section Rhythm ---------- */
.section-line {
  border-top: 1px solid var(--purple-border);
}
section {
  padding: clamp(48px, 6vw, 84px) 0;
}
.section-head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  margin-top: 8px;
  line-height: 1.2;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

/* ---------- Story Cards: The Comic / Entertaining Explanation ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-glow);
  box-shadow: var(--shadow-purple);
}
.story-card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(168, 85, 247, 0.12);
  font-family: "Public Sans", sans-serif;
  line-height: 1;
}
.story-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--purple-glow);
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-card:hover .story-icon {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--purple-glow);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
  color: #FFFFFF;
}
.story-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.story-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE APPLICATION PANELS
   ========================================================================== */
.lab-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .lab-container { grid-template-columns: 1fr; }
}

.lab-panel {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-purple);
}
.lab-panel h3 { font-size: 1.55rem; margin-bottom: 6px; }
.lab-panel-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
.form-input, .form-select, .form-textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-border);
  background: var(--bg-input);
  color: #FFFFFF;
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple-glow);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

/* Certificate Preview Card */
.cert-doc-frame {
  background: linear-gradient(145deg, #18102C, #0E091D);
  border: 2px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}
.cert-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--purple-border);
  padding-bottom: 14px;
}
.cert-doc-header h4 { font-size: 1.35rem; color: #FFFFFF; }
.cert-doc-sub { font-size: 0.8rem; color: var(--purple-light); font-weight: 600; text-transform: uppercase; }
.cert-doc-body {
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.cert-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.84rem;
  margin-top: 12px;
  padding: 12px;
  background: rgba(14, 9, 29, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-border);
}
.cert-doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--purple-border);
  padding-top: 14px;
}
.cert-sig-box {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--purple-glow);
}

/* ---------- Tamper Simulator ---------- */
.attack-presets-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.btn-attack-preset {
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--altered-bg);
  color: #FDA4AF;
  border: 1px solid var(--altered-border);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-attack-preset:hover {
  background: var(--altered);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

/* Tamper Tabs */
.tamper-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--purple-border);
  padding-bottom: 8px;
}
.tamper-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tamper-tab-btn:hover {
  color: var(--text-main);
  background: rgba(168, 85, 247, 0.1);
}
.tamper-tab-btn.is-active {
  background: var(--purple-vibrant);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* PDF Forensics Dropzone */
.pdf-dropzone {
  border: 2px dashed var(--purple-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  background: rgba(18, 12, 34, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 14px;
}
.pdf-dropzone:hover, .pdf-dropzone.is-dragover {
  border-color: var(--purple-glow);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}
.dropzone-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  animation: pulse-glow 2.5s infinite ease-in-out;
}
.dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.dropzone-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 12px;
}

/* Forensic Result Box */
.forensic-result-card {
  background: #090514;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
  font-size: 0.85rem;
}
.forensic-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}
.forensic-diff-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.forensic-diff-label {
  color: var(--text-muted);
  font-weight: 600;
}
.forensic-diff-val {
  font-weight: 700;
}
.forensic-diff-val.is-tampered {
  color: #FDA4AF;
  text-decoration: underline wavy #F43F5E;
}
.forensic-diff-val.is-original {
  color: #34D399;
}

.tamper-editor {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-border);
  background: #090514;
  color: #F3E8FF;
  resize: vertical;
  word-break: break-all;
}

.tamper-pubkey-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.tamper-pubkey-info {
  min-width: 0;
  flex: 1 1 180px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.tamper-pubkey-code {
  color: var(--purple-light);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.btn-reset-attack {
  padding: 4px 10px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* Verdict Box */
.verdict-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  border: 1px solid transparent;
  transition: all 0.3s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.verdict-box.is-valid {
  background: var(--verified-bg);
  color: #6EE7B7;
  border-color: var(--verified-border);
}
.verdict-box.is-altered {
  background: var(--altered-bg);
  color: #FDA4AF;
  border-color: var(--altered-border);
}
.verdict-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.verdict-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------- Phone Mockup Simulator ---------- */
.phone-mock-wrapper {
  max-width: 320px;
  margin: 0 auto;
  background: #05030A;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.25);
  border: 3px solid #281C46;
}
.phone-screen {
  background: #0F091F;
  border-radius: 28px;
  overflow: hidden;
  min-height: 490px;
  position: relative;
  border: 1px solid var(--purple-border);
}
.phone-speaker-notch {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-speaker-notch .notch-bar {
  width: 60px;
  height: 5px;
  background: #281C46;
  border-radius: 3px;
}
.phone-inner-body {
  padding: 14px 18px 24px;
}
.phone-header-title {
  font-family: "Cormorant", serif;
  font-size: 1.3rem;
  text-align: center;
  color: #FFFFFF;
}

.verified-badge {
  margin: 14px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid transparent;
}
.verified-badge.is-ok {
  background: var(--verified-bg);
  color: #34D399;
  border-color: var(--verified-border);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.verified-badge.is-fail {
  background: var(--altered-bg);
  color: #FB7185;
  border-color: var(--altered-border);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.anchor-badge {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--purple-subtle);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-fields-list {
  margin-top: 14px;
  font-size: 0.84rem;
}
.phone-fields-list dt {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.phone-fields-list dd {
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 1px;
}

/* ---------- Table Live Feed ---------- */
.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow-x: auto;
  box-shadow: var(--shadow-purple);
}
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}
.feed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.feed-table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--purple-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.feed-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  color: var(--text-soft);
}
.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}
.badge-tag.is-anchored { background: var(--purple-subtle); color: var(--purple-light); border: 1px solid var(--purple-border); }
.badge-tag.is-signed { background: var(--verified-bg); color: #34D399; border: 1px solid var(--verified-border); }

.table-btn {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-border);
  background: var(--bg-elevated);
  color: #FFFFFF;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}
.table-btn:hover {
  border-color: var(--purple-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ---------- Modal Styles ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--purple-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px rgba(168, 85, 247, 0.3);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close-btn:hover { color: #FFFFFF; }

/* ---------- Comparador Visual Interactivo (Problema: 2 Versiones) ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-purple);
  transition: all 0.3s;
}
.compare-card.is-original {
  border-color: var(--verified-border);
}
.compare-card.is-tampered {
  border-color: var(--altered-border);
}
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.compare-badge {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.compare-badge.is-ok {
  background: var(--verified-bg);
  color: #34D399;
  border: 1px solid var(--verified-border);
}
.compare-badge.is-warn {
  background: var(--altered-bg);
  color: #FDA4AF;
  border: 1px solid var(--altered-border);
}
.compare-doc-sample {
  background: #0D081D;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.86rem;
}
.compare-doc-sample h5 {
  font-family: "Cormorant", serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.compare-field-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}
.compare-field-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; }
.compare-field-val { font-weight: 700; color: #FFFFFF; }
.compare-field-val.highlight-fraud {
  color: #FDA4AF;
  text-decoration: underline wavy #F43F5E;
  animation: fraudPulse 2s infinite;
}
@keyframes fraudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---------- Plan de Implementación (Layout Interactivo con Gráfico en Vivo) ---------- */
.impl-interactive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: stretch;
}
@media (max-width: 992px) {
  .impl-interactive-layout { grid-template-columns: 1fr; }
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-row {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.timeline-row:hover, .timeline-row.is-active {
  border-color: var(--purple-glow);
  transform: translateX(6px);
  background: linear-gradient(145deg, #1C1236, #120C22);
  box-shadow: var(--shadow-purple);
}
.timeline-row.is-active::after {
  content: "▶";
  position: absolute;
  right: 16px;
  color: var(--purple-glow);
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
}

.timeline-time-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple-glow);
  background: var(--purple-subtle);
  border: 1px solid var(--purple-border);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  width: fit-content;
}
.timeline-time-badge.is-live {
  color: #34D399;
  background: var(--verified-bg);
  border-color: var(--verified-border);
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: #FFFFFF;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Gráfico Interactivo del Paso */
.impl-stage-graphic-card {
  background: linear-gradient(145deg, #18102E, #0D071C);
  border: 2px solid var(--purple-border-hover);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 16px 50px -10px rgba(168, 85, 247, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.impl-stage-graphic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-glow), #34D399);
}

.stage-diagram-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.pipeline-step-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 8, 28, 0.85);
  border: 1px solid var(--purple-border);
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s;
}
.pipeline-step-box.is-highlighted {
  border-color: var(--purple-glow);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
  transform: scale(1.02);
}
.pipeline-step-icon {
  font-size: 1.5rem;
}
.pipeline-step-info strong {
  display: block;
  font-size: 0.9rem;
  color: #FFFFFF;
}
.pipeline-step-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 3 Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: all 0.3s;
}
.pillar-card:hover {
  border-color: var(--purple-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}
.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Banner de Conversión (CTA Card) */
.cta-banner {
  background: linear-gradient(135deg, #1E1038, #0D071C);
  border: 2px solid var(--purple-glow);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 48px);
  text-align: center;
  margin-top: 48px;
  box-shadow: 0 20px 60px -10px rgba(168, 85, 247, 0.4);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
  color: #FFFFFF;
}
.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--purple-border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   REACT BITS — FULLSCREEN 2-COLUMN LOGIN GATE & INTERACTIVE DOT MATRIX
   ========================================================================== */

.login-gate-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #06030c;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-gate-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* React Bits: Fullscreen Ambient Glow Background */
.react-bits-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 2-Column Split Fullscreen Layout */
.login-split-card {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  min-height: 100vh;
  border-radius: 0;
  border: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  z-index: 10;
}

@media (max-width: 900px) {
  .login-split-card {
    grid-template-columns: 1fr;
  }
  .login-left-pane {
    display: none !important;
  }
}

/* Left Pane: Fullscreen Interactive React Bits Dot Matrix Canvas */
.login-left-pane {
  position: relative;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 45% 45%, #170E2C 0%, #07030E 100%);
  border-right: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.dot-matrix-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.left-pane-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(9, 5, 18, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  color: var(--purple-glow);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* Right Pane: Login Form */
.login-right-pane {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  background: linear-gradient(145deg, rgba(16, 10, 30, 0.98), rgba(8, 4, 16, 0.99));
  overflow-y: auto;
}

.login-right-inner-wrap {
  width: 100%;
  max-width: 440px;
}

/* React Bits: Shiny Text */
.shiny-text {
  background: linear-gradient(120deg, #FFFFFF 0%, #E9D5FF 25%, #FFFFFF 50%, #C084FC 75%, #FFFFFF 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shinyShimmer 4s linear infinite;
  display: inline-block;
}
@keyframes shinyShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* React Bits: Decrypted Text Scramble */
.decrypted-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--purple-glow);
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.login-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.login-header-logo .brand-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--purple-glow), var(--purple-dark));
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.login-subtitle {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.4;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.btn-toggle-password:hover {
  color: var(--purple-light);
}

.login-input {
  width: 100%;
  background: rgba(22, 15, 43, 0.9);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 12px 40px 12px 42px;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.25s;
}

.login-input:focus {
  outline: none;
  border-color: var(--purple-glow);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
  background: rgba(30, 18, 56, 0.95);
}

/* React Bits: Magnetic Submit Button */
.btn-login-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #C084FC, var(--purple-vibrant), var(--purple-dark));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(168, 85, 247, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -5px rgba(168, 85, 247, 0.7);
}

.login-error-msg {
  color: #FDA4AF;
  font-size: 0.82rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* User Session Badge in Topbar */
.user-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--purple-light);
}
.btn-logout {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #FDA4AF;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-logout:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #F43F5E;
  color: #FFFFFF;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERHAUL (SMARTPHONES & TABLETS)
   ========================================================================== */

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

@media (max-width: 900px) {
  /* Login Gate on Mobile */
  .login-gate-overlay {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .login-split-card {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }
  .login-left-pane {
    display: none !important;
  }
  .login-right-pane {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 36px 20px 48px;
    justify-content: center;
  }
  .login-title {
    font-size: 1.55rem;
  }
  .login-subtitle {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }
  .login-input {
    font-size: 16px !important; /* Prevents auto zoom in iOS Safari */
    padding: 12px 38px 12px 38px;
  }
  .btn-login-submit {
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Topbar on Mobile */
  .topbar .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brand {
    gap: 8px;
  }
  /* Topbar on Mobile */
  .topbar {
    padding: 0;
  }
  .topbar .wrap {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-logo-icon, .brand .brand-badge {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px;
  }
  .wordmark {
    font-size: 1.35rem !important;
  }
  .brand-tag {
    display: none !important;
  }
  .topbar-actions {
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
  }
  .btn-topbar-nav {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
  }
  .btn-topbar-db {
    display: none !important; /* Evita desbordamiento horizontal en móviles */
  }
  #supabase-status-pill {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }
  .user-session-badge {
    padding: 4px 6px;
    font-size: 0.7rem;
    max-width: 110px;
  }
  #topbar-user-email {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  .btn-logout {
    padding: 2px 5px;
    font-size: 0.68rem;
  }

  /* Hero Section on Mobile - Espaciado superior generoso para que NUNCA se corte */
  .hero {
    padding: clamp(58px, 12vw, 84px) 0 28px !important;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .hero .eyebrow {
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 7.8vw, 2.7rem);
    line-height: 1.18;
  }
  .hero-lede {
    font-size: 0.96rem;
    margin-top: 14px;
    line-height: 1.6;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    justify-content: center;
  }
  .seal-stage {
    max-width: 200px;
    margin: 20px auto 0;
  }

  /* Global Wrap Centering on Mobile */
  .wrap {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Section Rhythm & Headers */
  section {
    padding: 38px 0;
    width: 100%;
    overflow-x: hidden;
  }
  .section-head {
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .section-head h2 {
    font-size: 1.85rem;
  }
  .section-head p {
    font-size: 0.92rem;
  }

  /* Story Cards (3 Pasos) */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .story-card {
    padding: 20px 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Interactive Lab */
  .lab-container {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .lab-panel {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .cert-detail-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    width: 100%;
  }
  .cert-doc-frame {
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Tamper / Attack Simulator */
  .attack-presets-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .btn-attack-preset {
    font-size: 0.74rem;
    padding: 8px 6px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .tamper-tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .tamper-tab-btn {
    font-size: 0.76rem;
    padding: 8px 6px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .pdf-dropzone {
    padding: 20px 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .phone-mock-wrapper {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .phone-screen {
    width: 100%;
    box-sizing: border-box;
  }

  /* Live Feed Table */
  .feed-card {
    padding: 18px 12px;
    border-radius: var(--radius-md);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .feed-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .feed-table th, .feed-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Implementation Plan Timeline */
  .impl-interactive-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .timeline-row.is-active::after {
    display: none;
  }
  .impl-stage-graphic-card {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .pipeline-step-box {
    padding: 10px 12px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Pillars & Comparison */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .compare-card {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 28px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .cta-banner h2 {
    font-size: 1.55rem;
  }
  .cta-banner p {
    font-size: 0.92rem;
  }
  .cta-banner .btn {
    width: 100%;
  }

  /* Footer */
  footer {
    padding: 36px 0 48px;
    width: 100%;
  }
  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .status-pill span:not(.status-dot) {
    display: none;
  }
  .status-pill {
    padding: 6px;
    border-radius: 50%;
  }
  .attack-presets-bar {
    grid-template-columns: 1fr;
  }
  .tamper-tabs-nav {
    grid-template-columns: 1fr;
  }
}

